[Xfce4-commits] <libxfce4ui:master> Only save startup-notify if enabled.
Nick Schermer
noreply at xfce.org
Wed Nov 3 17:28:02 CET 2010
Updating branch refs/heads/master
to ae19c10861df745c78de872573c45dfb67adc6db (commit)
from c2ff4990dd3afb837c30d1724dec68c6de5b9ada (commit)
commit ae19c10861df745c78de872573c45dfb67adc6db
Author: Nick Schermer <nick at xfce.org>
Date: Wed Nov 3 17:20:01 2010 +0100
Only save startup-notify if enabled.
libxfce4kbd-private/xfce-shortcuts-provider.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/libxfce4kbd-private/xfce-shortcuts-provider.c b/libxfce4kbd-private/xfce-shortcuts-provider.c
index 054cf40..b2522ef 100644
--- a/libxfce4kbd-private/xfce-shortcuts-provider.c
+++ b/libxfce4kbd-private/xfce-shortcuts-provider.c
@@ -615,9 +615,12 @@ xfce_shortcuts_provider_set_shortcut (XfceShortcutsProvider *provider,
if (xfconf_channel_has_property (provider->priv->channel, property))
xfconf_channel_reset_property (provider->priv->channel, property, TRUE);
- property2 = g_strconcat (property, "/startup-notify", NULL);
- xfconf_channel_set_bool (provider->priv->channel, property2, snotify);
- g_free (property2);
+ if (snotify)
+ {
+ property2 = g_strconcat (property, "/startup-notify", NULL);
+ xfconf_channel_set_bool (provider->priv->channel, property2, snotify);
+ g_free (property2);
+ }
xfconf_channel_set_string (provider->priv->channel, property, command);
More information about the Xfce4-commits
mailing list