[gnome-session] gsm-shell: make sure dialog_is_open is set to false when appropriate



commit 1c21124d3d4271eb1b8bd9be4ec297f1e4ec49d5
Author: Ray Strode <rstrode redhat com>
Date:   Wed Mar 9 15:14:09 2016 -0500

    gsm-shell: make sure dialog_is_open is set to false when appropriate

 gnome-session/gsm-shell.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gnome-session/gsm-shell.c b/gnome-session/gsm-shell.c
index ca2e291..04cfa2f 100644
--- a/gnome-session/gsm-shell.c
+++ b/gnome-session/gsm-shell.c
@@ -358,6 +358,8 @@ on_end_session_dialog_dbus_signal (GDBusProxy *proxy,
         if (signal_index == -1)
                 return;
 
+        shell->priv->dialog_is_open = FALSE;
+
         if (shell->priv->update_idle_id != 0) {
                 g_source_remove (shell->priv->update_idle_id);
                 shell->priv->update_idle_id = 0;
@@ -495,6 +497,8 @@ gsm_shell_close_end_session_dialog (GsmShell *shell)
         if (!shell->priv->end_session_dialog_proxy)
                 return;
 
+        shell->priv->dialog_is_open = FALSE;
+
         g_dbus_proxy_call (shell->priv->end_session_dialog_proxy,
                            "Close",
                            NULL,


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