[gtk+/gtk-3-22] PlacesSidebar: Avoid unused mem if !CLOUDPROVIDERS



commit 6e42d3a34af1857610cff88559e8fac25d4b8a0f
Author: Daniel Boles <dboles src gnome org>
Date:   Tue Sep 19 00:14:41 2017 +0100

    PlacesSidebar: Avoid unused mem if !CLOUDPROVIDERS
    
    The member GList *cloud_rows is only ever used if HAVE_CLOUDPROVIDERS is
    defined, so don’t declare it if not.

 gtk/gtkplacessidebar.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c
index 407e17a..32314eb 100644
--- a/gtk/gtkplacessidebar.c
+++ b/gtk/gtkplacessidebar.c
@@ -125,9 +125,12 @@ struct _GtkPlacesSidebar {
   GtkWidget *new_bookmark_row;
 
   GtkBookmarksManager     *bookmarks_manager;
+
 #ifdef HAVE_CLOUDPROVIDERS
   CloudProviders *cloud_manager;
+  GList *cloud_rows;
 #endif
+
   GVolumeMonitor    *volume_monitor;
   GtkTrashMonitor   *trash_monitor;
   GtkSettings       *gtk_settings;
@@ -157,8 +160,6 @@ struct _GtkPlacesSidebar {
   DropState drop_state;
   GtkGesture *long_press_gesture;
 
-  GList *cloud_rows;
-
   /* volume mounting - delayed open process */
   GtkPlacesOpenFlags go_to_after_mount_open_flags;
   GCancellable *cancellable;


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