[gnome-session] [gsm] Honour the SmRestartNever SmRestartStyleHint
- From: Lucas Almeida Rocha <lucasr src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-session] [gsm] Honour the SmRestartNever SmRestartStyleHint
- Date: Tue, 14 Jul 2009 23:48:33 +0000 (UTC)
commit a26ad805370ff9b84e4c3c954985bd10264fa97a
Author: Caolan McNamara <caolanm redhat com>
Date: Wed Jul 15 00:46:33 2009 +0100
[gsm] Honour the SmRestartNever SmRestartStyleHint
http://bugzilla.gnome.org/show_bug.cgi?id=580411
gnome-session/gsm-xsmp-client.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gnome-session/gsm-xsmp-client.c b/gnome-session/gsm-xsmp-client.c
index 15c1464..750daa6 100644
--- a/gnome-session/gsm-xsmp-client.c
+++ b/gnome-session/gsm-xsmp-client.c
@@ -627,10 +627,15 @@ create_client_key_file (GsmClient *client,
return keyfile;
}
+static GsmClientRestartStyle
+xsmp_get_restart_style_hint (GsmClient *client);
+
static GKeyFile *
xsmp_save (GsmClient *client,
GError **error)
{
+ GsmClientRestartStyle restart_style;
+
GKeyFile *keyfile = NULL;
char *desktop_file_path = NULL;
char *exec_program = NULL;
@@ -643,6 +648,11 @@ xsmp_save (GsmClient *client,
local_error = NULL;
+ restart_style = xsmp_get_restart_style_hint (client);
+ if (restart_style == GSM_CLIENT_RESTART_NEVER) {
+ goto out;
+ }
+
exec_program = xsmp_get_restart_command (client);
if (!exec_program) {
goto out;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]