[devhelp] app: ensure all windows get destroyed when quitting



commit 644709a2cd0232c4c51802b0f61b72d5cc4ce499
Author: Aleksander Morgado <aleksander lanedo com>
Date:   Fri Jul 6 12:23:51 2012 +0200

    app: ensure all windows get destroyed when quitting

 src/dh-app.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/dh-app.c b/src/dh-app.c
index d9d63e2..12f3165 100644
--- a/src/dh-app.c
+++ b/src/dh-app.c
@@ -187,9 +187,7 @@ quit_cb (GSimpleAction *action,
         GList *l;
 
         /* Remove all windows registered in the application */
-        for (l = gtk_application_get_windows (GTK_APPLICATION (self));
-             l;
-             l = g_list_next (l)) {
+        while ((l = gtk_application_get_windows (GTK_APPLICATION (self)))) {
                 gtk_application_remove_window (GTK_APPLICATION (self),
                                                GTK_WINDOW (l->data));
         }



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