]> Pileus Git - ~andy/gtk/commitdiff
Clarify documentation about application vs window lifecycle
authorMatthias Clasen <mclasen@redhat.com>
Tue, 25 Jan 2011 03:20:35 +0000 (22:20 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 25 Jan 2011 03:20:35 +0000 (22:20 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=639931

gtk/gtkapplication.c
gtk/gtkwindow.c

index 701a0e8119abbd662a41f1c938193aab340f0ff1..cf57bf28f5202d6de11b7bc1979e7e65603da75c 100644 (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
index 91b404cee453a44ee58098fad176bf67ac76e3a3..a461129a4ef121df2b1775cf231b0711b7d3da5d 100644 (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
    */