PlacesSidebar: Avoid warning about unused variable
authorDaniel Boles <dboles@src.gnome.org>
Sun, 27 Aug 2017 14:32:44 +0000 (15:32 +0100)
committerDaniel Boles <dboles@src.gnome.org>
Sun, 27 Aug 2017 14:37:34 +0000 (15:37 +0100)
end_icon is only used if HAVE_CLOUDPROVIDERS is defined, so only declare
it under the same condition.

https://bugzilla.gnome.org/show_bug.cgi?id=786123

gtk/gtkplacessidebar.c

index d684f6719a79cb3e9401f692b5580d778bbbffc3..014c2781af85d14a380f2a5d0a0e6595f018efa0 100644 (file)
@@ -992,12 +992,12 @@ update_places (GtkPlacesSidebar *sidebar)
   GtkListBoxRow *selected;
   gchar *home_uri;
   GIcon *start_icon;
-  GIcon *end_icon;
   GFile *root;
   gchar *tooltip;
   GList *network_mounts, *network_volumes;
   GIcon *new_bookmark_icon;
 #ifdef HAVE_CLOUDPROVIDERS
+  GIcon *end_icon;
   GList *cloud_provider_proxies;
   guint provider_status;
 #endif