From c0e8511db40c3f3390645652977c831ec07d11bb Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Mon, 23 Feb 2015 14:14:36 -0300 Subject: [PATCH] source-dialog: move E_TYPE_SOURCE_LOCAL to GcalSourceDialog::init --- src/gcal-source-dialog.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/gcal-source-dialog.c b/src/gcal-source-dialog.c index 58f913cf..d9a98ef3 100644 --- a/src/gcal-source-dialog.c +++ b/src/gcal-source-dialog.c @@ -379,13 +379,6 @@ select_calendar_file (GtkButton *button, if (priv->local_source != NULL) 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);