[nautilus] pathbar: use text-button style class for pathbar buttons



commit fe45b6304c14cb2ba06237eadc2bce9d16c24d20
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Fri Feb 22 15:06:26 2013 -0500

    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.

 src/nautilus-pathbar.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-pathbar.c b/src/nautilus-pathbar.c
index ee60b58..2029aba 100644
--- a/src/nautilus-pathbar.c
+++ b/src/nautilus-pathbar.c
@@ -1595,6 +1595,8 @@ make_button_data (NautilusPathBar  *path_bar,
 
         setup_button_type (button_data, path_bar, path);
         button_data->button = gtk_toggle_button_new ();
+       gtk_style_context_add_class (gtk_widget_get_style_context (button_data->button),
+                                    "text-button");
        gtk_button_set_focus_on_click (GTK_BUTTON (button_data->button), FALSE);
        gtk_widget_add_events (button_data->button, GDK_SCROLL_MASK);
        /* TODO update button type when xdg directories change */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]