diff options
author | raveit65 <[email protected]> | 2016-05-30 22:52:08 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2016-05-30 22:52:08 +0200 |
commit | abec93de17fb483764ab27c5c781204cef561261 (patch) | |
tree | 618b2382b6d4d892fe0248fb54de79369d75b818 /src/caja-places-sidebar.c | |
parent | 469c6d88a8a37bf09b9b75d610f53cdf90629168 (diff) | |
download | caja-abec93de17fb483764ab27c5c781204cef561261.tar.bz2 caja-abec93de17fb483764ab27c5c781204cef561261.tar.xz |
GTK+3 sidebars and caja-places: port style_set to style_updated
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 { |