diff options
author | lukefromdc <[email protected]> | 2016-05-28 18:09:59 -0400 |
---|---|---|
committer | lukefromdc <[email protected]> | 2016-05-28 18:09:59 -0400 |
commit | 9f4ab08ded1b6a3ae4680c021fabd293fcf48cee (patch) | |
tree | fd4c857b1e48958e0f5a2bd110fc2512947ed4ff | |
parent | aff48d2d6233db8c303a28f618b9f635a6a6b090 (diff) | |
download | caja-9f4ab08ded1b6a3ae4680c021fabd293fcf48cee.tar.bz2 caja-9f4ab08ded1b6a3ae4680c021fabd293fcf48cee.tar.xz |
GTK3:caja-information-panel.c use GtkStyleContext
caja-information-panel.c: Port caja_information_panel_style_set to GtkStyleContext in GTK3 builds
-rw-r--r-- | src/caja-information-panel.c | 9 |
1 files changed, 9 insertions, 0 deletions
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; |