[gnome-calendar] source-dialog: bind the template class
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] source-dialog: bind the template class
- Date: Mon, 25 May 2015 16:45:38 +0000 (UTC)
commit 2df236fccb3ca8be0d30a448297ffaa188ca2f1c
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Mon Feb 9 11:33:59 2015 -0200
source-dialog: bind the template class
src/gcal-source-dialog.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-source-dialog.c b/src/gcal-source-dialog.c
index 4f2f0ec..da6d10d 100644
--- a/src/gcal-source-dialog.c
+++ b/src/gcal-source-dialog.c
@@ -96,9 +96,13 @@ gcal_source_dialog_class_init (GcalSourceDialogClass *klass)
object_class->finalize = gcal_source_dialog_finalize;
object_class->get_property = gcal_source_dialog_get_property;
object_class->set_property = gcal_source_dialog_set_property;
+
+ /* bind things for/from the template class */
+ gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass),
"/org/gnome/calendar/source-dialog.ui");
}
static void
gcal_source_dialog_init (GcalSourceDialog *self)
{
+ gtk_widget_init_template (GTK_WIDGET (self));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]