source-dialog: lazy set the GcalManager instance
No signals are connected.
This commit is contained in:
committed by
Erick Pérez Castellanos
parent
3915e1c6e9
commit
059b783b0d
@@ -110,3 +110,22 @@ gcal_source_dialog_init (GcalSourceDialog *self)
|
||||
|
||||
gtk_widget_init_template (GTK_WIDGET (self));
|
||||
}
|
||||
|
||||
/**
|
||||
* gcal_source_dialog_set_manager:
|
||||
*
|
||||
* Setup the {@link GcalManager} singleton
|
||||
* instance of the application.
|
||||
*
|
||||
* Returns:
|
||||
*/
|
||||
void
|
||||
gcal_source_dialog_set_manager (GcalSourceDialog *dialog,
|
||||
GcalManager *manager)
|
||||
{
|
||||
GcalSourceDialogPrivate *priv = dialog->priv;
|
||||
|
||||
priv->manager = manager;
|
||||
|
||||
/* TODO: connect ::source-added & ::source-removed signals */
|
||||
}
|
||||
|
||||
@@ -36,7 +36,10 @@ struct _GcalSourceDialogClass
|
||||
GtkDialogClass parent;
|
||||
};
|
||||
|
||||
GcalSourceDialog* gcal_source_dialog_new (void);
|
||||
GcalSourceDialog* gcal_source_dialog_new (void);
|
||||
|
||||
void gcal_source_dialog_set_manager (GcalSourceDialog *dialog,
|
||||
GcalManager *manager);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
Reference in New Issue
Block a user