[Xfce4-commits] [xfce/xfdesktop] 02/13: Disable rename menu entry for special icons

noreply at xfce.org noreply at xfce.org
Tue Mar 3 18:20:59 CET 2015


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository xfce/xfdesktop.

commit 64ef0f646c2b8c310828bbd33400305fe4bb63e2
Author: Thaddaeus Tintenfisch <thad.fisch at gmail.com>
Date:   Thu Feb 19 23:30:13 2015 +0100

    Disable rename menu entry for special icons
    
    Signed-off-by: Eric Koegel <eric.koegel at gmail.com>
---
 src/xfdesktop-file-icon-manager.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/xfdesktop-file-icon-manager.c b/src/xfdesktop-file-icon-manager.c
index 1abd18f..86c1979 100644
--- a/src/xfdesktop-file-icon-manager.c
+++ b/src/xfdesktop-file-icon-manager.c
@@ -1749,14 +1749,15 @@ xfdesktop_file_icon_manager_populate_context_menu(XfceDesktop *desktop,
                 g_signal_connect(G_OBJECT(mi), "activate",
                                  G_CALLBACK(xfdesktop_file_icon_menu_rename),
                                  fmanager);
-            } else {
+            } else if(multi_sel) {
                 /* Bulk rename for multiple icons, the callback will
                  * handle the situation where some icons selected can't
                  * be renamed */
                 g_signal_connect(G_OBJECT(mi), "activate",
                                  G_CALLBACK(xfdesktop_file_icon_menu_rename),
                                  fmanager);
-            }
+            } else
+                gtk_widget_set_sensitive(mi, FALSE);
 
             /* Separator */
             mi = gtk_separator_menu_item_new();

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list