/pidgin/main: e3d6afee499c: Prevent an assert by taking an extra...

Elliott Sales de Andrade qulogic at pidgin.im
Thu Jul 26 17:59:19 EDT 2012


Changeset: e3d6afee499cbc67be77bcf41998b318ad3c8ae8
Author:	 Elliott Sales de Andrade <qulogic at pidgin.im>
Date:	 2012-07-26 01:52 -0400
Branch:	 default
URL: http://hg.pidgin.im/pidgin/main/rev/e3d6afee499c

Description:

Prevent an assert by taking an extra ref on some objects.

diffstat:

 pidgin/gtkwebviewtoolbar.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (25 lines):

diff --git a/pidgin/gtkwebviewtoolbar.c b/pidgin/gtkwebviewtoolbar.c
--- a/pidgin/gtkwebviewtoolbar.c
+++ b/pidgin/gtkwebviewtoolbar.c
@@ -1468,8 +1468,8 @@ gtk_webviewtoolbar_create_lean_view(GtkW
 
 	g_signal_connect(G_OBJECT(font_button), "toggled",
 	                 G_CALLBACK(pidgin_menu_clicked), font_menu);
-	g_signal_connect(G_OBJECT(font_menu), "deactivate",
-	                 G_CALLBACK(pidgin_menu_deactivate), font_button);
+	g_signal_connect_object(G_OBJECT(font_menu), "deactivate",
+	                        G_CALLBACK(pidgin_menu_deactivate), font_button, 0);
 
 	gtk_container_foreach(GTK_CONTAINER(font_menu), enable_markup, NULL);
 
@@ -1494,8 +1494,8 @@ gtk_webviewtoolbar_create_lean_view(GtkW
 
 	g_signal_connect(G_OBJECT(insert_button), "toggled",
 	                 G_CALLBACK(pidgin_menu_clicked), insert_menu);
-	g_signal_connect(G_OBJECT(insert_menu), "deactivate",
-	                 G_CALLBACK(pidgin_menu_deactivate), insert_button);
+	g_signal_connect_object(G_OBJECT(insert_menu), "deactivate",
+	                        G_CALLBACK(pidgin_menu_deactivate), insert_button, 0);
 
 	/* Sep */
 	sep = gtk_separator_tool_item_new();



More information about the Commits mailing list