[nautilus/wip/csoriano/destktop-split2] f can_rename
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/csoriano/destktop-split2] f can_rename
- Date: Fri, 18 Mar 2016 18:12:02 +0000 (UTC)
commit 66b46404ca6f8b0998f848438e872cbd1f475b39
Author: Carlos Soriano <csoriano gnome org>
Date: Fri Mar 18 14:03:01 2016 +0100
f can_rename
src/nautilus-files-view.c | 26 +-------------------------
1 files changed, 1 insertions(+), 25 deletions(-)
---
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c
index 4e3f11d..135f844 100644
--- a/src/nautilus-files-view.c
+++ b/src/nautilus-files-view.c
@@ -664,22 +664,6 @@ nautilus_files_view_get_view_widget (NautilusView *view)
return NAUTILUS_FILES_VIEW (view)->details->view_menu_widget;
}
-/**
- * nautilus_files_view_can_rename_file
- *
- * Determine whether a file can be renamed.
- * @file: A NautilusFile
- *
- * Return value: TRUE if @file can be renamed, FALSE otherwise.
- *
- **/
-static gboolean
-nautilus_files_view_can_rename_file (NautilusFilesView *view,
- NautilusFile *file)
-{
- return NAUTILUS_FILES_VIEW_CLASS (G_OBJECT_GET_CLASS (view))->can_rename_file (view, file);
-}
-
static gboolean
nautilus_files_view_is_read_only (NautilusFilesView *view)
{
@@ -4179,13 +4163,6 @@ trash_or_delete_files (GtkWindow *parent_window,
g_list_free_full (locations, g_object_unref);
}
-static gboolean
-can_rename_file (NautilusFilesView *view,
- NautilusFile *file)
-{
- return nautilus_file_can_rename (file);
-}
-
static void
open_one_in_new_window (gpointer data,
gpointer callback_data)
@@ -6337,7 +6314,7 @@ real_update_actions_state (NautilusFilesView *view)
} else {
g_simple_action_set_enabled (G_SIMPLE_ACTION (action),
selection_count == 1 &&
- nautilus_files_view_can_rename_file (view, selection->data));
+ nautilus_file_can_rename (selection->data));
}
action = g_action_map_lookup_action (G_ACTION_MAP (view_action_group),
@@ -8037,7 +8014,6 @@ nautilus_files_view_class_init (NautilusFilesViewClass *klass)
klass->get_selected_icon_locations = real_get_selected_icon_locations;
klass->is_read_only = real_is_read_only;
- klass->can_rename_file = can_rename_file;
klass->get_backing_uri = real_get_backing_uri;
klass->using_manual_layout = real_using_manual_layout;
klass->get_window = nautilus_files_view_get_window;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]