2008-12-12 Claudio Saavedra <csaavedra@igalia.com>
authorClaudio Saavedra <csaavedra@igalia.com>
Fri, 12 Dec 2008 12:28:00 +0000 (12:28 +0000)
committerClaudio Saavedra <csaavedra@igalia.com>
Fri, 12 Dec 2008 12:28:00 +0000 (12:28 +0000)
Patch contributed by Iván Gómez (igomez@igalia.com)

* src/hildon-check-button.c:
* src/hildon-date-button.c:
* src/hildon-date-selector.c:
* src/hildon-dialog.c:
* src/hildon-edit-toolbar.c:
* src/hildon-entry.c:
* src/hildon-picker-button.c:
* src/hildon-program.c:
* src/hildon-text-view.c:
* src/hildon-time-button.c:
* src/hildon-touch-selector-entry.c:
* src/hildon-window-stack.c:

Add more "since" tags to the new API.

13 files changed:
ChangeLog
src/hildon-check-button.c
src/hildon-date-button.c
src/hildon-date-selector.c
src/hildon-dialog.c
src/hildon-edit-toolbar.c
src/hildon-entry.c
src/hildon-picker-button.c
src/hildon-program.c
src/hildon-text-view.c
src/hildon-time-button.c
src/hildon-touch-selector-entry.c
src/hildon-window-stack.c

index b1a3197..dad7f94 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,24 @@
 2008-12-12  Claudio Saavedra  <csaavedra@igalia.com>
 
+       Patch contributed by Iván Gómez (igomez@igalia.com)
+
+       * src/hildon-check-button.c:
+       * src/hildon-date-button.c:
+       * src/hildon-date-selector.c:
+       * src/hildon-dialog.c:
+       * src/hildon-edit-toolbar.c:
+       * src/hildon-entry.c:
+       * src/hildon-picker-button.c:
+       * src/hildon-program.c:
+       * src/hildon-text-view.c:
+       * src/hildon-time-button.c:
+       * src/hildon-touch-selector-entry.c:
+       * src/hildon-window-stack.c:
+
+       Add more "since" tags to the new API.
+
+2008-12-12  Claudio Saavedra  <csaavedra@igalia.com>
+
        * doc/hildon-sections.txt: Add below method.
        * src/hildon-gtk.c: (+hildon_gtk_vscale_new): New vertical
        version for the hildonized scale.
index 5d91dfc..656a654 100644 (file)
@@ -80,6 +80,8 @@ struct                                          _HildonCheckButtonPrivate
  * @button: A #HildonCheckButton
  *
  * Emits the #HildonCheckButton::toggled signal on the #HildonCheckButton.
+ *
+ * Since: 2.2
  */
 void
 hildon_check_button_toggled                     (HildonCheckButton *button)
@@ -95,6 +97,8 @@ hildon_check_button_toggled                     (HildonCheckButton *button)
  * @is_active: new state for the button
  *
  * Sets the state of @button to @is_active
+ *
+ * Since: 2.2
  **/
 void
 hildon_check_button_set_active                  (HildonCheckButton *button,
@@ -119,6 +123,8 @@ hildon_check_button_set_active                  (HildonCheckButton *button,
  * Gets the state of the button.
  *
  * Return value: %TRUE if @button is active, %FALSE otherwise.
+ *
+ * Since: 2.2 
  **/
 gboolean
 hildon_check_button_get_active                  (HildonCheckButton *button)
@@ -135,6 +141,8 @@ hildon_check_button_get_active                  (HildonCheckButton *button)
  * This function creates a #HildonCheckButton.
  *
  * Return value: A newly created #HildonCheckButton
+ *
+ * Since: 2.2
  **/
 GtkWidget *
 hildon_check_button_new                         (HildonSizeType size)
@@ -169,6 +177,8 @@ hildon_check_button_class_init                  (HildonCheckButtonClass *klass)
      * HildonCheckButton::toggled
      *
      * Emitted when the #HildonCheckButton's state is changed
+     *
+     * Since: 2.2
      */
     signals[TOGGLED] =
         g_signal_new ("toggled",
index 7c0afba..6c0b2cd 100644 (file)
@@ -99,6 +99,8 @@ hildon_date_button_init (HildonDateButton * self)
  * parameters.
  *
  * Returns: a new #HildonDateButton
+ *
+ * Since: 2.2
  **/
 GtkWidget *
 hildon_date_button_new (HildonSizeType          size,
@@ -119,6 +121,8 @@ hildon_date_button_new (HildonSizeType          size,
  * @day: return location for the selected day
  *
  * Retrieves currently selected date from @button.
+ *
+ * Since: 2.2
  **/
 void
 hildon_date_button_get_date (HildonDateButton * button,
@@ -143,6 +147,7 @@ hildon_date_button_get_date (HildonDateButton * button,
  * Sets the date in @button. The date set will be displayed
  * and will be the default selected option on the shown #HildonDateSelector.
  *
+ * Since: 2.2
  **/
 void
 hildon_date_button_set_date (HildonDateButton * button,
index d4e8bca..beb2552 100644 (file)
@@ -599,6 +599,8 @@ _month_days (gint month, gint year)
  * Creates a new #HildonDateSelector
  *
  * Returns: a new #HildonDateSelector
+ *
+ * Since: 2.2
  **/
 GtkWidget *
 hildon_date_selector_new ()
@@ -616,6 +618,7 @@ hildon_date_selector_new ()
  *
  * Sets the current active date on the #HildonDateSelector widget
  *
+ * Since: 2.2
  **/
 gboolean
 hildon_date_selector_select_current_date (HildonDateSelector * selector,
@@ -668,7 +671,7 @@ hildon_date_selector_select_current_date (HildonDateSelector * selector,
  *
  * Gets the current active date on the #HildonDateSelector widget
  *
- *
+ * Since: 2.2
  **/
 void
 hildon_date_selector_get_date (HildonDateSelector * selector,
@@ -715,7 +718,7 @@ hildon_date_selector_get_date (HildonDateSelector * selector,
  * Utility function, too keep this API more similar to the previously existing
  * hildon-calendar widget.
  *
- *
+ * Since: 2.2 
  **/
 gboolean hildon_date_selector_select_month (HildonDateSelector *selector,
                                             guint month, guint year)
@@ -737,7 +740,7 @@ gboolean hildon_date_selector_select_month (HildonDateSelector *selector,
  * Utility function, too keep this API more similar to the previously existing
  * hildon-calendar widget.
  *
- *
+ * Since: 2.2
  **/
 void
 hildon_date_selector_select_day (HildonDateSelector *selector, guint day)
index 78831d7..4d0e68c 100644 (file)
@@ -81,6 +81,8 @@ hildon_dialog_init                              (HildonDialog *self)
  * Creates a new #HildonDialog widget
  *
  * Returns: the newly created #HildonDialog
+ *
+ * Since: 2.2
  */
 GtkWidget*
 hildon_dialog_new                               (void)
@@ -102,6 +104,8 @@ hildon_dialog_new                               (void)
  * more information.
  *
  * Return value: a new #HildonDialog
+ *
+ * Since: 2.2
  */
 GtkWidget*
 hildon_dialog_new_with_buttons                  (const gchar *title,
@@ -166,6 +170,8 @@ hildon_dialog_new_with_buttons                  (const gchar *title,
  * has finger size.
  *
  * Returns: the button widget that was added
+ *
+ * Since: 2.2
  */
 GtkWidget *
 hildon_dialog_add_button                        (HildonDialog *dialog,
@@ -186,6 +192,8 @@ hildon_dialog_add_button                        (HildonDialog *dialog,
  * Adds several buttons to the dialog. Works exactly like
  * gtk_dialog_add_buttons(), the only difference being that the
  * buttons have finger size.
+ *
+ * Since: 2.2
  */
 void
 hildon_dialog_add_buttons                       (HildonDialog *dialog,
index 52c47b1..614ac8b 100644 (file)
@@ -96,6 +96,7 @@ hildon_edit_toolbar_class_init                  (HildonEditToolbarClass *klass)
      *
      * Emitted when the toolbar button has been activated (pressed and released).
      *
+     * Since: 2.2
      */
     toolbar_signals[BUTTON_CLICKED] =
         g_signal_new ("button_clicked",
@@ -112,6 +113,7 @@ hildon_edit_toolbar_class_init                  (HildonEditToolbarClass *klass)
      * Emitted when the toolbar back button (arrow) has been activated
      * (pressed and released).
      *
+     * Since: 2.2
      */
     toolbar_signals[ARROW_CLICKED] =
         g_signal_new ("arrow_clicked",
@@ -175,6 +177,8 @@ hildon_edit_toolbar_init                        (HildonEditToolbar *self)
  *
  * Sets the label of @toolbar to @label. This will clear any
  * previously set value.
+ *
+ * Since: 2.2
  */
 void
 hildon_edit_toolbar_set_label                   (HildonEditToolbar *toolbar,
@@ -193,6 +197,8 @@ hildon_edit_toolbar_set_label                   (HildonEditToolbar *toolbar,
  *
  * Sets the label of the toolbar button to @label. This will clear any
  * previously set value.
+ *
+ * Since: 2.2
  */
 void
 hildon_edit_toolbar_set_button_label            (HildonEditToolbar *toolbar,
@@ -210,6 +216,8 @@ hildon_edit_toolbar_set_button_label            (HildonEditToolbar *toolbar,
  * Creates a new #HildonEditToolbar.
  *
  * Returns: a new #HildonEditToolbar
+ *
+ * Since: 2.2
  */
 GtkWidget *
 hildon_edit_toolbar_new                         (void)
@@ -224,6 +232,8 @@ hildon_edit_toolbar_new                         (void)
  * @label and the button label set to @button.
  *
  * Returns: a new #HildonEditToolbar
+ *
+ * Since: 2.2
  */
 GtkWidget *
 hildon_edit_toolbar_new_with_text               (const gchar *label,
index 7c14559..759de9b 100644 (file)
@@ -105,6 +105,8 @@ hildon_entry_refresh_contents                   (GtkWidget *entry)
  *
  * Note that you must never use gtk_entry_set_text() to set the text
  * of a #HildonEntry.
+ *
+ * Since: 2.2
  */
 void
 hildon_entry_set_text                           (HildonEntry *entry,
@@ -135,6 +137,8 @@ hildon_entry_set_text                           (HildonEntry *entry,
  *
  * Returns: the text in @entry. This text must not be modified or
  * freed.
+ *
+ * Since: 2.2
  */
 const gchar *
 hildon_entry_get_text                           (HildonEntry *entry)
@@ -154,6 +158,8 @@ hildon_entry_get_text                           (HildonEntry *entry)
  * @text: the new text
  *
  * Sets the placeholder text in @entry to @text.
+ *
+ * Since: 2.2
  */
 void
 hildon_entry_set_placeholder                    (HildonEntry *entry,
@@ -173,6 +179,8 @@ hildon_entry_set_placeholder                    (HildonEntry *entry,
  * Creates a new entry.
  *
  * Returns: a new #HildonEntry
+ *
+ * Since: 2.2
  */
 GtkWidget *
 hildon_entry_new                                (HildonSizeType size)
index e247432..d367182 100644 (file)
@@ -245,6 +245,8 @@ hildon_picker_button_class_init (HildonPickerButtonClass * klass)
    *
    * The ::value-changed signal is emitted each time the user chooses a different
    * item from the #HildonTouchSelector related, and the value label gets updated.
+   *
+   * Since: 2.2
    */
   picker_button_signals[VALUE_CHANGED] =
     g_signal_new ("value-changed",
@@ -308,6 +310,8 @@ _current_selector_empty (HildonPickerButton *button)
  * parameters.
  *
  * Returns: a newly created #HildonPickerButton
+ *
+ * Since: 2.2
  **/
 GtkWidget *
 hildon_picker_button_new (HildonSizeType          size,
@@ -329,6 +333,8 @@ hildon_picker_button_new (HildonSizeType          size,
  *
  * Sets @selector as the #HildonTouchSelector to be shown in the
  * #HildonPickerDialog that @button brings up.
+ *
+ * Since: 2.2
  **/
 void
 hildon_picker_button_set_selector (HildonPickerButton * button,
@@ -371,6 +377,8 @@ hildon_picker_button_set_selector (HildonPickerButton * button,
  * Retrieves the #HildonTouchSelector associated to @button.
  *
  * Returns: a #HildonTouchSelector
+ *
+ * Since: 2.2
  **/
 HildonTouchSelector *
 hildon_picker_button_get_selector (HildonPickerButton * button)
@@ -393,6 +401,8 @@ hildon_picker_button_get_selector (HildonPickerButton * button)
  * one is used.
  *
  * Returns: an integer which is the index of the currently active item, or -1 if there's no active item.
+ *
+ * Since: 2.2
  **/
 gint
 hildon_picker_button_get_active                 (HildonPickerButton * button)
@@ -413,6 +423,8 @@ hildon_picker_button_get_active                 (HildonPickerButton * button)
  * Sets the active item of the #HildonTouchSelector associated to
  * @button to @index. If the selector has several columns, only the
  * first one is used.
+ *
+ * Since: 2.2
  **/
 void
 hildon_picker_button_set_active                 (HildonPickerButton * button,
@@ -439,6 +451,8 @@ hildon_picker_button_set_active                 (HildonPickerButton * button,
  *
  * Returns: the custom string to be used, or %NULL if the default
  * #HildonPickerDialog::done-button-text is to be used.
+ *
+ * Since: 2.2
  **/
 const gchar *
 hildon_picker_button_get_done_button_text (HildonPickerButton *button)
@@ -460,6 +474,8 @@ hildon_picker_button_get_done_button_text (HildonPickerButton *button)
  * Sets a custom string to be used in the \"done\" button in the #HildonPickerDialog
  * launched. If not set, the default HildonPickerButton::done-button-text property
  * value will be used.
+ *
+ * Since: 2.2
  **/
 void
 hildon_picker_button_set_done_button_text (HildonPickerButton *button,
index 53dc7e9..963c697 100644 (file)
@@ -579,6 +579,8 @@ hildon_program_get_can_hibernate                (HildonProgram *self)
  * This method is not intented for #HildonStackableWindow<!-- -->s and
  * does not support #HildonAppMenu objects. See
  * hildon_program_set_common_app_menu() for that.
+ *
+ * Since: 2.2
  **/
 void
 hildon_program_set_common_menu                  (HildonProgram *self, 
index d39ce3b..927694d 100644 (file)
@@ -103,6 +103,8 @@ hildon_text_view_refresh_contents               (GtkWidget *text_view)
  *
  * Note that you must never use gtk_text_view_set_buffer() to set the
  * buffer of a #HildonTextView.
+ *
+ * Since: 2.2
  */
 void
 hildon_text_view_set_buffer                     (HildonTextView *text_view,
@@ -150,6 +152,8 @@ hildon_text_view_set_buffer                     (HildonTextView *text_view,
  * buffer.
  *
  * Returns: a #GtkTextBuffer
+ *
+ * Since: 2.2
  */
 GtkTextBuffer *
 hildon_text_view_get_buffer                     (HildonTextView *text_view)
@@ -171,6 +175,8 @@ hildon_text_view_get_buffer                     (HildonTextView *text_view)
  * @text: the new text
  *
  * Sets the placeholder text in @text_view to @text.
+ *
+ * Since: 2.2
  */
 void
 hildon_text_view_set_placeholder                (HildonTextView *text_view,
@@ -191,6 +197,8 @@ hildon_text_view_set_placeholder                (HildonTextView *text_view,
  * Creates a new text view.
  *
  * Returns: a new #HildonTextView
+ *
+ * Since: 2.2 
  */
 GtkWidget *
 hildon_text_view_new                            (void)
index a928df2..c7d6c08 100644 (file)
@@ -97,6 +97,8 @@ hildon_time_button_init (HildonTimeButton * self)
  * parameters.
  *
  * Returns: a new #HildonTimeButton
+ *
+ * Since: 2.2
  **/
 GtkWidget *
 hildon_time_button_new (HildonSizeType          size,
@@ -113,6 +115,8 @@ hildon_time_button_new (HildonSizeType          size,
  * @minutes: return location for the minutes of the time selected
  *
  * Retrieves the time from @button.
+ *
+ * Since: 2.2
  **/
 void
 hildon_time_button_get_time (HildonTimeButton * button,
@@ -135,6 +139,8 @@ hildon_time_button_get_time (HildonTimeButton * button,
  *
  * Sets the time to be displayed in @button. This time will
  * be selected by default on the #HildonTimeSelector.
+ *
+ * Since: 2.2
  **/
 void
 hildon_time_button_set_time (HildonTimeButton * button,
index 54fef7f..d2e3183 100644 (file)
@@ -122,6 +122,7 @@ hildon_touch_selector_entry_class_init (HildonTouchSelectorEntryClass *klass)
    * hildon_touch_selector_entry_set_text_column() and
    * hildon_touch_selector_entry_get_text_column() to manage this.
    *
+   * Since: 2.2
    **/
   g_object_class_install_property (G_OBJECT_CLASS (klass),
                                    PROP_TEXT_COLUMN,
@@ -198,6 +199,8 @@ hildon_touch_selector_entry_new (void)
  * hildon_touch_selector_prepend_text(), hildon_touch_selector_insert_text().
  *
  * Returns: A new #HildonTouchSelectorEntry
+ *
+ * Since: 2.2
  **/
 GtkWidget *
 hildon_touch_selector_entry_new_text (void)
@@ -252,6 +255,7 @@ _text_column_modified (GObject *pspec, GParamSpec *gobject, gpointer data)
  * Sets the model column which touch selector box should use to get strings
  * from to be @text_column.
  *
+ * Since: 2.2
  **/
 void
 hildon_touch_selector_entry_set_text_column (HildonTouchSelectorEntry *selector,
@@ -275,6 +279,7 @@ hildon_touch_selector_entry_set_text_column (HildonTouchSelectorEntry *selector,
  *
  * Returns: the number of the column used as a text column.
  *
+ * Since: 2.2
  **/
 gint
 hildon_touch_selector_entry_get_text_column (HildonTouchSelectorEntry *selector)
index d4d2b97..3a9cfdb 100644 (file)
@@ -77,6 +77,8 @@ G_DEFINE_TYPE (HildonWindowStack, hildon_window_stack, G_TYPE_OBJECT);
  * doesn't need to be created by the application.
  *
  * Return value: the default #HildonWindowStack
+ * 
+ * Since: 2.2
  **/
 HildonWindowStack *
 hildon_window_stack_get_default                 (void)
@@ -95,6 +97,8 @@ hildon_window_stack_get_default                 (void)
  * Creates a new #HildonWindowStack. The stack is initially empty.
  *
  * Return value: a new #HildonWindowStack
+ *
+ * Since: 2.2
  **/
 HildonWindowStack *
 hildon_window_stack_new                         (void)
@@ -111,6 +115,8 @@ hildon_window_stack_new                         (void)
  * Returns the number of windows in @stack
  *
  * Return value: Number of windows in @stack
+ *
+ * Since: 2.2
  **/
 gint
 hildon_window_stack_size                        (HildonWindowStack *stack)
@@ -184,6 +190,8 @@ hildon_window_stack_remove                      (HildonStackableWindow *win)
  *
  * Return value: the window on top of the stack, or %NULL if the stack
  * is empty.
+ *
+ * Since: 2.2
  **/
 GtkWidget *
 hildon_window_stack_peek                        (HildonWindowStack *stack)
@@ -254,6 +262,8 @@ _hildon_window_stack_do_pop                     (HildonWindowStack *stack)
  *
  * Adds @win to the top of @stack, and shows it. The window must not
  * be already stacked.
+ *
+ * Since: 2.2
  **/
 void
 hildon_window_stack_push_1                      (HildonWindowStack     *stack,
@@ -272,6 +282,8 @@ hildon_window_stack_push_1                      (HildonWindowStack     *stack,
  *
  * Return value: the window on top of the stack, or %NULL if the stack
  * is empty.
+ *
+ * Since: 2.2
  **/
 GtkWidget *
 hildon_window_stack_pop_1                       (HildonWindowStack *stack)
@@ -291,6 +303,8 @@ hildon_window_stack_pop_1                       (HildonWindowStack *stack)
  * them. Everything is done in a single transition, so the user will
  * only see the last window in @list during this operation. None of
  * the windows must be already stacked.
+ *
+ * Since: 2.2
  **/
 void
 hildon_window_stack_push_list                   (HildonWindowStack *stack,
@@ -328,6 +342,8 @@ hildon_window_stack_push_list                   (HildonWindowStack *stack,
  * Pushes all windows to the top of @stack, and shows them. Everything
  * is done in a single transition, so the user will only see the last
  * window. None of the windows must be already stacked.
+ *
+ * Since: 2.2
  **/
 void
 hildon_window_stack_push                        (HildonWindowStack     *stack,
@@ -365,6 +381,8 @@ hildon_window_stack_push                        (HildonWindowStack     *stack,
  * If @popped_windows is not %NULL, the list of popped windows is
  * stored there (ordered bottom-up). That list must be freed by the
  * user.
+ *
+ * Since: 2.2
  **/
 void
 hildon_window_stack_pop                         (HildonWindowStack  *stack,
@@ -409,6 +427,8 @@ hildon_window_stack_pop                         (HildonWindowStack  *stack,
  * If @popped_windows is not %NULL, the list of popped windows is
  * stored there (ordered bottom-up). That list must be freed by the
  * user.
+ *
+ * Since: 2.2
  **/
 void
 hildon_window_stack_pop_and_push_list           (HildonWindowStack  *stack,
@@ -472,6 +492,8 @@ hildon_window_stack_pop_and_push_list           (HildonWindowStack  *stack,
  * If @popped_windows is not %NULL, the list of popped windows is
  * stored there (ordered bottom-up). That list must be freed by the
  * user.
+ *
+ * Since: 2.2
  **/
 void
 hildon_window_stack_pop_and_push                (HildonWindowStack      *stack,