import-dialog: add constructed() override
Add GObject.constructed override and call the setup_calendars function inside of it.
This commit is contained in:
committed by
Georges Basile Stavracas Neto
parent
b8903657c5
commit
0bc006be5c
@@ -409,6 +409,16 @@ on_import_row_file_loaded_cb (GcalImportFileRow *row,
|
|||||||
* GObject overrides
|
* GObject overrides
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
static void
|
||||||
|
gcal_import_dialog_constructed (GObject *object)
|
||||||
|
{
|
||||||
|
GcalImportDialog *self = (GcalImportDialog *)object;
|
||||||
|
|
||||||
|
G_OBJECT_CLASS (gcal_import_dialog_parent_class)->constructed (object);
|
||||||
|
|
||||||
|
setup_calendars (self);
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gcal_import_dialog_finalize (GObject *object)
|
gcal_import_dialog_finalize (GObject *object)
|
||||||
{
|
{
|
||||||
@@ -455,7 +465,6 @@ gcal_import_dialog_set_property (GObject *object,
|
|||||||
case PROP_CONTEXT:
|
case PROP_CONTEXT:
|
||||||
g_assert (self->context == NULL);
|
g_assert (self->context == NULL);
|
||||||
self->context = g_value_dup_object (value);
|
self->context = g_value_dup_object (value);
|
||||||
setup_calendars (self);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@@ -469,6 +478,7 @@ gcal_import_dialog_class_init (GcalImportDialogClass *klass)
|
|||||||
GObjectClass *object_class = G_OBJECT_CLASS (klass);
|
GObjectClass *object_class = G_OBJECT_CLASS (klass);
|
||||||
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
|
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
|
||||||
|
|
||||||
|
object_class->constructed = gcal_import_dialog_constructed;
|
||||||
object_class->finalize = gcal_import_dialog_finalize;
|
object_class->finalize = gcal_import_dialog_finalize;
|
||||||
object_class->get_property = gcal_import_dialog_get_property;
|
object_class->get_property = gcal_import_dialog_get_property;
|
||||||
object_class->set_property = gcal_import_dialog_set_property;
|
object_class->set_property = gcal_import_dialog_set_property;
|
||||||
|
|||||||
Reference in New Issue
Block a user