[gtk+] GtkMenuPositionFunc: Correct annotations



commit 8463d0ee62b4b22fa1eefd905a91850b10504229
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Dec 9 22:56:19 2014 -0500

    GtkMenuPositionFunc: Correct annotations
    
    x and y are inout, not just out.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=674537

 README.in     |    5 +++++
 gtk/gtkmenu.h |    4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/README.in b/README.in
index 01dcd2a..161eb58 100644
--- a/README.in
+++ b/README.in
@@ -82,6 +82,11 @@ Release notes for 3.16
 * GTK+ no longer uses gtk-update-icon-cache during its build. The
   --enable-gtk2-dependency configure option has been removed.
 
+* The introspection annotations for the x and y parameters of
+  GtkMenuPositionFunc have been corrected from 'out' to 'inout'.
+  If you are using such a function from language-bindings, this
+  may require adjustments.
+
 Release notes for 3.14
 ======================
 
diff --git a/gtk/gtkmenu.h b/gtk/gtkmenu.h
index d854ed2..bf81a89 100644
--- a/gtk/gtkmenu.h
+++ b/gtk/gtkmenu.h
@@ -66,9 +66,9 @@ typedef enum
 /**
  * GtkMenuPositionFunc:
  * @menu: a #GtkMenu.
- * @x: (out): address of the #gint representing the horizontal
+ * @x: (inout): address of the #gint representing the horizontal
  *     position where the menu shall be drawn.
- * @y: (out): address of the #gint representing the vertical position
+ * @y: (inout): address of the #gint representing the vertical position
  *     where the menu shall be drawn.  This is an output parameter.
  * @push_in: (out): This parameter controls how menus placed outside
  *     the monitor are handled.  If this is set to %TRUE and part of


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