Author: benny
Date: 2007-12-11 19:30:45 +0000 (Tue, 11 Dec 2007)
New Revision: 26457

Modified:
   thunar/trunk/ChangeLog
   thunar/trunk/thunar/thunar-shortcuts-view.c
   thunar/trunk/thunar/thunar-tree-view.c
Log:
2007-12-11      Benedikt Meurer <[EMAIL PROTECTED]>

        * 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.




Modified: thunar/trunk/ChangeLog
===================================================================
--- thunar/trunk/ChangeLog      2007-12-10 22:27:15 UTC (rev 26456)
+++ thunar/trunk/ChangeLog      2007-12-11 19:30:45 UTC (rev 26457)
@@ -1,3 +1,9 @@
+2007-12-11     Benedikt Meurer <[EMAIL PROTECTED]>
+
+       * 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 <[EMAIL PROTECTED]>
 
        * thunar-vfs/thunar-vfs-exec.c: Make sure, processes spawned from

Modified: thunar/trunk/thunar/thunar-shortcuts-view.c
===================================================================
--- thunar/trunk/thunar/thunar-shortcuts-view.c 2007-12-10 22:27:15 UTC (rev 
26456)
+++ thunar/trunk/thunar/thunar-shortcuts-view.c 2007-12-11 19:30:45 UTC (rev 
26457)
@@ -834,13 +834,12 @@
       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);
         }

Modified: thunar/trunk/thunar/thunar-tree-view.c
===================================================================
--- thunar/trunk/thunar/thunar-tree-view.c      2007-12-10 22:27:15 UTC (rev 
26456)
+++ thunar/trunk/thunar/thunar-tree-view.c      2007-12-11 19:30:45 UTC (rev 
26457)
@@ -1041,13 +1041,12 @@
       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);
         }

_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to