[gnome-calendar/ui-rewrite] gcal-new-event-widget: added more getter methods



commit 1dfc3b22203c88b966bc565835294d2c361460a5
Author: Erick Pérez Castellanos <erick red gmail com>
Date:   Sun Jun 30 17:39:16 2013 -0400

    gcal-new-event-widget: added more getter methods

 src/gcal-new-event-widget.c |   27 ++++++++++++++++++++++-----
 src/gcal-new-event-widget.h |    4 +++-
 2 files changed, 25 insertions(+), 6 deletions(-)
---
diff --git a/src/gcal-new-event-widget.c b/src/gcal-new-event-widget.c
index 4d9147e..406e923 100644
--- a/src/gcal-new-event-widget.c
+++ b/src/gcal-new-event-widget.c
@@ -77,20 +77,20 @@ gcal_new_event_widget_set_title (GcalNewEventWidget *widget,
 }
 
 /**
- * gcal_new_event_widget_get_close_button:
- * @widget: a #GcalNewEventWidget
+ * gcal_new_event_widget_get_entry:
+ * @widget:
  *
- * Get a pointer a to the close button in the widget.
+ * Get a reference to the summanry entry
  *
  * Returns: (transfer none) a #GtkWidget
  **/
 GtkWidget*
-gcal_new_event_widget_get_close_button (GcalNewEventWidget *widget)
+gcal_new_event_widget_get_entry (GcalNewEventWidget *widget)
 {
   GcalNewEventWidgetPrivate *priv;
 
   priv = gcal_new_event_widget_get_instance_private (widget);
-  return priv->close_button;
+  return priv->what_entry;
 }
 
 GtkWidget*
@@ -110,3 +110,20 @@ gcal_new_event_widget_get_details_button (GcalNewEventWidget *widget)
   priv = gcal_new_event_widget_get_instance_private (widget);
   return priv->details_button;
 }
+
+/**
+ * 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;
+}
diff --git a/src/gcal-new-event-widget.h b/src/gcal-new-event-widget.h
index fd2f218..02ec6bd 100644
--- a/src/gcal-new-event-widget.h
+++ b/src/gcal-new-event-widget.h
@@ -63,12 +63,14 @@ GtkWidget*      gcal_new_event_widget_new                (void);
 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_entry          (GcalNewEventWidget *widget);
 
 GtkWidget*      gcal_new_event_widget_get_create_button  (GcalNewEventWidget *widget);
 
 GtkWidget*      gcal_new_event_widget_get_details_button (GcalNewEventWidget *widget);
 
+GtkWidget*      gcal_new_event_widget_get_close_button   (GcalNewEventWidget *widget);
+
 G_END_DECLS
 
 #endif /* __GCAL_NEW_EVENT_WIDGET_H__ */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]