[gnome-session/wip/cleanups: 4/15] Use gnome-session-quit to log out from the fail whale



commit 482f1fefbbd73685d76356b9dff17f6abea9f004
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Nov 11 12:11:29 2012 -0500

    Use gnome-session-quit to log out from the fail whale
    
    This is in preparation of turning it into a separate binary.

 gnome-session/gsm-fail-whale-dialog.c |   12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)
---
diff --git a/gnome-session/gsm-fail-whale-dialog.c b/gnome-session/gsm-fail-whale-dialog.c
index e9e88ad..3e603e2 100644
--- a/gnome-session/gsm-fail-whale-dialog.c
+++ b/gnome-session/gsm-fail-whale-dialog.c
@@ -30,7 +30,6 @@
 #include "gsm-fail-whale-dialog.h"
 
 #include "gsm-icon-names.h"
-#include "gsm-manager.h"
 #include "gsm-shell-extensions.h"
 
 #define GSM_FAIL_WHALE_DIALOG_GET_PRIVATE(o)                                \
@@ -251,15 +250,10 @@ static void
 on_logout_clicked (GtkWidget          *button,
                    GsmFailWhaleDialog *fail_dialog)
 {
-        if (fail_dialog->priv->debug_mode) {
-                gtk_main_quit ();
-        } else {
-                gsm_manager_logout (gsm_manager_get (),
-                                    GSM_MANAGER_LOGOUT_MODE_FORCE,
-                                    NULL);
-
-                gtk_widget_destroy (GTK_WIDGET (fail_dialog));
+        if (!fail_dialog->priv->debug_mode) {
+                g_spawn_command_line_async ("gnome-session-quit --force");
         }
+        gtk_main_quit ();
 }
 
 static GtkIconSize



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