/soc/2013/ankitkv/gobjectification: f538b2fb2525: Only update ty...

Ankit Vani a at nevitus.org
Mon Sep 30 04:38:29 EDT 2013


Changeset: f538b2fb2525ca604631c5e905081d9d0b13b0fd
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-09-30 14:07 +0530
Branch:	 soc.2013.gobjectification
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/f538b2fb2525

Description:

Only update typing icon if conversation is an IM

diffstat:

 pidgin/gtkconv.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (20 lines):

diff --git a/pidgin/gtkconv.c b/pidgin/gtkconv.c
--- a/pidgin/gtkconv.c
+++ b/pidgin/gtkconv.c
@@ -3825,12 +3825,14 @@ update_typing_message(PidginConversation
 static void
 update_typing_icon(PidginConversation *gtkconv)
 {
-	PurpleIMConversation *im = PURPLE_IM_CONVERSATION(gtkconv->active_conv);
+	PurpleIMConversation *im;
 	char *message = NULL;
 
-	if (im == NULL)
+	if (!PURPLE_IS_IM_CONVERSATION(gtkconv->active_conv))
 		return;
 
+	im = PURPLE_IM_CONVERSATION(gtkconv->active_conv);
+
 	if (purple_im_conversation_get_typing_state(im) == PURPLE_IM_NOT_TYPING) {
 #ifdef RESERVE_LINE
 		update_typing_message(gtkconv, NULL);



More information about the Commits mailing list