summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-06-28 23:53:27 +0200
committerraveit65 <[email protected]>2016-07-14 16:15:12 +0200
commit016d9a8f06c2c852c61a690247cf614adae9de2f (patch)
tree69539a84a748faedbcd13698ffd61ed3e8be5c53 /src
parent60dda66f9beda2f3d8e4782aaa4ee381294173b2 (diff)
downloadcaja-016d9a8f06c2c852c61a690247cf614adae9de2f.tar.bz2
caja-016d9a8f06c2c852c61a690247cf614adae9de2f.tar.xz
GTK+-3 pathbar: use text-button style class for pathbar buttons
This will give it more horizontal spacing, like we do for text buttons in main toolbars. taken from: https://git.gnome.org/browse/nautilus/commit/src?id=fe45b63
Diffstat (limited to 'src')
-rw-r--r--src/caja-pathbar.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/caja-pathbar.c b/src/caja-pathbar.c
index 3fae370e..ce39fa9b 100644
--- a/src/caja-pathbar.c
+++ b/src/caja-pathbar.c
@@ -2056,6 +2056,10 @@ make_directory_button (CajaPathBar *path_bar,
setup_button_type (button_data, path_bar, path);
button_data->button = gtk_toggle_button_new ();
+#if GTK_CHECK_VERSION(3,0,0)
+ gtk_style_context_add_class (gtk_widget_get_style_context (button_data->button),
+ "text-button");
+#endif
#if GTK_CHECK_VERSION(3,20,0)
gtk_widget_set_focus_on_click (button_data->button, FALSE);
#else