]> Pileus Git - ~andy/gtk/commitdiff
Update changelog
authorXan Lopez <xan@src.gnome.org>
Sun, 17 Jun 2007 12:02:42 +0000 (12:02 +0000)
committerXan Lopez <xan@src.gnome.org>
Sun, 17 Jun 2007 12:02:42 +0000 (12:02 +0000)
svn path=/trunk/; revision=18173

ChangeLog
gtk/gtkfilechooserbutton.c
gtk/gtkfilechooserdefault.c

index 5f1232757d410979977f995d8a7c92522c80d252..4b37f50689e4cbd3c152a73e78005837bfb8206b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2006-09-22  Dennis Cranston  <dennis_cranston@yahoo.com>
+
+       * gtk/gtkfilechooserbutton.c: (change_icon_theme),
+       (model_add_bookmarks), (model_update_current_folder):
+       * gtk/gtkfilechooserdefault.c: (shortcuts_reload_icons),
+       (shortcuts_insert_path):  Use the remote folder icon when
+       appropriate.
+
+       Follow up to #354887
+
 2007-06-17  Christian Persch  <chpe@gnome.org>
 
        * gtk/Makefile.am: Pass the print settings to the preview programme.
index 7b08b933e8fcf09818a48a8a56f1216811e02ca0..c8bb2d8ad57a1de013b6f33f766f21fb31f5d5ef 100644 (file)
@@ -1348,7 +1348,7 @@ change_icon_theme (GtkFileChooserButton *button)
                 * If we switch to a better bookmarks file format (XBEL), we
                 * should use mime info to get a better icon.
                 */
-               pixbuf = gtk_icon_theme_load_icon (theme, "gnome-fs-regular",
+               pixbuf = gtk_icon_theme_load_icon (theme, "gnome-fs-share",
                                                   priv->icon_size, 0, NULL);
            }
          else
@@ -1895,7 +1895,7 @@ model_add_bookmarks (GtkFileChooserButton *button,
            }
 
          icon_theme = gtk_icon_theme_get_for_screen (gtk_widget_get_screen (GTK_WIDGET (button)));
-         pixbuf = gtk_icon_theme_load_icon (icon_theme, "gnome-fs-directory", 
+         pixbuf = gtk_icon_theme_load_icon (icon_theme, "gnome-fs-share", 
                                             button->priv->icon_size, 0, NULL);
 
          gtk_list_store_insert (store, &iter, pos);
@@ -2004,8 +2004,16 @@ model_update_current_folder (GtkFileChooserButton *button,
        }
       
       icon_theme = gtk_icon_theme_get_for_screen (gtk_widget_get_screen (GTK_WIDGET (button)));
-      pixbuf = gtk_icon_theme_load_icon (icon_theme, "gnome-fs-directory", 
-                                        button->priv->icon_size, 0, NULL);
+      if (gtk_file_system_path_is_local (button->priv->fs, path)) 
+       {
+         pixbuf = gtk_icon_theme_load_icon (icon_theme, "gnome-fs-directory", 
+                                            button->priv->icon_size, 0, NULL);
+       }
+      else
+       {
+         pixbuf = gtk_icon_theme_load_icon (icon_theme, "gnome-fs-share", 
+                                            button->priv->icon_size, 0, NULL);
+       }
       
       gtk_list_store_set (store, &iter,
                          ICON_COLUMN, pixbuf,
index b93d2ae03bda534658503cdcbf505b62ce795624..63bdaf2fdd5f3c9063826a42d40b4973fc901b23 100644 (file)
@@ -1410,7 +1410,7 @@ shortcuts_reload_icons (GtkFileChooserDefault *impl)
                   * should use mime info to get a better icon.
                   */
                  icon_theme = gtk_icon_theme_get_for_screen (gtk_widget_get_screen (GTK_WIDGET (impl)));
-                 pixbuf = gtk_icon_theme_load_icon (icon_theme, "gnome-fs-directory", 
+                 pixbuf = gtk_icon_theme_load_icon (icon_theme, "gnome-fs-share", 
                                                     impl->icon_size, 0, NULL);
 
                  gtk_list_store_set (impl->shortcuts_model, &iter,
@@ -1811,7 +1811,7 @@ shortcuts_insert_path (GtkFileChooserDefault *impl,
            * should use mime info to get a better icon.
            */
           icon_theme = gtk_icon_theme_get_for_screen (gtk_widget_get_screen (GTK_WIDGET (impl)));
-          pixbuf = gtk_icon_theme_load_icon (icon_theme, "gnome-fs-directory", 
+          pixbuf = gtk_icon_theme_load_icon (icon_theme, "gnome-fs-share", 
                                             impl->icon_size, 0, NULL);
         }
     }