[epiphany] ephy-shell: use the new g_application_quit to quit
- From: Xan Lopez <xan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-shell: use the new g_application_quit to quit
- Date: Thu, 23 Feb 2012 13:00:08 +0000 (UTC)
commit 68c688dc70e8b00dec5756589c96f8c120f3b642
Author: Xan Lopez <xan igalia com>
Date: Thu Feb 23 13:59:53 2012 +0100
ephy-shell: use the new g_application_quit to quit
src/ephy-shell.c | 13 +------------
1 files changed, 1 insertions(+), 12 deletions(-)
---
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index c35cdd5..68da6cd 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[] = {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]