Re: [PATCH] Always use "user-home" as named icon for home



Il giorno mer, 23/01/2008 alle 13.22 +0100, Luca Ferretti ha scritto:
> It seems that currently is using both old and legacy named icon
> "gnome-fs-home" and new "user-home"
> 
> Here is the patch to always use the new one, updated to latest sources.
> 
> More named icons update can be found at bug #407130 (while patches are
> outdate, I'll update them in next days)
> 

Updated patch, merging all patches from bug #407130 and using a
different approach: add a libnautilus-private/nautilus-icon-names.h file
with icon
name definitions like:

  #define NAUTILUS_ICON_HOME    "user-home"
  #define NAUTILUS_ICON_DESKTOP "user-desktop"
  [...]

and use them in sources.

OK to commit?
Index: nautilus-computer.desktop.in.in
===================================================================
--- nautilus-computer.desktop.in.in	(revisione 13644)
+++ nautilus-computer.desktop.in.in	(copia locale)
@@ -4,7 +4,7 @@
 _Comment=Browse all local and remote disks and folders accessible from this computer
 TryExec=nautilus
 Exec=nautilus --no-desktop computer:
-Icon=gnome-fs-client
+Icon=computer
 Terminal=false
 StartupNotify=true
 Type=Application
Index: nautilus.desktop.in.in
===================================================================
--- nautilus.desktop.in.in	(revisione 13644)
+++ nautilus.desktop.in.in	(copia locale)
@@ -4,7 +4,7 @@
 _Comment=Browse the file system with the file manager
 TryExec=nautilus
 Exec=nautilus --no-desktop --browser %U
-Icon=file-manager
+Icon=system-file-manager
 Terminal=false
 StartupNotify=true
 Type=Application
Index: src/nautilus-window-menus.c
===================================================================
--- src/nautilus-window-menus.c	(revisione 13644)
+++ src/nautilus-window-menus.c	(copia locale)
@@ -50,6 +50,7 @@
 #include <libgnomeui/gnome-help.h>
 #include <libnautilus-extension/nautilus-menu-provider.h>
 #include <libnautilus-private/nautilus-file-utilities.h>
+#include <libnautilus-private/nautilus-icon-names.h>
 #include <libnautilus-private/nautilus-ui-utilities.h>
 #include <libnautilus-private/nautilus-module.h>
 #include <libnautilus-private/nautilus-undo-manager.h>
@@ -665,27 +666,27 @@
     N_("Connect to a remote computer or shared disk"),                                      /* tooltip */ 
     G_CALLBACK (action_connect_to_server_callback) },
 #endif
-  { "Home", "gnome-fs-home",                        /* name, stock id */
+  { "Home", NAUTILUS_ICON_HOME,                        /* name, stock id */
     N_("_Home Folder"), "<alt>Home",           /* label, accelerator */
     N_("Open your personal folder"),                                  /* tooltip */ 
     G_CALLBACK (action_home_callback) },
-  { "Go to Computer", "gnome-fs-client",                        /* name, stock id */
+  { "Go to Computer", NAUTILUS_ICON_COMPUTER,                        /* name, stock id */
     N_("_Computer"), NULL,           /* label, accelerator */
     N_("Browse all local and remote disks and folders accessible from this computer"),                                  /* tooltip */ 
     G_CALLBACK (action_go_to_computer_callback) },
-  { "Go to Network", "gnome-fs-network",                        /* name, stock id */
+  { "Go to Network", NAUTILUS_ICON_NETWORK,                        /* name, stock id */
     N_("_Network"), NULL,           /* label, accelerator */
     N_("Browse bookmarked and local network locations"),                                  /* tooltip */ 
     G_CALLBACK (action_go_to_network_callback) },
-  { "Go to Templates", "stock_new-template",                        /* name, stock id */
+  { "Go to Templates", NAUTILUS_ICON_TEMPLATE,                        /* name, stock id */
     N_("T_emplates"), NULL,           /* label, accelerator */
     N_("Open your personal templates folder"),                                  /* tooltip */ 
     G_CALLBACK (action_go_to_templates_callback) },
-  { "Go to Trash", "user-trash",                        /* name, stock id */
+  { "Go to Trash", NAUTILUS_ICON_TRASH,                        /* name, stock id */
     N_("_Trash"), NULL,           /* label, accelerator */
     N_("Open your personal trash folder"),                                  /* tooltip */ 
     G_CALLBACK (action_go_to_trash_callback) },
-  { "Go to Burn CD", "nautilus-cd-burner",                        /* name, stock id */
+  { "Go to Burn CD", NAUTILUS_ICON_BURN,                        /* name, stock id */
     N_("CD/_DVD Creator"), NULL,           /* label, accelerator */
     N_("Open a folder into which you can drag files to burn to a CD or DVD"),                                  /* tooltip */ 
     G_CALLBACK (action_go_to_burn_cd_callback) },
Index: src/nautilus-bookmark-list.c
===================================================================
--- src/nautilus-bookmark-list.c	(revisione 13644)
+++ src/nautilus-bookmark-list.c	(copia locale)
@@ -30,6 +30,7 @@
 
 #include <libnautilus-private/nautilus-file-utilities.h>
 #include <libnautilus-private/nautilus-file.h>
+#include <libnautilus-private/nautilus-icon-names.h>
 #include <eel/eel-glib-extensions.h>
 #include <eel/eel-string.h>
 #include <gio/gio.h>
@@ -88,7 +89,7 @@
 		nautilus_file_unref (file);
 		
 		if (icon == NULL) {
-			icon = g_themed_icon_new ("gnome-fs-directory");
+			icon = g_themed_icon_new (NAUTILUS_ICON_FOLDER);
 		}
 
 		new_bookmark = nautilus_bookmark_new_with_icon (location, name, has_label, icon);
Index: src/nautilus-pathbar.c
===================================================================
--- src/nautilus-pathbar.c	(revisione 13644)
+++ src/nautilus-pathbar.c	(copia locale)
@@ -37,6 +37,7 @@
 #include <libnautilus-private/nautilus-file.h>
 #include <libnautilus-private/nautilus-file-utilities.h>
 #include <libnautilus-private/nautilus-global-preferences.h>
+#include <libnautilus-private/nautilus-icon-names.h>
 #include "nautilus-pathbar.h"
 
 enum {
@@ -63,11 +64,6 @@
 
 #define NAUTILUS_PATH_BAR_ICON_SIZE 16
 
-#define DEFAULT_ICON 		"folder"
-#define DEFAULT_DESKTOP_ICON 	"user-desktop"
-#define DEFAULT_HOME_ICON 	"user-home"
-#define DEFAULT_FILESYSTEM_ICON	"gnome-dev-harddisk"
-
 typedef struct _ButtonData ButtonData;
 
 struct _ButtonData
@@ -1016,7 +1012,7 @@
 }
 
 static GdkPixbuf *
-get_icon_for_file_path (GFile *location, const char *default_icon_name)
+get_icon_for_file_path (GFile *location, const char *NAUTILUS_ICON_FOLDER_name)
 {
 	NautilusFile *file;
 	NautilusIconInfo *info;
@@ -1035,7 +1031,7 @@
 
 	nautilus_file_unref (file);
 
-	info = nautilus_icon_info_lookup_from_name (default_icon_name, NAUTILUS_PATH_BAR_ICON_SIZE);
+	info = nautilus_icon_info_lookup_from_name (NAUTILUS_ICON_FOLDER_name, NAUTILUS_PATH_BAR_ICON_SIZE);
 	pixbuf = nautilus_icon_info_get_pixbuf_at_size (info, NAUTILUS_PATH_BAR_ICON_SIZE);
 	g_object_unref (info);
 	
@@ -1053,7 +1049,7 @@
 				return path_bar->root_icon;
                        	}
 
-			path_bar->root_icon = get_icon_for_file_path (path_bar->root_path, DEFAULT_FILESYSTEM_ICON);
+			path_bar->root_icon = get_icon_for_file_path (path_bar->root_path, NAUTILUS_ICON_FILESYSTEM);
 			return path_bar->root_icon;
 
 		case HOME_BUTTON:
@@ -1061,14 +1057,14 @@
 		      		return path_bar->home_icon;
 			}
 
-			path_bar->home_icon = get_icon_for_file_path (path_bar->root_path, DEFAULT_HOME_ICON);
+			path_bar->home_icon = get_icon_for_file_path (path_bar->root_path, NAUTILUS_ICON_HOME);
 			return path_bar->home_icon;
 
                 case DESKTOP_BUTTON:
                       	if (path_bar->desktop_icon != NULL) {
 				return path_bar->desktop_icon;
 			}
-			path_bar->desktop_icon = get_icon_for_file_path (path_bar->root_path, DEFAULT_DESKTOP_ICON);
+			path_bar->desktop_icon = get_icon_for_file_path (path_bar->root_path, NAUTILUS_ICON_DESKTOP);
       			return path_bar->desktop_icon;
 
 	    	default:
@@ -1194,7 +1190,7 @@
 			if (button_data) {
 				icon = g_mount_get_icon (mount);
 				if (icon == NULL) {
-					icon = g_themed_icon_new (DEFAULT_ICON);
+					icon = g_themed_icon_new (NAUTILUS_ICON_FOLDER);
 				}
 				info = nautilus_icon_info_lookup (icon, NAUTILUS_PATH_BAR_ICON_SIZE);
 				g_object_unref (icon);
@@ -1320,7 +1316,7 @@
         	                gtk_box_pack_start (GTK_BOX (child), button_data->image, FALSE, FALSE, 0);
         	                gtk_box_pack_start (GTK_BOX (child), label_alignment, FALSE, FALSE, 0);
 				button_data->is_base_dir = TRUE;
-				button_data->custom_icon = get_icon_for_file_path (path, DEFAULT_ICON);
+				button_data->custom_icon = get_icon_for_file_path (path, NAUTILUS_ICON_FOLDER);
 			} else {
 				button_data->is_base_dir = FALSE;
 	      			button_data->label = gtk_label_new (NULL);
Index: src/file-manager/fm-tree-view.c
===================================================================
--- src/file-manager/fm-tree-view.c	(revisione 13644)
+++ src/file-manager/fm-tree-view.c	(copia locale)
@@ -66,6 +66,7 @@
 #include <libnautilus-private/nautilus-file-operations.h>
 #include <libnautilus-private/nautilus-file-utilities.h>
 #include <libnautilus-private/nautilus-global-preferences.h>
+#include <libnautilus-private/nautilus-icon-names.h>
 #include <libnautilus-private/nautilus-program-choosing.h>
 #include <libnautilus-private/nautilus-tree-view-drag-dest.h>
 #include <libnautilus-private/nautilus-cell-renderer-pixbuf-emblem.h>
@@ -1180,7 +1181,7 @@
 	eel_gtk_menu_append_separator (GTK_MENU (popup));
 	
 	/* add the "move to trash" menu item */
-	menu_image = gtk_image_new_from_icon_name ("user-trash",
+	menu_image = gtk_image_new_from_icon_name (NAUTILUS_ICON_TRASH,
 						   GTK_ICON_SIZE_MENU);
 	gtk_widget_show (menu_image);
 	menu_item = gtk_image_menu_item_new_with_label (_("Move to Trash"));
@@ -1255,16 +1256,16 @@
 		 G_CALLBACK (row_loaded_callback),
 		 view, G_CONNECT_AFTER);
 	home_uri = nautilus_get_home_directory_uri ();
-	icon = g_themed_icon_new ("user-home");
+	icon = g_themed_icon_new (NAUTILUS_ICON_HOME);
 	fm_tree_model_add_root_uri (view->details->child_model, home_uri, _("Home Folder"), icon, NULL);
 	g_object_unref (icon);
 	g_free (home_uri);
-	icon = g_themed_icon_new ("folder");
+	icon = g_themed_icon_new (NAUTILUS_ICON_FILESYSTEM);
 	fm_tree_model_add_root_uri (view->details->child_model, "file:///", _("File System"), icon, NULL);
 	g_object_unref (icon);
 #ifdef NOT_YET_USABLE
-	icon = g_themed_icon_new ("gnome-fs-network");
-	fm_tree_model_add_root_uri (view->details->child_model, "network:///", _("Network Neighbourhood"), "gnome-fs-network", NULL);
+	icon = g_themed_icon_new (NAUTILUS_ICON_NETWORK);
+	fm_tree_model_add_root_uri (view->details->child_model, "network:///", _("Network Neighbourhood"), NAUTILUS_ICON_NETWORK, NULL);
 	g_object_unref (icon);
 #endif
 	
Index: src/file-manager/fm-directory-view.c
===================================================================
--- src/file-manager/fm-directory-view.c	(revisione 13644)
+++ src/file-manager/fm-directory-view.c	(copia locale)
@@ -96,6 +96,7 @@
 #include <libnautilus-private/nautilus-ui-utilities.h>
 #include <libnautilus-private/nautilus-signaller.h>
 #include <libnautilus-private/nautilus-autorun.h>
+#include <libnautilus-private/nautilus-icon-names.h>
 #include <unistd.h>
 
 /* Minimum starting update inverval */
@@ -6298,7 +6299,7 @@
     "RenameSelectAll", "<shift>F2",                /* label, accelerator */
     NULL,                   /* tooltip */ 
     G_CALLBACK (action_rename_select_all_callback) },
-  { "Trash", "user-trash",                  /* name, stock id */
+  { "Trash", NAUTILUS_ICON_TRASH,                  /* name, stock id */
     N_("Mo_ve to Trash"), "<control>T",                /* label, accelerator */
     N_("Move each selected item to the Trash"),                   /* tooltip */ 
     G_CALLBACK (action_trash_callback) },
@@ -6379,7 +6380,7 @@
     N_("Prepare this folder to be copied with a Paste command"),                   /* tooltip */ 
     G_CALLBACK (action_location_copy_callback) },
 
-  { FM_ACTION_LOCATION_TRASH, "user-trash",                  /* name, stock id */
+  { FM_ACTION_LOCATION_TRASH, NAUTILUS_ICON_TRASH,                  /* name, stock id */
     N_("Mo_ve to Trash"), "",                /* label, accelerator */
     N_("Move this folder to the Trash"),                   /* tooltip */ 
     G_CALLBACK (action_location_trash_callback) },
Index: src/nautilus-connect-server-dialog-main.c
===================================================================
--- src/nautilus-connect-server-dialog-main.c	(revisione 13644)
+++ src/nautilus-connect-server-dialog-main.c	(copia locale)
@@ -39,6 +39,8 @@
 #include <eel/eel-preferences.h>
 #include <eel/eel-stock-dialogs.h>
 
+#include <libnautilus-private/nautilus-icon-names.h>
+
 #include "nautilus-window.h"
 #include "nautilus-connect-server-dialog.h"
 
@@ -124,7 +126,7 @@
 
 	eel_preferences_init ("/apps/nautilus");
 
-	gtk_window_set_default_icon_name ("gnome-fs-directory");
+	gtk_window_set_default_icon_name (NAUTILUS_ICON_FOLDER);
 
 
 	/* command line arguments, null terminated array */
Index: src/nautilus-desktop-window.c
===================================================================
--- src/nautilus-desktop-window.c	(revisione 13644)
+++ src/nautilus-desktop-window.c	(copia locale)
@@ -34,6 +34,7 @@
 #include <eel/eel-vfs-extensions.h>
 #include <libgnome/gnome-macros.h>
 #include <libnautilus-private/nautilus-file-utilities.h>
+#include <libnautilus-private/nautilus-icon-names.h>
 #include <gio/gio.h>
 
 struct NautilusDesktopWindowDetails {
@@ -253,7 +254,7 @@
 static NautilusIconInfo *
 real_get_icon (NautilusWindow *window)
 {
-	return nautilus_icon_info_lookup_from_name ("user-desktop", 48);
+	return nautilus_icon_info_lookup_from_name (NAUTILUS_ICON_DESKTOP, 48);
 }
 
 static void
Index: src/nautilus-main.c
===================================================================
--- src/nautilus-main.c	(revisione 13644)
+++ src/nautilus-main.c	(copia locale)
@@ -55,6 +55,7 @@
 #include <libnautilus-private/nautilus-directory-metafile.h>
 #include <libnautilus-private/nautilus-global-preferences.h>
 #include <libnautilus-private/nautilus-lib-self-check-functions.h>
+#include <libnautilus-private/nautilus-icon-names.h>
 #include <libxml/parser.h>
 #ifdef HAVE_LOCALE_H
 #include <locale.h>
@@ -482,7 +483,7 @@
 	}
 
         /* Set default icon for all nautilus windows */
-	gtk_window_set_default_icon_name ("gnome-fs-directory");
+	gtk_window_set_default_icon_name (NAUTILUS_ICON_FOLDER);
 	
 	/* Need to set this to the canonical DISPLAY value, since
 	   thats where we're registering per-display components */
Index: src/network-scheme.desktop.in
===================================================================
--- src/network-scheme.desktop.in	(revisione 13644)
+++ src/network-scheme.desktop.in	(copia locale)
@@ -7,6 +7,6 @@
 Terminal=false
 StartupNotify=true
 Type=Application
-Icon=gnome-fs-network
+Icon=network-workgroup
 Categories=Core;
 OnlyShowIn=GNOME;
Index: src/nautilus-places-sidebar.c
===================================================================
--- src/nautilus-places-sidebar.c	(revisione 13644)
+++ src/nautilus-places-sidebar.c	(copia locale)
@@ -55,6 +55,7 @@
 #include <libnautilus-private/nautilus-file-utilities.h>
 #include <libnautilus-private/nautilus-file-operations.h>
 #include <libnautilus-private/nautilus-trash-monitor.h>
+#include <libnautilus-private/nautilus-icon-names.h>
 #include <gio/gio.h>
 
 #include "nautilus-bookmark-list.h"
@@ -259,7 +260,7 @@
 
 		mount_uri = nautilus_get_home_directory_uri ();
 		display_name = g_filename_display_basename (g_get_home_dir ());
-		icon = g_themed_icon_new ("gnome-fs-home");
+		icon = g_themed_icon_new (NAUTILUS_ICON_HOME);
 		last_iter = add_place (sidebar, PLACES_BUILT_IN,
 				       display_name, icon,
 				       mount_uri, NULL, NULL, NULL, 0);
@@ -272,7 +273,7 @@
 	}
 
 	mount_uri = g_filename_to_uri (desktop_path, NULL, NULL);
-	icon = g_themed_icon_new ("gnome-fs-desktop");
+	icon = g_themed_icon_new (NAUTILUS_ICON_DESKTOP);
 	last_iter = add_place (sidebar, PLACES_BUILT_IN,
 			       _("Desktop"), icon,
 			       mount_uri, NULL, NULL, NULL, 0);
@@ -284,7 +285,7 @@
 	g_free (desktop_path);
 	
  	mount_uri = "file:///"; /* No need to strdup */
-	icon = g_themed_icon_new ("gnome-dev-harddisk");
+	icon = g_themed_icon_new (NAUTILUS_ICON_FILESYSTEM);
 	last_iter = add_place (sidebar, PLACES_BUILT_IN,
 			       _("File System"), icon,
 			       mount_uri, NULL, NULL, NULL, 0);
@@ -889,7 +890,7 @@
 
 		name = nautilus_compute_title_for_location (location);
 
-		icon = g_themed_icon_new ("gnome-fs-directory");
+		icon = g_themed_icon_new (NAUTILUS_ICON_FOLDER);
 		bookmark = nautilus_bookmark_new_with_icon (location, name,
 							    FALSE, icon);
 		g_object_unref (icon);
Index: nautilus-folder-handler.desktop.in.in
===================================================================
--- nautilus-folder-handler.desktop.in.in	(revisione 13644)
+++ nautilus-folder-handler.desktop.in.in	(copia locale)
@@ -5,6 +5,7 @@
 Exec=nautilus --no-desktop %U
 NoDisplay=true
 Terminal=false
+Icon=folder-open
 StartupNotify=true
 Type=Application
 MimeType=x-directory/gnome-default-handler;x-directory/normal;inode/directory;application/x-gnome-saved-search;
Index: nautilus-home.desktop.in.in
===================================================================
--- nautilus-home.desktop.in.in	(revisione 13644)
+++ nautilus-home.desktop.in.in	(copia locale)
@@ -4,7 +4,7 @@
 _Comment=Open your personal folder
 TryExec=nautilus
 Exec=nautilus --no-desktop
-Icon=gnome-fs-home
+Icon=user-home
 Terminal=false
 StartupNotify=true
 Type=Application
Index: libnautilus-private/nautilus-desktop-link.c
===================================================================
--- libnautilus-private/nautilus-desktop-link.c	(revisione 13644)
+++ libnautilus-private/nautilus-desktop-link.c	(copia locale)
@@ -28,6 +28,7 @@
 #include "nautilus-desktop-icon-file.h"
 #include "nautilus-directory-private.h"
 #include "nautilus-desktop-directory.h"
+#include "nautilus-icon-names.h"
 #include <glib/gi18n.h>
 #include <gio/gio.h>
 #include <libnautilus-private/nautilus-file-utilities.h>
@@ -152,7 +153,7 @@
 		link->details->filename = g_strdup ("home");
 		link->details->display_name = eel_preferences_get (NAUTILUS_PREFERENCES_DESKTOP_HOME_NAME);
 		link->details->activation_location = g_file_new_for_path (g_get_home_dir ());
-		link->details->icon = g_themed_icon_new ("user-home");
+		link->details->icon = g_themed_icon_new (NAUTILUS_ICON_HOME);
 
 		eel_preferences_add_callback (NAUTILUS_PREFERENCES_DESKTOP_HOME_NAME,
 					      home_name_changed,
@@ -165,7 +166,7 @@
 		link->details->display_name = eel_preferences_get (NAUTILUS_PREFERENCES_DESKTOP_COMPUTER_NAME);
 		link->details->activation_location = g_file_new_for_uri ("computer:///");
 		/* TODO: This might need a different icon: */
-		link->details->icon = g_themed_icon_new ("gnome-fs-client");
+		link->details->icon = g_themed_icon_new (NAUTILUS_ICON_COMPUTER);
 
 		eel_preferences_add_callback (NAUTILUS_PREFERENCES_DESKTOP_COMPUTER_NAME,
 					      computer_name_changed,
@@ -191,7 +192,7 @@
 		link->details->filename = g_strdup ("network");
 		link->details->display_name = eel_preferences_get (NAUTILUS_PREFERENCES_DESKTOP_NETWORK_NAME);
 		link->details->activation_location = g_file_new_for_uri ("network:///");
-		link->details->icon = g_themed_icon_new ("gnome-fs-network");
+		link->details->icon = g_themed_icon_new (NAUTILUS_ICON_NETWORK);
 
 		eel_preferences_add_callback (NAUTILUS_PREFERENCES_DESKTOP_NETWORK_NAME,
 					      network_name_changed,
Index: libnautilus-private/nautilus-icon-names.h
===================================================================
--- libnautilus-private/nautilus-icon-names.h	(revisione 0)
+++ libnautilus-private/nautilus-icon-names.h	(revisione 0)
@@ -0,0 +1,29 @@
+#ifndef NAUTILUS_ICON_NAMES_H
+#define NAUTILUS_ICON_NAMES_H
+
+/* Icons for places */
+#define NAUTILUS_ICON_COMPUTER		"computer"
+#define NAUTILUS_ICON_DESKTOP		"user-desktop"
+#define NAUTILUS_ICON_FILESYSTEM	"drive-harddisk"
+#define NAUTILUS_ICON_FOLDER		"folder"
+#define NAUTILUS_ICON_FOLDER_REMOTE	"folder-remote"
+#define NAUTILUS_ICON_HOME		"user-home"
+#define NAUTILUS_ICON_NETWORK		"network-workgroup"
+#define NAUTILUS_ICON_NETWORK_SERVER	"network-server"
+#define NAUTILUS_ICON_SEARCH		"system-search"
+#define NAUTILUS_ICON_TRASH		"user-trash"
+#define NAUTILUS_ICON_TRASH_FULL	"user-trash-full"
+
+/* Icons for emblems */
+#define NAUTILUS_ICON_EMBLEM_READONLY	"emblem-readonly"
+#define NAUTILUS_ICON_EMBLEM_UNREADABLE	"emblem-unreadable"
+#define NAUTILUS_ICON_EMBLEM_SYMLINK	"emblem-symbolic-link"
+
+/* Other icons */
+#define NAUTILUS_ICON_TEMPLATE		"text-x-generic-template"
+
+/* Icons not provided by fd.o naming spec or nautilus itself */
+#define NAUTILUS_ICON_BURN		"nautilus-cd-burner"
+
+#endif /* NAUTILUS_ICON_NAMES_H */
+
Index: libnautilus-private/Makefile.am
===================================================================
--- libnautilus-private/Makefile.am	(revisione 13644)
+++ libnautilus-private/Makefile.am	(copia locale)
@@ -118,6 +118,7 @@
 	nautilus-icon-private.h \
 	nautilus-icon-info.c \
 	nautilus-icon-info.h \
+	nautilus-icon-names.h \
 	nautilus-idle-queue.c \
 	nautilus-idle-queue.h \
 	nautilus-iso9660.h \
Index: libnautilus-private/nautilus-trash-monitor.c
===================================================================
--- libnautilus-private/nautilus-trash-monitor.c	(revisione 13644)
+++ libnautilus-private/nautilus-trash-monitor.c	(copia locale)
@@ -29,6 +29,7 @@
 #include "nautilus-directory-notify.h"
 #include "nautilus-directory.h"
 #include "nautilus-file-attributes.h"
+#include "nautilus-icon-names.h"
 #include <eel/eel-debug.h>
 #include <gio/gio.h>
 #include <string.h>
@@ -115,7 +116,7 @@
 			if (G_IS_THEMED_ICON (icon)) {
 				names = g_themed_icon_get_names (G_THEMED_ICON (icon));
 				for (i = 0; names[i] != NULL; i++) {
-					if (strcmp (names[i], "user-trash-full") == 0) {
+					if (strcmp (names[i], NAUTILUS_ICON_TRASH_FULL) == 0) {
 						empty = FALSE;
 						break;
 					}
@@ -173,7 +174,7 @@
 							      NautilusTrashMonitorDetails);
 
 	trash_monitor->details->empty = TRUE;
-	trash_monitor->details->icon = g_themed_icon_new ("user-trash");
+	trash_monitor->details->icon = g_themed_icon_new (NAUTILUS_ICON_TRASH);
 
 	location = g_file_new_for_uri ("trash:///");
 
Index: libnautilus-private/nautilus-link.c
===================================================================
--- libnautilus-private/nautilus-link.c	(revisione 13644)
+++ libnautilus-private/nautilus-link.c	(copia locale)
@@ -31,6 +31,7 @@
 #include "nautilus-file-utilities.h"
 #include "nautilus-file.h"
 #include "nautilus-program-choosing.h"
+#include "nautilus-icon-names.h"
 #include <eel/eel-vfs-extensions.h>
 #include <glib/gi18n.h>
 #include <gio/gio.h>
@@ -364,7 +365,7 @@
 		return g_strdup ("gnome-dev-harddisk");
 
 	case GNOME_DESKTOP_ITEM_TYPE_DIRECTORY:
-		return g_strdup ("gnome-fs-directory");
+		return g_strdup (NAUTILUS_ICON_FOLDER);
 
 	case GNOME_DESKTOP_ITEM_TYPE_SERVICE:
 	case GNOME_DESKTOP_ITEM_TYPE_SERVICE_TYPE:
Index: nautilus-file-management-properties.desktop.in.in
===================================================================
--- nautilus-file-management-properties.desktop.in.in	(revisione 13644)
+++ nautilus-file-management-properties.desktop.in.in	(copia locale)
@@ -3,7 +3,7 @@
 _Name=File Management
 _Comment=Change the behaviour and appearance of file manager windows
 Exec=nautilus-file-management-properties
-Icon=file-manager
+Icon=system-file-manager
 Terminal=false
 Type=Application
 StartupNotify=true


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