From 06491275c4de40aa34de82af73f5c4cb407bea12 Mon Sep 17 00:00:00 2001
From: Benedikt Meurer <benny@xfce.org>
Date: Tue, 11 Dec 2007 19:30:45 +0000
Subject: [PATCH] 2007-12-11	Benedikt Meurer <benny@xfce.org>

	* thunar/thunar-shortcuts-view.c, thunar/thunar-tree-view.c:
	  Display "Eject" in the context menu if the device of the
	  volume requires an eject.




(Old svn revision: 26457)
---
 ChangeLog                      | 6 ++++++
 thunar/thunar-shortcuts-view.c | 5 ++---
 thunar/thunar-tree-view.c      | 5 ++---
 3 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 728db4abd..bf6132084 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-12-11	Benedikt Meurer <benny@xfce.org>
+
+	* thunar/thunar-shortcuts-view.c, thunar/thunar-tree-view.c:
+	  Display "Eject" in the context menu if the device of the
+	  volume requires an eject.
+
 2007-12-03	Benedikt Meurer <benny@xfce.org>
 
 	* thunar-vfs/thunar-vfs-exec.c: Make sure, processes spawned from
diff --git a/thunar/thunar-shortcuts-view.c b/thunar/thunar-shortcuts-view.c
index 79f0fa1d5..94517014a 100644
--- a/thunar/thunar-shortcuts-view.c
+++ b/thunar/thunar-shortcuts-view.c
@@ -834,13 +834,12 @@ thunar_shortcuts_view_context_menu (ThunarShortcutsView *view,
       gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
       gtk_widget_show (item);
 
-      /* check if the volume is a disc */
-      if (thunar_vfs_volume_is_disc (volume))
+      /* check if the volume is ejectable */
+      if (thunar_vfs_volume_is_ejectable (volume))
         {
           /* append the "Eject Volume" menu action */
           item = gtk_image_menu_item_new_with_mnemonic (_("E_ject Volume"));
           g_signal_connect_swapped (G_OBJECT (item), "activate", G_CALLBACK (thunar_shortcuts_view_eject), view);
-          gtk_widget_set_sensitive (item, thunar_vfs_volume_is_ejectable (volume));
           gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
           gtk_widget_show (item);
         }
diff --git a/thunar/thunar-tree-view.c b/thunar/thunar-tree-view.c
index 189f8fbda..f0b550ebb 100644
--- a/thunar/thunar-tree-view.c
+++ b/thunar/thunar-tree-view.c
@@ -1041,13 +1041,12 @@ thunar_tree_view_context_menu (ThunarTreeView *view,
       gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
       gtk_widget_show (item);
 
-      /* check if the volume is a disc */
-      if (thunar_vfs_volume_is_disc (volume))
+      /* check if the volume is ejectable */
+      if (thunar_vfs_volume_is_ejectable (volume))
         {
           /* append the "Eject Volume" menu action */
           item = gtk_image_menu_item_new_with_mnemonic (_("E_ject Volume"));
           g_signal_connect_swapped (G_OBJECT (item), "activate", G_CALLBACK (thunar_tree_view_action_eject), view);
-          gtk_widget_set_sensitive (item, thunar_vfs_volume_is_ejectable (volume));
           gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
           gtk_widget_show (item);
         }
-- 
GitLab