diff options
author | Jérôme Guelfucci <jeromeg@xfce.org> | 2010-02-10 00:14:18 +0100 |
---|---|---|
committer | Jérôme Guelfucci <jeromeg@xfce.org> | 2010-02-10 00:14:18 +0100 |
commit | e27ac1f436267aa0431df7802db11a5569831135 (patch) | |
tree | 81a1576ae9a1c522d97b41035b35111be1d0a19a | |
parent | b99dba85884ee8c1eaabb4f92326bdb59c0f8d37 (diff) | |
download | xfce4-session-e27ac1f436267aa0431df7802db11a5569831135.tar.gz |
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...).
-rw-r--r-- | settings/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/settings/main.c b/settings/main.c index a1d016dc..09ab8020 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; |