source-dialog: move E_TYPE_SOURCE_LOCAL to GcalSourceDialog::init

This commit is contained in:
Georges Basile Stavracas Neto
2015-05-25 12:35:27 -04:00
committed by Erick Pérez Castellanos
parent 350b2734b2
commit c0e8511db4
+7 -7
View File
@@ -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);