[gnome-initial-setup] language: Don't remove nonexisting sources



commit d204fe98a0dbabc9ba8f6e82a19bbf6e5b2f3e20
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Dec 6 09:46:04 2013 -0500

    language: Don't remove nonexisting sources

 .../pages/language/gis-language-page.c             |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gnome-initial-setup/pages/language/gis-language-page.c 
b/gnome-initial-setup/pages/language/gis-language-page.c
index da801f5..b98a2d4 100644
--- a/gnome-initial-setup/pages/language/gis-language-page.c
+++ b/gnome-initial-setup/pages/language/gis-language-page.c
@@ -234,7 +234,8 @@ gis_language_page_dispose (GObject *object)
   GisLanguagePage *page = GIS_LANGUAGE_PAGE (object);
   GisLanguagePagePrivate *priv = gis_language_page_get_instance_private (page);
 
-  g_source_remove (priv->selection_done_source);
+  if (priv->selection_done_source > 0)
+    g_source_remove (priv->selection_done_source);
   g_clear_object (&priv->permission);
   g_clear_object (&priv->localed);
   g_clear_object (&priv->cancellable);


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