[zoomable] Fix Introspection data generation
authorEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 22 Jun 2009 14:39:50 +0000 (15:39 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 22 Jun 2009 14:39:50 +0000 (15:39 +0100)
* Add annotations to the Zoomable methods.

* Fix the naming of the arguments for the set_adjustment() virtual
  function, so that g-ir-scanner doesn't get confused.

clutter-gtk/gtk-clutter-zoomable.c
clutter-gtk/gtk-clutter-zoomable.h

index 58bd93b..6758ac0 100644 (file)
@@ -70,7 +70,7 @@ gtk_clutter_zoomable_get_type (void)
 /**
  * gtk_clutter_zoomable_set_adjustment:
  * @zoomable: a #GtkClutterZoomable
- * @z_adjust: a #GtkAdjustment, or %NULL
+ * @z_adjust: (null-ok): a #GtkAdjustment, or %NULL
  *
  * Sets the adjustment used to determine the zoom factor of
  * the zoomable actor
@@ -98,7 +98,7 @@ gtk_clutter_zoomable_set_adjustment (GtkClutterZoomable *zoomable,
  * Retrieves the adjustment used to determine the zoom factor of
  * the zoomable actor
  *
- * Return value: a #GtkAdjustment
+ * Return value: (transfer none): a #GtkAdjustment
  *
  * Since: 1.0
  */
index 1896d0d..6c0de01 100644 (file)
@@ -34,7 +34,8 @@ struct _GtkClutterZoomableIface
 
   /*< public >*/
   void           (* set_adjustment) (GtkClutterZoomable *zoomable,
-                                     GtkAdjustment      *adjustment);
+                                     GtkAdjustment      *z_adjust);
+
   GtkAdjustment *(* get_adjustment) (GtkClutterZoomable *zoomable);
 };