comparison src/gtkconv.c @ 12171:ffdd2ccf3a53

[gaim-migrate @ 14473] Only set the gtk window's icon when updating a conversation's icon if the conversation is the currently active conversation in the window. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Sun, 20 Nov 2005 16:02:21 +0000
parents ed6c64e5e0ed
children a655bdeb561d
comparison
equal deleted inserted replaced
12170:51c194ca6016 12171:ffdd2ccf3a53
5003 } 5003 }
5004 5004
5005 /* 5005 /*
5006 * Update the window's icon 5006 * Update the window's icon
5007 */ 5007 */
5008 if ((gaim_conversation_get_type(conv) == GAIM_CONV_TYPE_IM) && 5008 if (gaim_gtk_conv_window_is_active_conversation(conv))
5009 (gtkconv->u.im->anim))
5010 { 5009 {
5011 window_icon = 5010 if ((gaim_conversation_get_type(conv) == GAIM_CONV_TYPE_IM) &&
5012 gdk_pixbuf_animation_get_static_image(gtkconv->u.im->anim); 5011 (gtkconv->u.im->anim))
5013 g_object_ref(window_icon); 5012 {
5014 } else { 5013 window_icon =
5015 window_icon = gaim_gtkconv_get_tab_icon(conv, FALSE); 5014 gdk_pixbuf_animation_get_static_image(gtkconv->u.im->anim);
5016 } 5015 g_object_ref(window_icon);
5017 gtk_window_set_icon(GTK_WINDOW(win->window), window_icon); 5016 } else {
5018 if (window_icon != NULL) 5017 window_icon = gaim_gtkconv_get_tab_icon(conv, FALSE);
5019 g_object_unref(G_OBJECT(window_icon)); 5018 }
5019 gtk_window_set_icon(GTK_WINDOW(win->window), window_icon);
5020 if (window_icon != NULL)
5021 g_object_unref(G_OBJECT(window_icon));
5022 }
5020 } 5023 }
5021 5024
5022 5025
5023 static void 5026 static void
5024 gaim_gtkconv_updated(GaimConversation *conv, GaimConvUpdateType type) 5027 gaim_gtkconv_updated(GaimConversation *conv, GaimConvUpdateType type)