[gtk+/gtk-3-18] scalebutton: Annotate the return type



commit 55f9dd9907fdb921edc1e1e4432316ad9d8e4fc9
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Mon Nov 30 14:09:19 2015 +0000

    scalebutton: Annotate the return type
    
    Instead of just listing the return type of get_plus_button() and
    get_minus_button() in the documentation, we can use the (type)
    annotation to ensure that the introspection data reflects the actual
    type of the returned widget.

 gtk/gtkscalebutton.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkscalebutton.c b/gtk/gtkscalebutton.c
index 8858058..d5ae8e0 100644
--- a/gtk/gtkscalebutton.c
+++ b/gtk/gtkscalebutton.c
@@ -660,7 +660,7 @@ gtk_scale_button_set_adjustment     (GtkScaleButton *button,
  *
  * Retrieves the plus button of the #GtkScaleButton.
  *
- * Returns: (transfer none): the plus button of the #GtkScaleButton as a #GtkButton
+ * Returns: (transfer none) (type Gtk.Button): the plus button of the #GtkScaleButton as a #GtkButton
  *
  * Since: 2.14
  */
@@ -678,7 +678,7 @@ gtk_scale_button_get_plus_button (GtkScaleButton *button)
  *
  * Retrieves the minus button of the #GtkScaleButton.
  *
- * Returns: (transfer none): the minus button of the #GtkScaleButton as a #GtkButton
+ * Returns: (transfer none) (type Gtk.Button): the minus button of the #GtkScaleButton as a #GtkButton
  *
  * Since: 2.14
  */


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