[gnome-calendar] gcal-new-event-widget: adding new getter API
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] gcal-new-event-widget: adding new getter API
- Date: Thu, 4 Dec 2014 22:26:42 +0000 (UTC)
commit 92c2d2e090bf898e9e70edebc6d1e037b2ea27dd
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Sat Jun 29 22:28:29 2013 -0400
gcal-new-event-widget: adding new getter API
Added GcalNewEventWidget:get_close_button
Added GcalNewEventWidget:get_create_button
Added GcalNewEventWidget:get_details_button
src/gcal-new-event-widget.c | 35 +++++++++++++++++++++++++++++++++++
src/gcal-new-event-widget.h | 14 ++++++++++----
2 files changed, 45 insertions(+), 4 deletions(-)
---
diff --git a/src/gcal-new-event-widget.c b/src/gcal-new-event-widget.c
index 27703db..4d9147e 100644
--- a/src/gcal-new-event-widget.c
+++ b/src/gcal-new-event-widget.c
@@ -75,3 +75,38 @@ gcal_new_event_widget_set_title (GcalNewEventWidget *widget,
priv = gcal_new_event_widget_get_instance_private (widget);
gtk_label_set_text (GTK_LABEL (priv->title_label), title);
}
+
+/**
+ * gcal_new_event_widget_get_close_button:
+ * @widget: a #GcalNewEventWidget
+ *
+ * Get a pointer a to the close button in the widget.
+ *
+ * Returns: (transfer none) a #GtkWidget
+ **/
+GtkWidget*
+gcal_new_event_widget_get_close_button (GcalNewEventWidget *widget)
+{
+ GcalNewEventWidgetPrivate *priv;
+
+ priv = gcal_new_event_widget_get_instance_private (widget);
+ return priv->close_button;
+}
+
+GtkWidget*
+gcal_new_event_widget_get_create_button (GcalNewEventWidget *widget)
+{
+ GcalNewEventWidgetPrivate *priv;
+
+ priv = gcal_new_event_widget_get_instance_private (widget);
+ return priv->create_button;
+}
+
+GtkWidget*
+gcal_new_event_widget_get_details_button (GcalNewEventWidget *widget)
+{
+ GcalNewEventWidgetPrivate *priv;
+
+ priv = gcal_new_event_widget_get_instance_private (widget);
+ return priv->details_button;
+}
diff --git a/src/gcal-new-event-widget.h b/src/gcal-new-event-widget.h
index 79ff4b4..fd2f218 100644
--- a/src/gcal-new-event-widget.h
+++ b/src/gcal-new-event-widget.h
@@ -56,12 +56,18 @@ struct _GcalNewEventWidgetClass
};
-GType gcal_new_event_widget_get_type (void);
+GType gcal_new_event_widget_get_type (void);
-GtkWidget* gcal_new_event_widget_new (void);
+GtkWidget* gcal_new_event_widget_new (void);
-void gcal_new_event_widget_set_title (GcalNewEventWidget *widget,
- const gchar *title);
+void gcal_new_event_widget_set_title (GcalNewEventWidget *widget,
+ const gchar *title);
+
+GtkWidget* gcal_new_event_widget_get_close_button (GcalNewEventWidget *widget);
+
+GtkWidget* gcal_new_event_widget_get_create_button (GcalNewEventWidget *widget);
+
+GtkWidget* gcal_new_event_widget_get_details_button (GcalNewEventWidget *widget);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]