summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2009-12-16 10:21:27 +0100
committerAlexander Larsson <alexl@redhat.com>2009-12-16 13:13:15 +0100
commite0a6c302d23fde1e4781671f70d501fdeffb7c8f (patch)
tree518031f1dac72238a69a1a0c153f61f58ff7b207 /src
parent1545e04eaf41068c3add34792815b2df84b7fd5d (diff)
downloadnautilus-e0a6c302d23fde1e4781671f70d501fdeffb7c8f.tar.gz
Don't use nautilus_window_info_next_pane_is_writable
Instead we can use get_extra_slot and other existing functions, thus avoiding referencing fm-directory-view from the main code.
Diffstat (limited to 'src')
-rw-r--r--src/file-manager/fm-directory-view.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/file-manager/fm-directory-view.c b/src/file-manager/fm-directory-view.c
index c81f52fac..2dbc98142 100644
--- a/src/file-manager/fm-directory-view.c
+++ b/src/file-manager/fm-directory-view.c
@@ -8567,6 +8567,18 @@ can_delete_all (GList *files)
return TRUE;
}
+static gboolean
+has_writable_extra_pane (FMDirectoryView *view)
+{
+ FMDirectoryView *other_view;
+
+ other_view = get_directory_view_of_extra_pane (view);
+ if (other_view != NULL) {
+ return !fm_directory_view_is_read_only (other_view);
+ }
+ return FALSE;
+}
+
static void
real_update_menus (FMDirectoryView *view)
{
@@ -8941,7 +8953,7 @@ real_update_menus (FMDirectoryView *view)
update_templates_menu (view);
}
- next_pane_is_writable = nautilus_window_info_next_pane_is_writable(fm_directory_view_get_nautilus_window (view));
+ next_pane_is_writable = has_writable_extra_pane (view);
/* next pane: works if file is copyable, and next pane is writable */
action = gtk_action_group_get_action(view->details->dir_action_group,