summaryrefslogtreecommitdiff
path: root/gtk/gtktoolbar.c
diff options
context:
space:
mode:
authorMichael Natterer <mitch@imendio.com>2005-11-24 16:51:22 +0000
committerMichael Natterer <mitch@src.gnome.org>2005-11-24 16:51:22 +0000
commitff7a092232861b5eb6a60190dc38865acd7fd21c (patch)
tree60f0122586ab53ffe148d73f0512c149fc929e7d /gtk/gtktoolbar.c
parentfbb2e3f4f51a4c0ccc8f2bf511f4766293fc4af0 (diff)
downloadgtk+-ff7a092232861b5eb6a60190dc38865acd7fd21c.tar.gz
changed two private guint that used to hold signal handler IDs to two
2005-11-24 Michael Natterer <mitch@imendio.com> * gtk/gtktoolbar.h (struct _GtkToolbar): changed two private guint that used to hold signal handler IDs to two guint of padding. * gtk/gtktoolbar.c (struct _GtkToolbarPrivate): added them as gulong here. (gtk_toolbar_screen_changed): changed accordingly.
Diffstat (limited to 'gtk/gtktoolbar.c')
-rw-r--r--gtk/gtktoolbar.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c
index 8edd4ed545..760970d4f0 100644
--- a/gtk/gtktoolbar.c
+++ b/gtk/gtktoolbar.c
@@ -142,7 +142,10 @@ struct _GtkToolbarPrivate
gint max_homogeneous_pixels;
GTimer * timer;
-
+
+ gulong style_set_connection;
+ gulong icon_size_connection;
+
guint show_arrow : 1;
guint need_sync : 1;
guint is_sliding : 1;
@@ -2035,20 +2038,20 @@ gtk_toolbar_screen_changed (GtkWidget *widget,
if (old_settings)
{
- g_signal_handler_disconnect (old_settings, toolbar->style_set_connection);
- g_signal_handler_disconnect (old_settings, toolbar->icon_size_connection);
-
+ g_signal_handler_disconnect (old_settings, priv->style_set_connection);
+ g_signal_handler_disconnect (old_settings, priv->icon_size_connection);
+
g_object_unref (old_settings);
}
if (settings)
{
- toolbar->style_set_connection =
+ priv->style_set_connection =
g_signal_connect_swapped (settings,
"notify::gtk-toolbar-style",
G_CALLBACK (style_change_notify),
toolbar);
- toolbar->icon_size_connection =
+ priv->icon_size_connection =
g_signal_connect_swapped (settings,
"notify::gtk-toolbar-icon-size",
G_CALLBACK (icon_size_change_notify),