summaryrefslogtreecommitdiff
path: root/gtk/gtkpathbar.c
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2011-01-04 02:41:49 +0100
committerCarlos Garnacho <carlosg@gnome.org>2011-01-04 03:06:27 +0100
commit7266d0f11fb25e27e51026fabe976de2c105a9eb (patch)
tree26f15fec65d3072d0c8154cfba94fd58701356ca /gtk/gtkpathbar.c
parentc3b5b3531c9f0afe6d7636f68203f35917842b19 (diff)
downloadgtk+-7266d0f11fb25e27e51026fabe976de2c105a9eb.tar.gz
Make GtkPathBar use ::style-updated
Diffstat (limited to 'gtk/gtkpathbar.c')
-rw-r--r--gtk/gtkpathbar.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/gtk/gtkpathbar.c b/gtk/gtkpathbar.c
index 102d9e3ac6..88b89cb2c9 100644
--- a/gtk/gtkpathbar.c
+++ b/gtk/gtkpathbar.c
@@ -124,8 +124,7 @@ static void gtk_path_bar_grab_notify (GtkWidget *widget,
gboolean was_grabbed);
static void gtk_path_bar_state_changed (GtkWidget *widget,
GtkStateType previous_state);
-static void gtk_path_bar_style_set (GtkWidget *widget,
- GtkStyle *previous_style);
+static void gtk_path_bar_style_updated (GtkWidget *widget);
static void gtk_path_bar_screen_changed (GtkWidget *widget,
GdkScreen *previous_screen);
static void gtk_path_bar_check_icon_theme (GtkPathBar *path_bar);
@@ -227,7 +226,7 @@ gtk_path_bar_class_init (GtkPathBarClass *path_bar_class)
widget_class->map = gtk_path_bar_map;
widget_class->unmap = gtk_path_bar_unmap;
widget_class->size_allocate = gtk_path_bar_size_allocate;
- widget_class->style_set = gtk_path_bar_style_set;
+ widget_class->style_updated = gtk_path_bar_style_updated;
widget_class->screen_changed = gtk_path_bar_screen_changed;
widget_class->grab_notify = gtk_path_bar_grab_notify;
widget_class->state_changed = gtk_path_bar_state_changed;
@@ -465,8 +464,6 @@ gtk_path_bar_realize (GtkWidget *widget)
path_bar->event_window = gdk_window_new (gtk_widget_get_parent_window (widget),
&attributes, attributes_mask);
gdk_window_set_user_data (path_bar->event_window, widget);
-
- gtk_widget_style_attach (widget);
}
static void
@@ -713,10 +710,9 @@ gtk_path_bar_size_allocate (GtkWidget *widget,
}
static void
-gtk_path_bar_style_set (GtkWidget *widget,
- GtkStyle *previous_style)
+gtk_path_bar_style_updated (GtkWidget *widget)
{
- GTK_WIDGET_CLASS (gtk_path_bar_parent_class)->style_set (widget, previous_style);
+ GTK_WIDGET_CLASS (gtk_path_bar_parent_class)->style_updated (widget);
gtk_path_bar_check_icon_theme (GTK_PATH_BAR (widget));
}