diff options
author | lukefromdc <[email protected]> | 2016-05-28 18:08:00 -0400 |
---|---|---|
committer | lukefromdc <[email protected]> | 2016-05-28 18:08:00 -0400 |
commit | aff48d2d6233db8c303a28f618b9f635a6a6b090 (patch) | |
tree | 8f56d466cb2f9dcd0fee4e84d2c32ab02a007cfb | |
parent | a6c32f442e7b86e97a741b3559d96e1f77bbe300 (diff) | |
download | caja-aff48d2d6233db8c303a28f618b9f635a6a6b090.tar.bz2 caja-aff48d2d6233db8c303a28f618b9f635a6a6b090.tar.xz |
GTK3: port history sidebar to GtkStyleContext
caja-history-sidebar.c: port caja_history_sidebar_style_set GtkStyleContext in GTK3 builds
-rw-r--r-- | src/caja-history-sidebar.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/caja-history-sidebar.c b/src/caja-history-sidebar.c index c064156f..062d943d 100644 --- a/src/caja-history-sidebar.c +++ b/src/caja-history-sidebar.c @@ -74,8 +74,13 @@ enum static void caja_history_sidebar_iface_init (CajaSidebarIface *iface); static void sidebar_provider_iface_init (CajaSidebarProviderIface *iface); static GType caja_history_sidebar_provider_get_type (void); +#if GTK_CHECK_VERSION (3, 0, 0) +static void caja_history_sidebar_style_set (GtkWidget *widget, + GtkStyleContext *previous_style); +#else static void caja_history_sidebar_style_set (GtkWidget *widget, GtkStyle *previous_style); +#endif G_DEFINE_TYPE_WITH_CODE (CajaHistorySidebar, caja_history_sidebar, GTK_TYPE_SCROLLED_WINDOW, G_IMPLEMENT_INTERFACE (CAJA_TYPE_SIDEBAR, @@ -375,7 +380,11 @@ caja_history_sidebar_set_parent_window (CajaHistorySidebar *sidebar, static void caja_history_sidebar_style_set (GtkWidget *widget, +#if GTK_CHECK_VERSION (3, 0, 0) + GtkStyleContext *previous_style) +#else GtkStyle *previous_style) +#endif { CajaHistorySidebar *sidebar; |