! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Add an emblem for mounted drives
Status:
RESOLVED: FIXED
Severity:
enhancement
Product:
Xfdesktop
Component:
General

Comments

Description Andreas Gohr 2008-03-25 19:19:34 CET
Removable volumes like USB sticks are automatically added to the desktop when plugged in. Accessing the drive through Thunar will automount it. After closing Thunar it's no longer clear if a drive is mounted or not (and thus save to remove or not) without right clicking the icon. Adding an emblem to the drive icon to show the current mount state would greatly enhance usability.
Comment 1 Julien [nodiscc] editbugs 2011-01-11 17:42:51 CET
I think this is a duplicate of (or related to) bug 6281.
Comment 2 Eric Koegel editbugs 2011-12-09 14:34:19 CET
Created attachment 4015 
This adds an emblem to the volume icon to show when it's mounted.

I couldn't figure out exactly which icon should be used as the emblem so "emblem-generic" it is. If there's a better emblem for the job let me know. I also added a simple internal helper function to figure out if the volume has something mounted on it.
Comment 3 Nick Schermer editbugs 2012-01-16 08:20:57 CET
Maybe we can make the icon 50% transparent, using exo_gdk_pixbuf_lucent. That is also what thunar does.
Comment 4 Eric Koegel editbugs 2012-01-19 14:21:59 CET
Created attachment 4110 
[PATCH] Unmounted volumes are semi-transparent

A semi-transparent icon looks a lot less ugly than that emblem, changed.
Comment 5 Nick Schermer editbugs 2012-01-19 14:28:54 CET
exo_gdk_pixbuf_lucent return a new object, so you need to do this:

if(!xfdesktop_volume_icon_is_mounted(icon)) {
  lucent = exo_gdk_pixbuf_lucent(file_icon->priv->pix, 50);
  g_object_unref (file_icon->priv->pix);
  file_icon->priv->pix = lucent;
}
Comment 6 Eric Koegel editbugs 2012-01-19 15:01:44 CET
Created attachment 4111 
[PATCH] Unmounted volumes are semi-transparent

Heh, I noticed that right after I submitted the patch but you still beat me to it.
Comment 7 Nick Schermer editbugs 2012-02-19 17:23:06 CET
Looks ok now.

Bug #3963

Reported by:
Andreas Gohr
Reported on: 2008-03-25
Last modified on: 2012-03-07

People

Assignee:
Brian J. Tarricone (not reading bugmail)
CC List:
5 users

Version

Version:
Unspecified

Attachments

Additional information