[gthumb] Disable the rename command in the context menu for the catalogs



commit 62a0cd29f53e022fe0f43e0df2eb8e9ede41ec56
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sun Aug 29 19:56:48 2010 +0200

    Disable the rename command in the context menu for the catalogs
    
    Catalogs can be renamed from the properties dialog

 extensions/catalogs/callbacks.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/extensions/catalogs/callbacks.c b/extensions/catalogs/callbacks.c
index cc64a8e..d5cb1e9 100644
--- a/extensions/catalogs/callbacks.c
+++ b/extensions/catalogs/callbacks.c
@@ -595,7 +595,7 @@ catalogs__gth_browser_folder_tree_popup_before_cb (GthBrowser    *browser,
 		g_object_set (action, "sensitive", sensitive, NULL);
 
 		action = gtk_action_group_get_action (data->actions, "Catalog_Rename");
-		sensitive = (folder != NULL) && g_file_info_get_attribute_boolean (folder->info, G_FILE_ATTRIBUTE_ACCESS_CAN_RENAME);
+		sensitive = (folder != NULL) && _g_content_type_is_a (g_file_info_get_content_type (folder->info), "gthumb/library") && g_file_info_get_attribute_boolean (folder->info, G_FILE_ATTRIBUTE_ACCESS_CAN_RENAME);
 		g_object_set (action, "sensitive", sensitive, NULL);
 
 		action = gtk_action_group_get_action (data->actions, "Catalog_Properties");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]