[gtk+/gtk-2-24] Add missing annotations



commit 5af547bf83bcb0bc6f62b31dff75cf30c9a8da86
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Mar 12 21:36:18 2011 -0500

    Add missing annotations
    
    This adds missing annotations for gdk_window_get_position(),
    gtk_window_get_position() and gtk_accelerator_parse().
    Bug 644353, patch by Ulrik Sverdrup.

 gdk/gdkwindow.c     |    4 ++--
 gtk/gtkaccelgroup.c |    4 ++--
 gtk/gtkwindow.c     |    4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index ea8f53b..c491846 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -2301,8 +2301,8 @@ gdk_window_has_native (GdkWindow *window)
 /**
  * gdk_window_get_position:
  * @window: a #GdkWindow
- * @x: X coordinate of window
- * @y: Y coordinate of window
+ * @x: (out) (allow-none): X coordinate of window
+ * @y: (out) (allow-none): Y coordinate of window
  *
  * Obtains the position of the window as reported in the
  * most-recently-processed #GdkEventConfigure. Contrast with
diff --git a/gtk/gtkaccelgroup.c b/gtk/gtkaccelgroup.c
index 32edf4d..4c21943 100644
--- a/gtk/gtkaccelgroup.c
+++ b/gtk/gtkaccelgroup.c
@@ -1124,8 +1124,8 @@ is_hyper (const gchar *string)
 /**
  * gtk_accelerator_parse:
  * @accelerator:      string representing an accelerator
- * @accelerator_key:  return location for accelerator keyval
- * @accelerator_mods: return location for accelerator modifier mask
+ * @accelerator_key: (out) (allow-none): return location for accelerator keyval
+ * @accelerator_mods: (out) (allow-none): return location for accelerator modifier mask
  *
  * Parses a string representing an accelerator. The
  * format looks like "&lt;Control&gt;a" or "&lt;Shift&gt;&lt;Alt&gt;F1" or
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index fb65161..e026cc2 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -4230,8 +4230,8 @@ gtk_window_move (GtkWindow *window,
 /**
  * gtk_window_get_position:
  * @window: a #GtkWindow
- * @root_x: return location for X coordinate of gravity-determined reference point
- * @root_y: return location for Y coordinate of gravity-determined reference point
+ * @root_x: (out) (allow-none): return location for X coordinate of gravity-determined reference point
+ * @root_y: (out) (allow-none): return location for Y coordinate of gravity-determined reference point
  *
  * This function returns the position you need to pass to
  * gtk_window_move() to keep @window in its current position.  This



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