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);