From 451c2af5635437a15614ee9506599d5bc15c2cf5 Mon Sep 17 00:00:00 2001 From: Jonathan Blandford Date: Mon, 3 Jul 2000 18:25:45 +0000 Subject: [PATCH] create and add an icon to the trashcan --- gnome/ChangeLog | 5 +++++ gnome/gdesktop-init.c | 18 ++++++++++++++---- new_icons/Makefile.in | 1 + new_icons/gnome-trashcan.png | Bin 0 -> 2913 bytes 4 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 new_icons/gnome-trashcan.png 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 0000000000000000000000000000000000000000..c2ac8da173c9df993a2fcb9a67d699d2e881d90f GIT binary patch literal 2913 zcmV-n3!e0eP)eOqhsuusOWN$qCrAVqjfTW9UF_uA|K*8i{n|JT0-(_^MRBY8g`?^l5L z_pILrxD9X{;QbGvx6|n_|Mqj@%m4Oe@yW-2`NyOXKWv@*kaH|KXBLfhEn}_coT;pJ zLu>7d!@lO6J6;ymbHDP5$DZl+d+t^Nh^ym3uivxZ?ZKx$|5w6U$Dt#K9(LCKx`mH9 zXK~J8Du;89%9K>rV2r`JE3b0SVV%WVhp`rC?LRx`{_Gci>d~+Mp8!1d`6uOp1N%Or zw0^=ld(7HeAm<#;8tz=!Ll8t{SxQlsY>xVj#si$Q6lG3XRtPC@)?u8%S%e@_6OdiqHr1mfV*!QYWm{GOf8q_Y<5Y9S8qJIdZ&2N;cqtZ%N7j>Z(G zV6AtV(v-Y*_B59+tZ?@|NAWx#Cmhby{f(g`4th9b+eE!+H? zfBb6!P8>RN_z#5Ow`((SxUHGDD6P0_|M%gn;h(c2kw@3+JYJ@xdHq7gU6!KH&A zZ8h4T>9jj|$|Lf_T6pS#tu^HNgtd(|{^9SQ=EC_mNhf0*mfZ*LWNGgqe)=aLAsvl5 z@$yN|oj%9<;C zIoQBC$7q!DFJJj0YpbhF(v&!kIr_o77!HOYC8yr_HmA?MMrVGOIEhJ`30~--eTBPf z9rXu&@~j{)%HII~{-yy|SJp&lW(OO+^&eX3EHcxY#h8-3DDkvMGilN7Z=$tkQj8d; z10Hnp0;_aqI`~V_{*Dvdlq1oFr3obmUn^Hpv+cQ?g0^ zp&v7j-7<$OwtZ#6TU)o^z887{rZikyU*@f|%M6Ail&8ph!{fKa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