diff --git a/gnome/ChangeLog b/gnome/ChangeLog index 81d2ef74a..8d75dcd4c 100644 --- a/gnome/ChangeLog +++ b/gnome/ChangeLog @@ -1,3 +1,8 @@ +2000-07-03 Jonathan Blandford + + * gdesktop-init.c (gdesktop_links_init): set the initial icon of + the trashcan, and make the trashcan. + 2000-06-20 Jacob Berkman * gtkdtree.c (gtk_dtree_construct): diff --git a/gnome/gdesktop-init.c b/gnome/gdesktop-init.c index c1ed231bb..8290fbd17 100644 --- a/gnome/gdesktop-init.c +++ b/gnome/gdesktop-init.c @@ -139,13 +139,23 @@ desktop_init_at (const char *dir) void gdesktop_links_init (void) { - char *home_link_name; + char *link_name; + char *icon; char *dir; /* Create the link to the user's home directory so that he will have an icon */ - home_link_name = g_concat_dir_and_file (desktop_directory, _("Home directory")); - mc_symlink (gnome_user_home_dir, home_link_name); - g_free (home_link_name); + link_name = g_concat_dir_and_file (desktop_directory, _("Home directory")); + mc_symlink (gnome_user_home_dir, link_name); + g_free (link_name); + + /* Create the link to the user's trash directory */ + link_name = g_concat_dir_and_file (desktop_directory, "Trash"); + icon = gnome_pixmap_file ("mc/gnome-trashcan.png"); + mc_mkdir (link_name, S_IRUSR | S_IWUSR | S_IXUSR ); + if (icon) + gnome_metadata_set (link_name, "icon-filename", strlen (icon) + 1, icon); + g_free (icon); + g_free (link_name); /* Create custom links */ diff --git a/new_icons/Makefile.in b/new_icons/Makefile.in index c73d017f1..9856571f6 100644 --- a/new_icons/Makefile.in +++ b/new_icons/Makefile.in @@ -64,6 +64,7 @@ ALLICONS = \ gnome-objectfile.png \ gnome-textfile.png \ gnome-tex.png \ + gnome-trashcan.png \ gnome-text-x-authors.png \ gnome-text-x-copying.png \ gnome-text-x-credits.png \ diff --git a/new_icons/gnome-trashcan.png b/new_icons/gnome-trashcan.png new file mode 100644 index 000000000..c2ac8da17 Binary files /dev/null and b/new_icons/gnome-trashcan.png differ