[Xfce4-commits] <xfce4-settings:xrandr-display-settings> remove any leftover apply property at startup

Jérôme Guelfucci noreply at xfce.org
Sun Jun 13 18:46:03 CEST 2010


Updating branch refs/heads/xrandr-display-settings
         to 731e3de0b71213d4b807864f5d4cf191293f0025 (commit)
       from 814d3d268227db0de2bf56f59a0318b854d88561 (commit)

commit 731e3de0b71213d4b807864f5d4cf191293f0025
Author: Lionel Le Folgoc <mrpouit at gmail.com>
Date:   Sun Jun 13 16:44:36 2010 +0200

    remove any leftover apply property at startup
    
    If such a property already exists, xfce4-settings-helper will never be notified
    when xfce4-display-settings makes a config change. So let xfce4-settings-helper
    reset it at startup.

 xfce4-settings-helper/displays.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/xfce4-settings-helper/displays.c b/xfce4-settings-helper/displays.c
index b4d9090..4b4fbef 100644
--- a/xfce4-settings-helper/displays.c
+++ b/xfce4-settings-helper/displays.c
@@ -117,7 +117,10 @@ xfce_displays_helper_init (XfceDisplaysHelper *helper)
         {
             /* open the channel */
             helper->channel = xfconf_channel_new ("displays");
-        
+
+            /* remove any leftover apply property before setting the monitor */
+            xfconf_channel_reset_property (helper->channel, "/Schemes/Apply", FALSE);
+
             /* monitor channel changes */
             g_signal_connect (G_OBJECT (helper->channel), "property-changed", 
                               G_CALLBACK (xfce_displays_helper_channel_property_changed), helper);



More information about the Xfce4-commits mailing list