[nautilus/gnome-3-20] pathbar: use sane arrows



commit f1724b047e12f25b272fe524ea716ef133781fa4
Author: Carlos Soriano <csoriano gnome org>
Date:   Thu Mar 17 16:46:25 2016 +0100

    pathbar: use sane arrows
    
    Just symbolic icons, not GtkArrows.

 src/nautilus-pathbar.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/src/nautilus-pathbar.c b/src/nautilus-pathbar.c
index c3aa72c..7f38470 100644
--- a/src/nautilus-pathbar.c
+++ b/src/nautilus-pathbar.c
@@ -202,8 +202,8 @@ action_pathbar_properties (GSimpleAction *action,
 }
 
 static GtkWidget *
-get_slider_button (NautilusPathBar  *path_bar,
-                  GtkArrowType arrow_type)
+get_slider_button (NautilusPathBar *path_bar,
+                   const gchar     *arrow_type)
 {
         GtkWidget *button;
 
@@ -212,7 +212,8 @@ get_slider_button (NautilusPathBar  *path_bar,
         button = gtk_button_new ();
        gtk_button_set_focus_on_click (GTK_BUTTON (button), FALSE);
        gtk_widget_add_events (button, GDK_SCROLL_MASK);
-        gtk_container_add (GTK_CONTAINER (button), gtk_arrow_new (arrow_type, GTK_SHADOW_OUT));
+        gtk_container_add (GTK_CONTAINER (button),
+                           gtk_image_new_from_icon_name (arrow_type, GTK_ICON_SIZE_MENU));
         gtk_container_add (GTK_CONTAINER (path_bar), button);
         gtk_widget_show_all (button);
 
@@ -310,8 +311,8 @@ nautilus_path_bar_init (NautilusPathBar *path_bar)
        gtk_widget_set_has_window (GTK_WIDGET (path_bar), FALSE);
         gtk_widget_set_redraw_on_allocate (GTK_WIDGET (path_bar), FALSE);
 
-        path_bar->priv->up_slider_button = get_slider_button (path_bar, GTK_ARROW_LEFT);
-        path_bar->priv->down_slider_button = get_slider_button (path_bar, GTK_ARROW_RIGHT);
+        path_bar->priv->up_slider_button = get_slider_button (path_bar, "go-previous-symbolic");
+        path_bar->priv->down_slider_button = get_slider_button (path_bar, "go-next-symbolic");
 
         g_signal_connect_swapped (path_bar->priv->up_slider_button, "clicked", G_CALLBACK 
(nautilus_path_bar_scroll_up), path_bar);
         g_signal_connect_swapped (path_bar->priv->down_slider_button, "clicked", G_CALLBACK 
(nautilus_path_bar_scroll_down), path_bar);


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