[nautilus/wip/csoriano/destktop-split2] files-view: remove unused is_read_only vfunc



commit 5b010f7623b4d488a90ae91e0b1c6c1aa0def048
Author: Carlos Soriano <csoriano gnome org>
Date:   Fri Mar 18 14:08:13 2016 +0100

    files-view: remove unused is_read_only vfunc

 src/nautilus-files-view.c |   13 +++----------
 src/nautilus-files-view.h |    8 --------
 2 files changed, 3 insertions(+), 18 deletions(-)
---
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c
index 135f844..43b5151 100644
--- a/src/nautilus-files-view.c
+++ b/src/nautilus-files-view.c
@@ -326,6 +326,8 @@ static void     set_search_query_internal                      (NautilusFilesVie
                                                                 NautilusQuery     *query,
                                                                 NautilusDirectory *base_model);
 
+static gboolean nautilus_files_view_is_read_only               (NautilusFilesView *view);
+
 G_DEFINE_TYPE_WITH_CODE (NautilusFilesView,
                          nautilus_files_view,
                          GTK_TYPE_GRID,
@@ -665,14 +667,6 @@ nautilus_files_view_get_view_widget (NautilusView *view)
 }
 
 static gboolean
-nautilus_files_view_is_read_only (NautilusFilesView *view)
-{
-        g_return_val_if_fail (NAUTILUS_IS_FILES_VIEW (view), FALSE);
-
-        return         NAUTILUS_FILES_VIEW_CLASS (G_OBJECT_GET_CLASS (view))->is_read_only (view);
-}
-
-static gboolean
 showing_trash_directory (NautilusFilesView *view)
 {
         NautilusFile *file;
@@ -7368,7 +7362,7 @@ nautilus_files_view_is_editable (NautilusFilesView *view)
 }
 
 static gboolean
-real_is_read_only (NautilusFilesView *view)
+nautilus_files_view_is_read_only (NautilusFilesView *view)
 {
         NautilusFile *file;
 
@@ -8013,7 +8007,6 @@ nautilus_files_view_class_init (NautilusFilesViewClass *klass)
                               G_TYPE_NONE, 0);
 
         klass->get_selected_icon_locations = real_get_selected_icon_locations;
-        klass->is_read_only = real_is_read_only;
         klass->get_backing_uri = real_get_backing_uri;
         klass->using_manual_layout = real_using_manual_layout;
         klass->get_window = nautilus_files_view_get_window;
diff --git a/src/nautilus-files-view.h b/src/nautilus-files-view.h
index e16fb41..cd7af4c 100644
--- a/src/nautilus-files-view.h
+++ b/src/nautilus-files-view.h
@@ -226,14 +226,6 @@ struct NautilusFilesViewClass {
          * view's lifecycle. */
         gboolean (* using_manual_layout)     (NautilusFilesView *view);
 
-        /* is_read_only is a function pointer that subclasses may
-         * override to control whether or not the user is allowed to
-         * change the contents of the currently viewed directory. The
-         * default implementation checks the permissions of the
-         * directory.
-         */
-        gboolean (* is_read_only)            (NautilusFilesView *view);
-
         /* is_empty is a function pointer that subclasses must
          * override to report whether the view contains any items.
          */


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