[gtk+] GtkPathBar: Use symbolic icons



commit d576069cecbc7de2dbb53c9a218f3125bef27ed7
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Jul 23 13:39:38 2014 -0400

    GtkPathBar: Use symbolic icons
    
    This fits better with the symbolic icons we use in the places
    sidebar now.

 gtk/gtkpathbar.c |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)
---
diff --git a/gtk/gtkpathbar.c b/gtk/gtkpathbar.c
index 208a810..aa95a32 100644
--- a/gtk/gtkpathbar.c
+++ b/gtk/gtkpathbar.c
@@ -1390,8 +1390,9 @@ set_button_image_get_info_cb (GCancellable *cancellable,
   if (cancelled || error)
     goto out;
 
-  surface = _gtk_file_info_render_icon (info, GTK_WIDGET (data->path_bar),
-                                      data->path_bar->priv->icon_size);
+  surface = _gtk_file_info_render_symbolic_icon (info,
+                                                 GTK_WIDGET (data->path_bar),
+                                                data->path_bar->priv->icon_size);
   gtk_image_set_from_surface (GTK_IMAGE (data->button_data->image), surface);
 
   switch (data->button_data->type)
@@ -1440,10 +1441,10 @@ set_button_image (GtkPathBar *path_bar,
       if (volume == NULL)
        return;
 
-      path_bar->priv->root_icon = _gtk_file_system_volume_render_icon (volume,
-                                                                      GTK_WIDGET (path_bar),
-                                                                      path_bar->priv->icon_size,
-                                                                      NULL);
+      path_bar->priv->root_icon = _gtk_file_system_volume_render_symbolic_icon (volume,
+                                                                               GTK_WIDGET (path_bar),
+                                                                               path_bar->priv->icon_size,
+                                                                               NULL);
       _gtk_file_system_volume_unref (volume);
 
       gtk_image_set_from_surface (GTK_IMAGE (button_data->image), path_bar->priv->root_icon);
@@ -1466,7 +1467,7 @@ set_button_image (GtkPathBar *path_bar,
       button_data->cancellable =
         _gtk_file_system_get_info (path_bar->priv->file_system,
                                   path_bar->priv->home_file,
-                                  "standard::icon",
+                                  "standard::symbolic-icon",
                                   set_button_image_get_info_cb,
                                   data);
       break;
@@ -1488,7 +1489,7 @@ set_button_image (GtkPathBar *path_bar,
       button_data->cancellable =
         _gtk_file_system_get_info (path_bar->priv->file_system,
                                   path_bar->priv->desktop_file,
-                                  "standard::icon",
+                                  "standard::symbolic-icon",
                                   set_button_image_get_info_cb,
                                   data);
       break;


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