im.pidgin.pidgin: 4cfb69120c27231aa35204f7379b38aa9327fdbf

sadrul at pidgin.im sadrul at pidgin.im
Sat Jan 12 17:00:49 EST 2008


-----------------------------------------------------------------
Revision: 4cfb69120c27231aa35204f7379b38aa9327fdbf
Ancestor: 394a96091e6eace0c8f3a50b977554efc9697a56
Author: sadrul at pidgin.im
Date: 2008-01-12T19:42:02
Branch: im.pidgin.pidgin

Modified files:
        pidgin/gtkstatusbox.c

ChangeLog: 

Destroy the icon box only when there's one. This gets rid of a runtime warning for statusboxes without a buddy-icon selector (e.g., for an IRC account).

-------------- next part --------------
============================================================
--- pidgin/gtkstatusbox.c	75beae3ab41ad8caafaaed2879862cc9d0d59104
+++ pidgin/gtkstatusbox.c	9da05db594b5613ade99e7058aaa620864e0c16e
@@ -507,18 +507,10 @@ pidgin_status_box_finalize(GObject *obj)
 	purple_signals_disconnect_by_handle(statusbox);
 	purple_prefs_disconnect_by_handle(statusbox);
 
-	gdk_cursor_unref(statusbox->hand_cursor);
-	gdk_cursor_unref(statusbox->arrow_cursor);
+	destroy_icon_box(statusbox);
 
-	purple_imgstore_unref(statusbox->buddy_icon_img);
-	g_object_unref(G_OBJECT(statusbox->buddy_icon));
-	g_object_unref(G_OBJECT(statusbox->buddy_icon_hover));
 	g_object_unref(G_OBJECT(statusbox->store));
 	g_object_unref(G_OBJECT(statusbox->dropdown_store));
-
-	if (statusbox->buddy_icon_sel)
-		gtk_widget_destroy(statusbox->buddy_icon_sel);
-
 	G_OBJECT_CLASS(parent_class)->finalize(obj);
 }
 


More information about the Commits mailing list