summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2016-05-28 18:19:27 -0400
committerlukefromdc <[email protected]>2016-05-28 18:19:27 -0400
commita540850b3f69e384dd525d5f767541cf7d186454 (patch)
tree89145b2756283713a534ea1e900d37c43a1b1fa5 /src
parent9e97cf839b297dedccb1955603a02295a6292d87 (diff)
downloadcaja-a540850b3f69e384dd525d5f767541cf7d186454.tar.bz2
caja-a540850b3f69e384dd525d5f767541cf7d186454.tar.xz
GTK3: caja-places-sidebar.c use GtkStyleContext
caja-places-sidebar.c: Port caja_places_sidebar_style_set to GtkStyleContext from GtkStyle in GTK3 builds
Diffstat (limited to 'src')
-rw-r--r--src/caja-places-sidebar.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/caja-places-sidebar.c b/src/caja-places-sidebar.c
index 0fdeb9e3..d4af834f 100644
--- a/src/caja-places-sidebar.c
+++ b/src/caja-places-sidebar.c
@@ -165,8 +165,14 @@ static void open_selected_bookmark (CajaPlacesSidebar
GtkTreeModel *model,
GtkTreePath *path,
CajaWindowOpenFlags flags);
+
+#if GTK_CHECK_VERSION (3, 0, 0)
+static void caja_places_sidebar_style_set (GtkWidget *widget,
+ GtkStyleContext *previous_style);
+#else
static void caja_places_sidebar_style_set (GtkWidget *widget,
GtkStyle *previous_style);
+#endif
static gboolean eject_or_unmount_bookmark (CajaPlacesSidebar *sidebar,
GtkTreePath *path);
static gboolean eject_or_unmount_selection (CajaPlacesSidebar *sidebar);
@@ -3477,7 +3483,11 @@ caja_places_sidebar_set_parent_window (CajaPlacesSidebar *sidebar,
static void
caja_places_sidebar_style_set (GtkWidget *widget,
+#if GTK_CHECK_VERSION (3, 0, 0)
+ GtkStyleContext *previous_style)
+#else
GtkStyle *previous_style)
+#endif
{
CajaPlacesSidebar *sidebar;