From 6529c07614ebfbfac73f526efb057d8a8e3a7354 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 10 Dec 2009 08:23:40 -0200 Subject: [introspection] Merge in Gtk-custom.c annotations The Gtk-custom.c file in gir-repository contained a number of introspection annotations. Merge those into the GTK source files. Some documentation was moved from the tmpl/ files to accomodate the addition of annotations. --- gtk/gtkwindow.c | 51 ++++++++++++++++++++++++++------------------------- 1 file changed, 26 insertions(+), 25 deletions(-) (limited to 'gtk/gtkwindow.c') diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 98747b26a8..3a35731b5b 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -1551,7 +1551,7 @@ gtk_window_get_role (GtkWindow *window) /** * gtk_window_set_focus: * @window: a #GtkWindow - * @focus: widget to be the new focus widget, or %NULL to unset + * @focus: (allow-none): widget to be the new focus widget, or %NULL to unset * any focus widget for the toplevel window. * * If @focus is not the current focus widget, and is focusable, sets @@ -1606,7 +1606,7 @@ _gtk_window_internal_set_focus (GtkWindow *window, /** * gtk_window_set_default: * @window: a #GtkWindow - * @default_widget: widget to be the default, or %NULL to unset the + * @default_widget: (allow-none): widget to be the default, or %NULL to unset the * default widget for the toplevel. * * The default widget is the widget that's activated when the user @@ -1960,9 +1960,9 @@ gtk_window_activate_focus (GtkWindow *window) * Note that this is the widget that would have the focus * if the toplevel window focused; if the toplevel window * is not focused then GTK_WIDGET_HAS_FOCUS (widget) will - * not be %TRUE for the widget. - * - * Return value: the currently focused widget, or %NULL if there is none. + * not be %TRUE for the widget. + * + * Return value: (transfer none): the currently focused widget, or %NULL if there is none. **/ GtkWidget * gtk_window_get_focus (GtkWindow *window) @@ -2071,8 +2071,8 @@ gtk_window_get_modal (GtkWindow *window) * callbacks that might destroy the widgets, you must call * g_list_foreach (result, (GFunc)g_object_ref, NULL) first, and * then unref all the widgets afterwards. - * - * Return value: list of toplevel widgets + * + * Return value: (element-type GtkWidget) (transfer container): list of toplevel widgets **/ GList* gtk_window_list_toplevels (void) @@ -2242,7 +2242,7 @@ gtk_window_unset_transient_for (GtkWindow *window) /** * gtk_window_set_transient_for: * @window: a #GtkWindow - * @parent: parent window + * @parent: (allow-none): parent window * * Dialog windows should be set transient for the main application * window they were spawned from. This allows