summaryrefslogtreecommitdiff
path: root/src/caja-history-sidebar.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-05-30 22:52:08 +0200
committerraveit65 <[email protected]>2016-05-30 22:52:08 +0200
commitabec93de17fb483764ab27c5c781204cef561261 (patch)
tree618b2382b6d4d892fe0248fb54de79369d75b818 /src/caja-history-sidebar.c
parent469c6d88a8a37bf09b9b75d610f53cdf90629168 (diff)
downloadcaja-abec93de17fb483764ab27c5c781204cef561261.tar.bz2
caja-abec93de17fb483764ab27c5c781204cef561261.tar.xz
GTK+3 sidebars and caja-places: port style_set to style_updated
Diffstat (limited to 'src/caja-history-sidebar.c')
-rw-r--r--src/caja-history-sidebar.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/caja-history-sidebar.c b/src/caja-history-sidebar.c
index 062d943d..4ad18137 100644
--- a/src/caja-history-sidebar.c
+++ b/src/caja-history-sidebar.c
@@ -75,8 +75,7 @@ static void caja_history_sidebar_iface_init (CajaSidebarIface *i
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);
+static void caja_history_sidebar_style_updated (GtkWidget *widget);
#else
static void caja_history_sidebar_style_set (GtkWidget *widget,
GtkStyle *previous_style);
@@ -326,7 +325,11 @@ caja_history_sidebar_class_init (CajaHistorySidebarClass *class)
{
G_OBJECT_CLASS (class)->finalize = caja_history_sidebar_finalize;
+#if GTK_CHECK_VERSION (3, 0, 0)
+ GTK_WIDGET_CLASS (class)->style_updated = caja_history_sidebar_style_updated;
+#else
GTK_WIDGET_CLASS (class)->style_set = caja_history_sidebar_style_set;
+#endif
}
static const char *
@@ -379,10 +382,10 @@ 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)
+caja_history_sidebar_style_updated (GtkWidget *widget)
#else
+caja_history_sidebar_style_set (GtkWidget *widget,
GtkStyle *previous_style)
#endif
{