[Xfce4-commits] [apps/xfdashboard] 02/05: Do not restart application via session management if application object was disposed which is the usual and clean way and not a crash which could require a restart.
noreply at xfce.org
noreply at xfce.org
Tue Aug 2 09:03:08 CEST 2016
This is an automated email from the git hooks/post-receive script.
nomad pushed a commit to branch master
in repository apps/xfdashboard.
commit c08d8c52137b66958a257b72b5c591d4f28f8aed
Author: Stephan Haller <nomad at froevel.de>
Date: Fri Jul 29 09:24:40 2016 +0200
Do not restart application via session management if application object was disposed which is the usual and clean way and not a crash which could require a restart.
---
libxfdashboard/application.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/libxfdashboard/application.c b/libxfdashboard/application.c
index 39bc1ea..69e3b90 100644
--- a/libxfdashboard/application.c
+++ b/libxfdashboard/application.c
@@ -993,6 +993,15 @@ static void _xfdashboard_application_dispose(GObject *inObject)
/* Shutdown session management */
if(priv->sessionManagementClient)
{
+ /* This instance looks like to be disposed normally and not like a crash
+ * so set the restart style at session management to something that it
+ * will not restart itself but shutting down.
+ */
+ if(XFCE_IS_SM_CLIENT(priv->sessionManagementClient))
+ {
+ xfce_sm_client_set_restart_style(priv->sessionManagementClient, XFCE_SM_CLIENT_RESTART_NORMAL);
+ }
+
priv->sessionManagementClient=NULL;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list