Assign all g_signal_connect() and friends to gulong variables
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=87821
This commit is contained in:
committed by
Christian Dywan
parent
56d5b45443
commit
d6a73fd5b0
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user