diff options
author | Wolfgang Ulbrich <[email protected]> | 2016-01-07 04:57:44 +0100 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2016-01-13 15:05:41 +0100 |
commit | 20dd53f7822de644ca60cc200f5286a90d3b28b3 (patch) | |
tree | e30021852b8ef4d56e8699377fb27e479c3552be | |
parent | 5a7203f46bcccc29271058d1f03ed149d6c2860b (diff) | |
download | caja-20dd53f7822de644ca60cc200f5286a90d3b28b3.tar.bz2 caja-20dd53f7822de644ca60cc200f5286a90d3b28b3.tar.xz |
GTK3 spatial-window: port to GtkStyleContext
taken from:
https://git.gnome.org/browse/nautilus/commit/?h=gnome-3-0&id=507b56e3a527e28117b259dbf0dce48f1656dd7d
-rw-r--r-- | src/caja-spatial-window.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/caja-spatial-window.c b/src/caja-spatial-window.c index 4dfe9bfb..05082358 100644 --- a/src/caja-spatial-window.c +++ b/src/caja-spatial-window.c @@ -989,7 +989,9 @@ static const char* icon_entries[] = static void caja_spatial_window_init (CajaSpatialWindow *window) { +#if !GTK_CHECK_VERSION (3, 0, 0) GtkRcStyle *rc_style; +#endif GtkWidget *arrow; GtkWidget *hbox, *vbox; GtkActionGroup *action_group; @@ -1035,11 +1037,13 @@ caja_spatial_window_init (CajaSpatialWindow *window) window); gtk_button_set_relief (GTK_BUTTON (window->details->location_button), GTK_RELIEF_NORMAL); +#if !GTK_CHECK_VERSION (3, 0, 0) rc_style = gtk_widget_get_modifier_style (window->details->location_button); rc_style->xthickness = 0; rc_style->ythickness = 0; gtk_widget_modify_style (window->details->location_button, rc_style); +#endif gtk_widget_show (window->details->location_button); hbox = gtk_hbox_new (FALSE, 3); |