comparison src/gtkconv.c @ 10471:01558a7faa01

[gaim-migrate @ 11756] Same bufix I just committed to oldstatus. I'm not real happy about this fix. Seems like conversations should always have account and name set to non-NULL. And convs should be destroyed if an account is deleted. Someone should look into that and write a patch, if it's a good idea. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 04 Jan 2005 02:32:25 +0000
parents d23802800eeb
children 748aa3c6de36
comparison
equal deleted inserted replaced
10470:eaa9552a5e0f 10471:01558a7faa01
2791 (gaim_blist_find_chat(account, gaim_conversation_get_name(conv)) != NULL)); 2791 (gaim_blist_find_chat(account, gaim_conversation_get_name(conv)) != NULL));
2792 } 2792 }
2793 } else { 2793 } else {
2794 /* Account is offline */ 2794 /* Account is offline */
2795 /* Or it's a chat that we've left. */ 2795 /* Or it's a chat that we've left. */
2796 2796
2797 /* Then deal with menu items */ 2797 /* Then deal with menu items */
2798 gtk_widget_set_sensitive(gtkwin->menu.view_log, TRUE); 2798 gtk_widget_set_sensitive(gtkwin->menu.view_log, TRUE);
2799 gtk_widget_set_sensitive(gtkwin->menu.send_file, FALSE); 2799 gtk_widget_set_sensitive(gtkwin->menu.send_file, FALSE);
2800 gtk_widget_set_sensitive(gtkwin->menu.add_pounce, TRUE); 2800 gtk_widget_set_sensitive(gtkwin->menu.add_pounce, TRUE);
2801 gtk_widget_set_sensitive(gtkwin->menu.get_info, FALSE); 2801 gtk_widget_set_sensitive(gtkwin->menu.get_info, FALSE);
2820 g_object_ref(window_icon); 2820 g_object_ref(window_icon);
2821 } else { 2821 } else {
2822 window_icon = get_tab_icon(conv, FALSE); 2822 window_icon = get_tab_icon(conv, FALSE);
2823 } 2823 }
2824 gtk_window_set_icon(GTK_WINDOW(gtkwin->window), window_icon); 2824 gtk_window_set_icon(GTK_WINDOW(gtkwin->window), window_icon);
2825 g_object_unref(G_OBJECT(window_icon)); 2825 if (window_icon != NULL)
2826 g_object_unref(G_OBJECT(window_icon));
2826 } 2827 }
2827 2828
2828 static void 2829 static void
2829 before_switch_conv_cb(GtkNotebook *notebook, GtkWidget *page, gint page_num, 2830 before_switch_conv_cb(GtkNotebook *notebook, GtkWidget *page, gint page_num,
2830 gpointer user_data) 2831 gpointer user_data)