From 9f4ab08ded1b6a3ae4680c021fabd293fcf48cee Mon Sep 17 00:00:00 2001 From: lukefromdc Date: Sat, 28 May 2016 18:09:59 -0400 Subject: GTK3:caja-information-panel.c use GtkStyleContext caja-information-panel.c: Port caja_information_panel_style_set to GtkStyleContext in GTK3 builds --- src/caja-information-panel.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/caja-information-panel.c') diff --git a/src/caja-information-panel.c b/src/caja-information-panel.c index fed6e1d1..c90e6b76 100644 --- a/src/caja-information-panel.c +++ b/src/caja-information-panel.c @@ -81,8 +81,13 @@ static void caja_information_panel_drag_data_received (GtkWidget guint info, guint time); static void caja_information_panel_read_defaults (CajaInformationPanel *information_panel); +#if GTK_CHECK_VERSION (3, 0, 0) +static void caja_information_panel_style_set (GtkWidget *widget, + GtkStyleContext *previous_style); +#else static void caja_information_panel_style_set (GtkWidget *widget, GtkStyle *previous_style); +#endif static void caja_information_panel_theme_changed (GSettings *settings, const gchar *key, gpointer user_data); @@ -1174,7 +1179,11 @@ title_changed_callback (CajaWindowInfo *window, /* ::style_set handler for the information_panel */ static void +#if GTK_CHECK_VERSION (3, 0, 0) +caja_information_panel_style_set (GtkWidget *widget, GtkStyleContext *previous_style) +#else caja_information_panel_style_set (GtkWidget *widget, GtkStyle *previous_style) +#endif { CajaInformationPanel *information_panel; -- cgit v1.2.1