source-dialog: move E_TYPE_SOURCE_LOCAL to GcalSourceDialog::init
This commit is contained in:
committed by
Erick Pérez Castellanos
parent
350b2734b2
commit
c0e8511db4
@@ -379,13 +379,6 @@ select_calendar_file (GtkButton *button,
|
|||||||
if (priv->local_source != NULL)
|
if (priv->local_source != NULL)
|
||||||
g_clear_pointer (&(priv->local_source), g_object_unref);
|
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
|
* Create the new source and add the needed
|
||||||
* extensions.
|
* extensions.
|
||||||
@@ -574,6 +567,13 @@ gcal_source_dialog_class_init (GcalSourceDialogClass *klass)
|
|||||||
GObjectClass *object_class = G_OBJECT_CLASS (klass);
|
GObjectClass *object_class = G_OBJECT_CLASS (klass);
|
||||||
GtkWidgetClass *widget_class;
|
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;
|
object_class->constructed = gcal_source_dialog_constructed;
|
||||||
|
|
||||||
widget_class = GTK_WIDGET_CLASS (klass);
|
widget_class = GTK_WIDGET_CLASS (klass);
|
||||||
|
|||||||
Reference in New Issue
Block a user