[gnome-calendar/calendar-editor] source-dialog: move E_TYPE_SOURCE_LOCAL to GcalSourceDialog::init



commit a8242483cc95c02dc78e35affd8cdf85bbc2eb97
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Mon Feb 23 14:14:36 2015 -0300

    source-dialog: move E_TYPE_SOURCE_LOCAL to GcalSourceDialog::init

 src/gcal-source-dialog.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/gcal-source-dialog.c b/src/gcal-source-dialog.c
index 58f913c..d9a98ef 100644
--- a/src/gcal-source-dialog.c
+++ b/src/gcal-source-dialog.c
@@ -380,13 +380,6 @@ select_calendar_file (GtkButton *button,
         g_clear_pointer (&(priv->local_source), g_object_unref);
 
       /**
-       * Since we cannot guarantee that the
-       * type system registered ESourceLocal,
-       * it must be ensured at least here.
-       */
-      g_type_ensure (E_TYPE_SOURCE_LOCAL);
-
-      /**
        * Create the new source and add the needed
        * extensions.
        */
@@ -574,6 +567,13 @@ gcal_source_dialog_class_init (GcalSourceDialogClass *klass)
   GObjectClass *object_class = G_OBJECT_CLASS (klass);
   GtkWidgetClass *widget_class;
 
+  /**
+   * Since we cannot guarantee that the
+   * type system registered ESourceLocal,
+   * it must be ensured at least here.
+   */
+  g_type_ensure (E_TYPE_SOURCE_LOCAL);
+
   object_class->constructed = gcal_source_dialog_constructed;
 
   widget_class = GTK_WIDGET_CLASS (klass);


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