diff options
Diffstat (limited to 'src/caja-places-sidebar.c')
-rw-r--r-- | src/caja-places-sidebar.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/caja-places-sidebar.c b/src/caja-places-sidebar.c index d4af834f..fea0a913 100644 --- a/src/caja-places-sidebar.c +++ b/src/caja-places-sidebar.c @@ -167,10 +167,9 @@ static void open_selected_bookmark (CajaPlacesSidebar CajaWindowOpenFlags flags); #if GTK_CHECK_VERSION (3, 0, 0) -static void caja_places_sidebar_style_set (GtkWidget *widget, - GtkStyleContext *previous_style); +static void caja_places_sidebar_style_updated (GtkWidget *widget); #else -static void caja_places_sidebar_style_set (GtkWidget *widget, +static void caja_places_sidebar_style_set (GtkWidget *widget, GtkStyle *previous_style); #endif static gboolean eject_or_unmount_bookmark (CajaPlacesSidebar *sidebar, @@ -3394,7 +3393,11 @@ caja_places_sidebar_class_init (CajaPlacesSidebarClass *class) { G_OBJECT_CLASS (class)->dispose = caja_places_sidebar_dispose; +#if GTK_CHECK_VERSION (3, 0, 0) + GTK_WIDGET_CLASS (class)->style_updated = caja_places_sidebar_style_updated; +#else GTK_WIDGET_CLASS (class)->style_set = caja_places_sidebar_style_set; +#endif } static const char * @@ -3482,10 +3485,10 @@ caja_places_sidebar_set_parent_window (CajaPlacesSidebar *sidebar, } static void -caja_places_sidebar_style_set (GtkWidget *widget, #if GTK_CHECK_VERSION (3, 0, 0) - GtkStyleContext *previous_style) +caja_places_sidebar_style_updated (GtkWidget *widget) #else +caja_places_sidebar_style_set (GtkWidget *widget, GtkStyle *previous_style) #endif { |