summaryrefslogtreecommitdiff
path: root/src/caja-history-sidebar.c
diff options
context:
space:
mode:
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
{