[gtk+] Fix the gtk_application_end_session implementation
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Fix the gtk_application_end_session implementation
- Date: Sun, 8 Jan 2012 07:17:21 +0000 (UTC)
commit f3533e4fc2d31e346d910d165c6ba559cce6c6c1
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Jan 8 02:16:26 2012 -0500
Fix the gtk_application_end_session implementation
We were passing the wrong flags, causing the meaning of
the request_confirmation parameter to be inverted.
gtk/gtkapplication.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkapplication.c b/gtk/gtkapplication.c
index a31cf59..4331314 100644
--- a/gtk/gtkapplication.c
+++ b/gtk/gtkapplication.c
@@ -1079,6 +1079,7 @@ client_proxy_signal (GDBusProxy *proxy,
else if (strcmp (signal_name, "EndSession") == 0)
{
g_debug ("Received EndSession");
+ app->priv->quit_requested = TRUE;
gtk_application_quit_response (app, TRUE, NULL);
unregister_client (app);
g_signal_emit (app, gtk_application_signals[QUIT], 0);
@@ -1438,7 +1439,7 @@ gtk_application_end_session (GtkApplication *application,
case GTK_APPLICATION_LOGOUT:
g_dbus_proxy_call (application->priv->sm_proxy,
"Logout",
- g_variant_new ("(u)", request_confirmation),
+ g_variant_new ("(u)", request_confirmation ? 0 : 1),
G_DBUS_CALL_FLAGS_NONE,
G_MAXINT,
NULL, NULL, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]