From 016d9a8f06c2c852c61a690247cf614adae9de2f Mon Sep 17 00:00:00 2001 From: raveit65 Date: Tue, 28 Jun 2016 23:53:27 +0200 Subject: 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 --- src/caja-pathbar.c | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.1