summaryrefslogtreecommitdiff
path: root/gtk/gtkbutton.c
diff options
context:
space:
mode:
authorAlberto Garcia <agarcia@igalia.com>2010-10-08 02:37:23 +0200
committerChristian Dywan <christian@twotoasts.de>2010-10-22 18:58:47 +0200
commitd6a73fd5b0c8e30b22ed77f5ffa47bed2b506040 (patch)
treeec5ada040b78fed901983a1389101ad0cec85df6 /gtk/gtkbutton.c
parent56d5b454431f00ba043c289bc75f4579a6a25696 (diff)
downloadgtk+-d6a73fd5b0c8e30b22ed77f5ffa47bed2b506040.tar.gz
Assign all g_signal_connect() and friends to gulong variables
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=87821
Diffstat (limited to 'gtk/gtkbutton.c')
-rw-r--r--gtk/gtkbutton.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c
index 2b766e331a..ab3fe77f02 100644
--- a/gtk/gtkbutton.c
+++ b/gtk/gtkbutton.c
@@ -2287,7 +2287,7 @@ gtk_button_screen_changed (GtkWidget *widget,
{
GtkButton *button;
GtkSettings *settings;
- guint show_image_connection;
+ gulong show_image_connection;
if (!gtk_widget_has_screen (widget))
return;
@@ -2305,18 +2305,14 @@ gtk_button_screen_changed (GtkWidget *widget,
settings = gtk_widget_get_settings (widget);
show_image_connection =
- GPOINTER_TO_UINT (g_object_get_data (G_OBJECT (settings),
- "gtk-button-connection"));
+ g_signal_handler_find (settings, G_SIGNAL_MATCH_FUNC, 0, 0,
+ NULL, gtk_button_setting_changed, NULL);
if (show_image_connection)
return;
- show_image_connection =
- g_signal_connect (settings, "notify::gtk-button-images",
- G_CALLBACK (gtk_button_setting_changed), NULL);
- g_object_set_data (G_OBJECT (settings),
- I_("gtk-button-connection"),
- GUINT_TO_POINTER (show_image_connection));
+ g_signal_connect (settings, "notify::gtk-button-images",
+ G_CALLBACK (gtk_button_setting_changed), NULL);
show_image_change_notify (button);
}