[Xfce4-commits] <xfce4-session:master> Don't save settings dialogs when saving session (Bug #5113).

Jérôme Guelfucci noreply at xfce.org
Wed Feb 10 00:10:02 CET 2010


Updating branch refs/heads/master
         to e27ac1f436267aa0431df7802db11a5569831135 (commit)
       from b99dba85884ee8c1eaabb4f92326bdb59c0f8d37 (commit)

commit e27ac1f436267aa0431df7802db11a5569831135
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date:   Wed Feb 10 00:14:18 2010 +0100

    Don't save settings dialogs when saving session (Bug #5113).
    
    For this, we set a fake SM id for each dialog. This needs to be added in
    every settings dialog (Thunar, xfdesktop, xfce4-panel, xfwm4,
    xfce4-notifyd, exo-preferred-applications...).

 settings/main.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/settings/main.c b/settings/main.c
index a1d016d..09ab802 100644
--- a/settings/main.c
+++ b/settings/main.c
@@ -135,6 +135,10 @@ main(int argc,
         g_signal_connect(dialog, "delete-event", G_CALLBACK(gtk_main_quit), NULL);
 
         gtk_widget_show(dialog);
+
+        /* To prevent the settings dialog to be saved in the session */
+        gdk_set_sm_client_id ("FAKE ID");
+
         gtk_main();
     } else {
         GtkWidget *plug, *plug_child;



More information about the Xfce4-commits mailing list