Clarify documentation about application vs window lifecycle

https://bugzilla.gnome.org/show_bug.cgi?id=639931
This commit is contained in:
Matthias Clasen
2011-01-24 22:20:35 -05:00
parent 9be8bbc9a0
commit 7db4bee4b6
2 changed files with 14 additions and 4 deletions

View File

@@ -192,6 +192,13 @@ gtk_application_new (const gchar *application_id,
* This call is equivalent to setting the #GtkWindow:application
* property of @window to @application.
*
* Normally, the connection between the application and the window
* will remain until the window is destroyed, but you can explicitly
* remove it with gtk_application_remove_window().
*
* GTK+ will keep the application running as long as it has
* any windows.
*
* Since: 3.0
**/
void

View File

@@ -943,15 +943,18 @@ gtk_window_class_init (GtkWindowClass *klass)
0, G_MAXINT, 16, GTK_PARAM_READWRITE));
/* Signals
*/
/**
* GtkWindow:application:
*
* The #GtkApplication associated with the window.
*
* The application will be kept alive for at least as long as the
* window is open.
* The application will be kept alive for at least as long as it
* has any windows associated with it (see g_application_hold()
* for a way to keep it alive without windows).
*
* Normally, the connection between the application and the window
* will remain until the window is destroyed, but you can explicitly
* remove it by setting the ::application property to %NULL.
*
* Since: 3.0
*/