diff options
| author | David Zeuthen <davidz@redhat.com> | 2009-02-17 16:41:26 -0500 |
|---|---|---|
| committer | David Zeuthen <davidz@redhat.com> | 2009-02-17 16:41:26 -0500 |
| commit | f9d93b822610f467d96ba1d63ef55223f6225d06 (patch) | |
| tree | cbd0f79177f96a3b8763cbc5e9bdb6f211fadfc1 /src/gdu | |
| parent | d45bb2c1b7909b372611bec87e2ae5dca5f4a2a9 (diff) | |
| download | gnome-disk-utility-f9d93b822610f467d96ba1d63ef55223f6225d06.tar.gz gnome-disk-utility-f9d93b822610f467d96ba1d63ef55223f6225d06.tar.xz gnome-disk-utility-f9d93b822610f467d96ba1d63ef55223f6225d06.zip | |
add gdu-unmountable icon but don't use it yet...
Diffstat (limited to 'src/gdu')
| -rw-r--r-- | src/gdu/gdu-volume.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/gdu/gdu-volume.c b/src/gdu/gdu-volume.c index 0266970..9fdc149 100644 --- a/src/gdu/gdu-volume.c +++ b/src/gdu/gdu-volume.c @@ -287,6 +287,8 @@ gdu_volume_get_icon (GduPresentable *presentable) d = NULL; name = NULL; + usage = gdu_device_id_get_usage (volume->priv->device); + p = gdu_presentable_get_toplevel (presentable); if (p == NULL) goto out; @@ -296,6 +298,14 @@ gdu_volume_get_icon (GduPresentable *presentable) goto out; } +#if 0 + /* unless it's a file system or LUKS encrypted volume, use the gdu-unmountable icon */ + if (g_strcmp0 (usage, "filesystem") != 0 && g_strcmp0 (usage, "crypto") != 0) { + name = "gdu-unmountable"; + goto out; + } +#endif + d = gdu_presentable_get_device (p); if (d == NULL) goto out; @@ -358,7 +368,6 @@ out: icon = g_themed_icon_new_with_default_fallbacks (name); - usage = gdu_device_id_get_usage (volume->priv->device); if (usage != NULL && strcmp (usage, "crypto") == 0) { GEmblem *emblem; GIcon *padlock; |
