mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-05 11:04:42 +03:00
create and add an icon to the trashcan
This commit is contained in:
parent
3ef74fbe2b
commit
451c2af563
@ -1,3 +1,8 @@
|
|||||||
|
2000-07-03 Jonathan Blandford <jrb@redhat.com>
|
||||||
|
|
||||||
|
* gdesktop-init.c (gdesktop_links_init): set the initial icon of
|
||||||
|
the trashcan, and make the trashcan.
|
||||||
|
|
||||||
2000-06-20 Jacob Berkman <jacob@helixcode.com>
|
2000-06-20 Jacob Berkman <jacob@helixcode.com>
|
||||||
|
|
||||||
* gtkdtree.c (gtk_dtree_construct):
|
* gtkdtree.c (gtk_dtree_construct):
|
||||||
|
@ -139,13 +139,23 @@ desktop_init_at (const char *dir)
|
|||||||
void
|
void
|
||||||
gdesktop_links_init (void)
|
gdesktop_links_init (void)
|
||||||
{
|
{
|
||||||
char *home_link_name;
|
char *link_name;
|
||||||
|
char *icon;
|
||||||
char *dir;
|
char *dir;
|
||||||
|
|
||||||
/* Create the link to the user's home directory so that he will have an icon */
|
/* 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"));
|
link_name = g_concat_dir_and_file (desktop_directory, _("Home directory"));
|
||||||
mc_symlink (gnome_user_home_dir, home_link_name);
|
mc_symlink (gnome_user_home_dir, link_name);
|
||||||
g_free (home_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 */
|
/* Create custom links */
|
||||||
|
|
||||||
|
@ -64,6 +64,7 @@ ALLICONS = \
|
|||||||
gnome-objectfile.png \
|
gnome-objectfile.png \
|
||||||
gnome-textfile.png \
|
gnome-textfile.png \
|
||||||
gnome-tex.png \
|
gnome-tex.png \
|
||||||
|
gnome-trashcan.png \
|
||||||
gnome-text-x-authors.png \
|
gnome-text-x-authors.png \
|
||||||
gnome-text-x-copying.png \
|
gnome-text-x-copying.png \
|
||||||
gnome-text-x-credits.png \
|
gnome-text-x-credits.png \
|
||||||
|
BIN
new_icons/gnome-trashcan.png
Normal file
BIN
new_icons/gnome-trashcan.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.8 KiB |
Loading…
Reference in New Issue
Block a user