[gthumb] fixed the "paste into folder" command sensitivity



commit 1b2ac579e52556f63dd652b2219d2518bbf47804
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Fri Jul 1 12:29:22 2011 +0200

    fixed the "paste into folder" command sensitivity

 extensions/file_manager/callbacks.c |    3 +++
 extensions/file_manager/callbacks.h |    9 +++++----
 2 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/extensions/file_manager/callbacks.c b/extensions/file_manager/callbacks.c
index 8b85e90..67ab73d 100644
--- a/extensions/file_manager/callbacks.c
+++ b/extensions/file_manager/callbacks.c
@@ -26,6 +26,7 @@
 #include <gdk/gdkkeysyms.h>
 #include <gthumb.h>
 #include "actions.h"
+#include "callbacks.h"
 #include "gth-copy-task.h"
 #include "gth-reorder-task.h"
 
@@ -715,6 +716,8 @@ fm__gth_browser_folder_tree_popup_before_cb (GthBrowser    *browser,
 		set_action_sensitive (data, "Folder_Delete", (folder != NULL) && g_file_info_get_attribute_boolean (folder->info, G_FILE_ATTRIBUTE_ACCESS_CAN_DELETE));
 		set_action_sensitive (data, "Folder_Trash", (folder != NULL) && g_file_info_get_attribute_boolean (folder->info, G_FILE_ATTRIBUTE_ACCESS_CAN_TRASH));
 		set_action_sensitive (data, "Folder_Cut", (folder != NULL) && g_file_info_get_attribute_boolean (folder->info, G_FILE_ATTRIBUTE_ACCESS_CAN_DELETE));
+
+		fm__gth_browser_update_sensitivity_cb (browser);
 	}
 	else {
 		if (data->folder_popup_merge_id != 0) {
diff --git a/extensions/file_manager/callbacks.h b/extensions/file_manager/callbacks.h
index e495106..7c6dfbc 100644
--- a/extensions/file_manager/callbacks.h
+++ b/extensions/file_manager/callbacks.h
@@ -28,12 +28,13 @@ void      fm__gth_browser_construct_cb                      (GthBrowser    *brow
 void      fm__gth_browser_update_sensitivity_cb             (GthBrowser    *browser);
 void      fm__gth_browser_set_current_page_cb               (GthBrowser    *browser);
 void      fm__gth_browser_load_location_after_cb            (GthBrowser    *browser,
-						             GFile         *location,
-						             GError        *error);
+							     GthFileData   *location_data,
+							     const GError  *error);
 void      fm__gth_browser_folder_tree_popup_before_cb       (GthBrowser    *browser,
-							     GthFileSource *file_source,
-							     GFile         *folder);
+		     	     	     	     	     	     GthFileSource *file_source,
+		     	     	     	     	     	     GthFileData   *folder);
 void      fm__gth_browser_folder_tree_drag_data_received_cb (GthBrowser    *browser,
+							     GthFileData   *destination,
 							     GList         *file_list,
 							     GdkDragAction  action);
 void      fm__gth_browser_selection_changed_cb              (GthBrowser    *browser);



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