+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.
* 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
}
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);
}
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,
* 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,
* 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);
}
}