[gtk/gir-fixes] Annotation fixes



commit 4e264a74be7c0028b9e6dd11596640e5bf7d38b5
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Fri Apr 3 15:30:56 2020 +0100

    Annotation fixes
    
    Match the arguments name in the declaration and the definition, and make
    sure we have the proper transfer annotations.

 gdk/gdkdragsurface.h        | 2 +-
 gdk/gdktoplevellayout.c     | 2 +-
 gtk/gtkshortcutcontroller.h | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gdk/gdkdragsurface.h b/gdk/gdkdragsurface.h
index 61649bff76..bc20416777 100644
--- a/gdk/gdkdragsurface.h
+++ b/gdk/gdkdragsurface.h
@@ -34,7 +34,7 @@ GDK_AVAILABLE_IN_ALL
 G_DECLARE_INTERFACE (GdkDragSurface, gdk_drag_surface, GDK, DRAG_SURFACE, GObject)
 
 GDK_AVAILABLE_IN_ALL
-gboolean gdk_drag_surface_present (GdkDragSurface *drag_icon,
+gboolean gdk_drag_surface_present (GdkDragSurface *drag_surface,
                                    int             width,
                                    int             height);
 
diff --git a/gdk/gdktoplevellayout.c b/gdk/gdktoplevellayout.c
index 6aaf336280..c68d9c2eeb 100644
--- a/gdk/gdktoplevellayout.c
+++ b/gdk/gdktoplevellayout.c
@@ -293,7 +293,7 @@ gdk_toplevel_layout_get_fullscreen (GdkToplevelLayout *layout)
  * Returns the monitor that the layout is fullscreening
  * the surface on.
  *
- * Returns: (nullable): the monitor on which @layout fullscreens
+ * Returns: (nullable) (transfer none): the monitor on which @layout fullscreens
  */
 GdkMonitor *
 gdk_toplevel_layout_get_fullscreen_monitor (GdkToplevelLayout *layout)
diff --git a/gtk/gtkshortcutcontroller.h b/gtk/gtkshortcutcontroller.h
index aeb50e7f91..da9d89786c 100644
--- a/gtk/gtkshortcutcontroller.h
+++ b/gtk/gtkshortcutcontroller.h
@@ -45,7 +45,7 @@ GType                   gtk_shortcut_controller_get_type                (void) G
 GDK_AVAILABLE_IN_ALL
 GtkEventController *    gtk_shortcut_controller_new                     (void);
 GDK_AVAILABLE_IN_ALL
-GtkEventController *    gtk_shortcut_controller_new_for_model           (GListModel             *list);
+GtkEventController *    gtk_shortcut_controller_new_for_model           (GListModel             *model);
 
 GDK_AVAILABLE_IN_ALL
 void                    gtk_shortcut_controller_set_mnemonics_modifiers (GtkShortcutController  *self,


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