[gnome-photos/wip/rishi/collection: 13/15] Revert "embed, source-manager: Show notifications for mounts present at startup"



commit 6736fa77d458c320897b6108c07eafbbba2ece0f
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Feb 14 23:28:14 2018 +0100

    Revert "embed, source-manager: Show notifications for mounts present at startup"
    
    This reverts commit 36933f83e872de798a122c6fa503fd34fba10710.

 src/photos-embed.c          | 11 -----------
 src/photos-source-manager.c | 17 -----------------
 src/photos-source-manager.h |  2 --
 3 files changed, 30 deletions(-)
---
diff --git a/src/photos-embed.c b/src/photos-embed.c
index 4cc2c15b..09f5bf50 100644
--- a/src/photos-embed.c
+++ b/src/photos-embed.c
@@ -722,8 +722,6 @@ static void
 photos_embed_init (PhotosEmbed *self)
 {
   GApplication *app;
-  GList *l;
-  GList *sources_notified = NULL;
   GList *windows;
   PhotosSearchbar *searchbar;
   PhotosSearchContextState *state;
@@ -828,13 +826,6 @@ photos_embed_init (PhotosEmbed *self)
                            self,
                            G_CONNECT_SWAPPED);
 
-  sources_notified = photos_source_manager_get_notified (PHOTOS_SOURCE_MANAGER (self->src_mngr));
-  for (l = sources_notified; l != NULL; l = l->next)
-    {
-      PhotosSource *source = PHOTOS_SOURCE (l->data);
-      photos_embed_source_manager_notification_show (self, source);
-    }
-
   self->srch_mtch_mngr = g_object_ref (state->srch_mtch_mngr);
 
   self->srch_typ_mngr = g_object_ref (state->srch_typ_mngr);
@@ -853,8 +844,6 @@ photos_embed_init (PhotosEmbed *self)
                            G_CALLBACK (photos_embed_search_changed),
                            self,
                            G_CONNECT_SWAPPED);
-
-  g_list_free_full (sources_notified, g_object_unref);
 }
 
 
diff --git a/src/photos-source-manager.c b/src/photos-source-manager.c
index 5911177f..f6015dae 100644
--- a/src/photos-source-manager.c
+++ b/src/photos-source-manager.c
@@ -357,23 +357,6 @@ photos_source_manager_get_for_provider_type (PhotosSourceManager *self, const gc
 }
 
 
-GList *
-photos_source_manager_get_notified (PhotosSourceManager *self)
-{
-  GHashTableIter iter;
-  GList *sources = NULL;
-  PhotosSource *source;
-
-  g_return_val_if_fail (PHOTOS_IS_SOURCE_MANAGER (self), NULL);
-
-  g_hash_table_iter_init (&iter, self->sources_notified);
-  while (g_hash_table_iter_next (&iter, NULL, (gpointer *) &source))
-    sources = g_list_prepend (sources, g_object_ref (source));
-
-  return sources;
-}
-
-
 gboolean
 photos_source_manager_has_online_sources (PhotosSourceManager *self)
 {
diff --git a/src/photos-source-manager.h b/src/photos-source-manager.h
index 54777074..92d38dce 100644
--- a/src/photos-source-manager.h
+++ b/src/photos-source-manager.h
@@ -35,8 +35,6 @@ PhotosBaseManager        *photos_source_manager_new                (void);
 GList                    *photos_source_manager_get_for_provider_type (PhotosSourceManager *self,
                                                                        const gchar *provider_type);
 
-GList                    *photos_source_manager_get_notified          (PhotosSourceManager *self);
-
 gboolean                  photos_source_manager_has_online_sources    (PhotosSourceManager *self);
 
 gboolean                  photos_source_manager_has_provider_type     (PhotosSourceManager *self,


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