[Xfce4-commits] <thunar:master> Make trash context and file menu action sensitive if trash has files.

Jannis Pohlmann noreply at xfce.org
Tue Sep 29 16:54:01 CEST 2009


Updating branch refs/heads/master
         to bb7bd714867f89dfb0007120fca7932a9af0a3e6 (commit)
       from 7956289251706d893e6db938145ee9777ee6bf51 (commit)

commit bb7bd714867f89dfb0007120fca7932a9af0a3e6
Author: Jannis Pohlmann <jannis at xfce.org>
Date:   Tue Sep 29 16:51:47 2009 +0200

    Make trash context and file menu action sensitive if trash has files.

 thunar/thunar-window.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/thunar/thunar-window.c b/thunar/thunar-window.c
index 5200dc6..04fb7cf 100644
--- a/thunar/thunar-window.c
+++ b/thunar/thunar-window.c
@@ -2391,7 +2391,7 @@ thunar_window_current_directory_changed (ThunarFile   *current_directory,
 
   /* update the "Empty Trash" action */
   action = gtk_action_group_get_action (window->action_group, "empty-trash");
-  gtk_action_set_sensitive (action, (thunar_file_get_size (current_directory) > 0));
+  gtk_action_set_sensitive (action, (thunar_file_get_item_count (current_directory) > 0));
   gtk_action_set_visible (action, (thunar_file_is_root (current_directory) && thunar_file_is_trashed (current_directory)));
 
   /* set window title and icon */



More information about the Xfce4-commits mailing list