From 6ea2659b4574f8598e4c364f56bb2194bafc35c2 Mon Sep 17 00:00:00 2001 From: Wolfgang Ulbrich Date: Mon, 1 Feb 2016 20:29:20 +0100 Subject: GTK3 sid-pane: add 'caja-side-pane' style class All widgets for the sidebar can be selected with this style class on top. Needed for gtk+-3.20. --- src/caja-side-pane.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/caja-side-pane.c b/src/caja-side-pane.c index 7be604cf..8799fb0d 100644 --- a/src/caja-side-pane.c +++ b/src/caja-side-pane.c @@ -320,6 +320,13 @@ caja_side_pane_init (GObject *object) side_pane->details = G_TYPE_INSTANCE_GET_PRIVATE (object, CAJA_TYPE_SIDE_PANE, CajaSidePaneDetails); +#if GTK_CHECK_VERSION(3, 0, 0) + GtkStyleContext *context; + + context = gtk_widget_get_style_context (GTK_WIDGET (object)); + gtk_style_context_add_class (context, "caja-side-pane"); +#endif + hbox = gtk_hbox_new (FALSE, 0); gtk_container_set_border_width (GTK_CONTAINER (hbox), 4); side_pane->details->title_hbox = hbox; -- cgit v1.2.1