[gnome-flashback] libend-session-dialog: don't emit signals twice on cancel response



commit 1d314d5acf7fb1829546ef9a3ee874899ed90e7c
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Thu Oct 23 02:23:06 2014 +0300

    libend-session-dialog: don't emit signals twice on cancel response

 .../flashback-end-session-dialog.c                 |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gnome-flashback/libend-session-dialog/flashback-end-session-dialog.c 
b/gnome-flashback/libend-session-dialog/flashback-end-session-dialog.c
index dc79b57..d100dd0 100644
--- a/gnome-flashback/libend-session-dialog/flashback-end-session-dialog.c
+++ b/gnome-flashback/libend-session-dialog/flashback-end-session-dialog.c
@@ -37,12 +37,9 @@ inhibit_dialog_response (FlashbackInhibitDialog *dialog,
        int action;
 
        g_object_get (dialog, "action", &action, NULL);
-       flashback_inhibit_dialog_close (dialog);
 
        switch (response_id) {
        case FLASHBACK_RESPONSE_CANCEL:
-               dbus_end_session_dialog_emit_canceled (object);
-               dbus_end_session_dialog_emit_closed (object);
                break;
        case FLASHBACK_RESPONSE_ACCEPT:
                if (action == FLASHBACK_LOGOUT_ACTION_LOGOUT) {
@@ -65,6 +62,8 @@ inhibit_dialog_response (FlashbackInhibitDialog *dialog,
                g_assert_not_reached ();
                break;
        }
+
+       flashback_inhibit_dialog_close (dialog);
 }
 
 static void


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