diff options
author | Wolfgang Ulbrich <[email protected]> | 2016-02-01 20:29:20 +0100 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2016-02-01 20:29:20 +0100 |
commit | 6ea2659b4574f8598e4c364f56bb2194bafc35c2 (patch) | |
tree | 5e10e0cecf9a8a4ffdc95e73269e6857229e4876 | |
parent | 334e89244987fcfe89ca765f3986fa85254395eb (diff) | |
download | caja-6ea2659b4574f8598e4c364f56bb2194bafc35c2.tar.bz2 caja-6ea2659b4574f8598e4c364f56bb2194bafc35c2.tar.xz |
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.
-rw-r--r-- | src/caja-side-pane.c | 7 |
1 files changed, 7 insertions, 0 deletions
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; |