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



commit 6e444ed370f0249f9068a6f4da064831687b69ae
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 92e426e..7ca5b61 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;
@@ -7367,7 +7361,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;
 
@@ -8012,7 +8006,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 f55dcf9..3944d5c 100644
--- a/src/nautilus-files-view.h
+++ b/src/nautilus-files-view.h
@@ -225,14 +225,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]