Author: benny
Date: 2006-08-12 16:11:41 +0000 (Sat, 12 Aug 2006)
New Revision: 22725

Modified:
   xfce4-session/trunk/ChangeLog
   xfce4-session/trunk/xfce4-tips/main.c
Log:
2006-08-12      Benedikt Meurer <[EMAIL PROTECTED]>

        * 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.




Modified: xfce4-session/trunk/ChangeLog
===================================================================
--- xfce4-session/trunk/ChangeLog       2006-08-12 16:04:34 UTC (rev 22724)
+++ xfce4-session/trunk/ChangeLog       2006-08-12 16:11:41 UTC (rev 22725)
@@ -1,3 +1,8 @@
+2006-08-12     Benedikt Meurer <[EMAIL PROTECTED]>
+
+       * 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.
+
 2006-07-16     Benedikt Meurer <[EMAIL PROTECTED]>
 
        * engines/balou/config.c, xfce4-session/xfsm-legacy.c: Apply patch

Modified: xfce4-session/trunk/xfce4-tips/main.c
===================================================================
--- xfce4-session/trunk/xfce4-tips/main.c       2006-08-12 16:04:34 UTC (rev 
22724)
+++ xfce4-session/trunk/xfce4-tips/main.c       2006-08-12 16:11:41 UTC (rev 
22725)
@@ -155,6 +155,9 @@
   
   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);

_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to