summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Dywan <christian@lanedo.com>2010-03-08 21:22:54 -0500
committerMatthias Clasen <mclasen@redhat.com>2010-03-08 21:22:54 -0500
commitbc284541a95c97dbcc92b2f50958d97952fa272d (patch)
tree828d480e6d0d18bd6af3bfac6aaee9a3333946eb
parent9c8dbc292f9c2f2c216e33f448b32105d8401cf8 (diff)
downloadgdk-pixbuf-bc284541a95c97dbcc92b2f50958d97952fa272d.tar.gz
Document the use of NULL in gtk_window_set_transient_for
This fixes bug 611319.
-rw-r--r--gtk/gtkwindow.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 778c47110..33d5dab5e 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -2268,7 +2268,7 @@ gtk_window_unset_transient_for (GtkWindow *window)
/**
* gtk_window_set_transient_for:
* @window: a #GtkWindow
- * @parent: (allow-none): parent window
+ * @parent: (allow-none): parent window, or %NULL
*
* Dialog windows should be set transient for the main application
* window they were spawned from. This allows <link
@@ -2278,12 +2278,13 @@ gtk_window_unset_transient_for (GtkWindow *window)
* functions in GTK+ will sometimes call
* gtk_window_set_transient_for() on your behalf.
*
- * On Windows, this function puts the child window on top of the parent,
+ * Passing %NULL for @parent unsets the current transient window.
+ *
+ * On Windows, this function puts the child window on top of the parent,
* much as the window manager would have done on X.
- *
- **/
-void
-gtk_window_set_transient_for (GtkWindow *window,
+ */
+void
+gtk_window_set_transient_for (GtkWindow *window,
GtkWindow *parent)
{
GtkWindowPrivate *priv;