summaryrefslogtreecommitdiff
path: root/xfce4-tips/main.c
diff options
context:
space:
mode:
authorBenedikt Meurer <benny@xfce.org>2006-08-12 16:11:41 +0000
committerBenedikt Meurer <benny@xfce.org>2006-08-12 16:11:41 +0000
commit71be0325d405b50628bae367a0f90bc43c10ac53 (patch)
treeb6d9924dd4d5735dde12d02d90f1e21ab9f66db0 /xfce4-tips/main.c
parentec56a9f74ebfc344662f31a7563444aa9bde15c3 (diff)
downloadxfce4-session-71be0325d405b50628bae367a0f90bc43c10ac53.tar.gz
2006-08-12 Benedikt Meurer <benny@xfce.org>
* xfce4-tips/main.c(main): Fake a session id, so the session manager will not save the tips as part of the session. Bug #1089. (Old svn revision: 22725)
Diffstat (limited to 'xfce4-tips/main.c')
-rw-r--r--xfce4-tips/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xfce4-tips/main.c b/xfce4-tips/main.c
index 5a9e7244..09618793 100644
--- a/xfce4-tips/main.c
+++ b/xfce4-tips/main.c
@@ -155,6 +155,9 @@ main (int argc, char **argv)
gtk_init (&argc, &argv);
+ /* fake a SM client id, so the session manager does not restart us */
+ gdk_set_sm_client_id ("FAKED CLIENTID");
+
dlg = xfce_titled_dialog_new_with_buttons (_("Tips and Tricks"), NULL,
GTK_DIALOG_NO_SEPARATOR,
NULL);