From 68c688dc70e8b00dec5756589c96f8c120f3b642 Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Thu, 23 Feb 2012 13:59:53 +0100 Subject: ephy-shell: use the new g_application_quit to quit --- src/ephy-shell.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/ephy-shell.c') diff --git a/src/ephy-shell.c b/src/ephy-shell.c index c35cdd5f3..68da6cdf8 100644 --- a/src/ephy-shell.c +++ b/src/ephy-shell.c @@ -247,18 +247,7 @@ quit_application (GSimpleAction *action, GVariant *parameter, gpointer user_data) { - GList *list, *next; - GtkWindow *win; - - list = gtk_application_get_windows (GTK_APPLICATION (g_application_get_default ())); - while (list) { - win = list->data; - next = list->next; - - gtk_widget_destroy (GTK_WIDGET (win)); - - list = next; - } + g_application_quit (g_application_get_default ()); } static GActionEntry app_entries[] = { -- cgit v1.2.3