[gnome-calendar] fix API break on templates
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] fix API break on templates
- Date: Thu, 4 Dec 2014 22:30:22 +0000 (UTC)
commit aa79428ce4fe20f1eb3b31771530439b66f9b675
Author: Yosef Or Boczko <yoseforb gmail com>
Date: Mon Jul 29 20:55:07 2013 +0300
fix API break on templates
src/gcal-nav-bar.c | 8 ++++----
src/gcal-new-event-widget.c | 12 ++++++------
src/gcal-viewport.c | 6 +++---
3 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/src/gcal-nav-bar.c b/src/gcal-nav-bar.c
index e257b80..f59c686 100644
--- a/src/gcal-nav-bar.c
+++ b/src/gcal-nav-bar.c
@@ -87,10 +87,10 @@ gcal_nav_bar_class_init (GcalNavBarClass *klass)
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/calendar/nav_bar.ui");
/* Bind internals widgets */
- gtk_widget_class_bind_child (widget_class, GcalNavBarPrivate, back_button);
- gtk_widget_class_bind_child (widget_class, GcalNavBarPrivate, forward_button);
- gtk_widget_class_bind_child (widget_class, GcalNavBarPrivate, left_label);
- gtk_widget_class_bind_child (widget_class, GcalNavBarPrivate, right_label);
+ gtk_widget_class_bind_template_child_private (widget_class, GcalNavBar, back_button);
+ gtk_widget_class_bind_template_child_private (widget_class, GcalNavBar, forward_button);
+ gtk_widget_class_bind_template_child_private (widget_class, GcalNavBar, left_label);
+ gtk_widget_class_bind_template_child_private (widget_class, GcalNavBar, right_label);
}
diff --git a/src/gcal-new-event-widget.c b/src/gcal-new-event-widget.c
index 3f72363..fa1c011 100644
--- a/src/gcal-new-event-widget.c
+++ b/src/gcal-new-event-widget.c
@@ -79,12 +79,12 @@ gcal_new_event_widget_class_init (GcalNewEventWidgetClass *klass)
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/calendar/new-event.ui");
/* Bind internals widgets */
- gtk_widget_class_bind_child (widget_class, GcalNewEventWidgetPrivate, title_label);
- gtk_widget_class_bind_child (widget_class, GcalNewEventWidgetPrivate, what_entry);
- gtk_widget_class_bind_child (widget_class, GcalNewEventWidgetPrivate, calendar_button);
- gtk_widget_class_bind_child (widget_class, GcalNewEventWidgetPrivate, create_button);
- gtk_widget_class_bind_child (widget_class, GcalNewEventWidgetPrivate, details_button);
- gtk_widget_class_bind_child (widget_class, GcalNewEventWidgetPrivate, close_button);
+ gtk_widget_class_bind_template_child_private (widget_class, GcalNewEventWidget, title_label);
+ gtk_widget_class_bind_template_child_private (widget_class, GcalNewEventWidget, what_entry);
+ gtk_widget_class_bind_template_child_private (widget_class, GcalNewEventWidget, calendar_button);
+ gtk_widget_class_bind_template_child_private (widget_class, GcalNewEventWidget, create_button);
+ gtk_widget_class_bind_template_child_private (widget_class, GcalNewEventWidget, details_button);
+ gtk_widget_class_bind_template_child_private (widget_class, GcalNewEventWidget, close_button);
}
static void
diff --git a/src/gcal-viewport.c b/src/gcal-viewport.c
index 722e431..219389f 100644
--- a/src/gcal-viewport.c
+++ b/src/gcal-viewport.c
@@ -69,9 +69,9 @@ gcal_viewport_class_init (GcalViewportClass *klass)
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/calendar/viewport.ui");
/* Bind internals widgets */
- gtk_widget_class_bind_child (widget_class, GcalViewportPrivate, hscrollbar);
- gtk_widget_class_bind_child (widget_class, GcalViewportPrivate, vscrollbar);
- gtk_widget_class_bind_child (widget_class, GcalViewportPrivate, viewport);
+ gtk_widget_class_bind_template_child_private (widget_class, GcalViewport, hscrollbar);
+ gtk_widget_class_bind_template_child_private (widget_class, GcalViewport, vscrollbar);
+ gtk_widget_class_bind_template_child_private (widget_class, GcalViewport, viewport);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]