cpw.qulogic.gtk3-required: 3ec622b2: Ref some buttons so that they exist when...

qulogic at pidgin.im qulogic at pidgin.im
Sun May 27 00:34:00 EDT 2012


----------------------------------------------------------------------
Revision: 3ec622b2301ab9cd8e1386fe0f7e4b7b77dd14c4
Parent:   84445b8f9d35100c6e35467cf2dbf2af0ab9f288
Author:   qulogic at pidgin.im
Date:     05/25/12 16:53:37
Branch:   im.pidgin.cpw.qulogic.gtk3-required
URL: http://d.pidgin.im/viewmtn/revision/info/3ec622b2301ab9cd8e1386fe0f7e4b7b77dd14c4

Changelog: 

Ref some buttons so that they exist when the menu is destroyed.
I wonder if we can get this button->menu thing to fit in to the
system a bit better.

Changes against parent 84445b8f9d35100c6e35467cf2dbf2af0ab9f288

  patched  pidgin/gtkimhtmltoolbar.c

-------------- next part --------------
============================================================
--- pidgin/gtkimhtmltoolbar.c	e4f4772f904a5e9f969d67da4ad3100d3a477520
+++ pidgin/gtkimhtmltoolbar.c	1bf06809a6fc121b2d20804a08e182b6b4afdd99
@@ -1432,7 +1432,8 @@ static void gtk_imhtmltoolbar_init (GtkI
 
 	g_signal_connect(G_OBJECT(font_button), "button-press-event", G_CALLBACK(button_activate_on_click), toolbar);
 	g_signal_connect(G_OBJECT(font_button), "activate", 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_data(G_OBJECT(font_menu), "deactivate", G_CALLBACK(pidgin_menu_deactivate),
+	                      g_object_ref(font_button), (GClosureNotify)g_object_unref, 0);
 
 	/* Sep */
 	sep = gtk_vseparator_new();
@@ -1477,7 +1478,8 @@ static void gtk_imhtmltoolbar_init (GtkI
 
 	g_signal_connect(G_OBJECT(insert_button), "button-press-event", G_CALLBACK(button_activate_on_click), toolbar);
 	g_signal_connect(G_OBJECT(insert_button), "activate", 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_data(G_OBJECT(insert_menu), "deactivate", G_CALLBACK(pidgin_menu_deactivate),
+	                      g_object_ref(insert_button), (GClosureNotify)g_object_unref, 0);
 	toolbar->sml = NULL;
 
 	/* Sep */


More information about the Commits mailing list