[Xfce4-commits] <xfce4-panel:master> Migrate: Fix 4.6 transparency migration (bug #7523).
Nick Schermer
noreply at xfce.org
Thu Apr 21 17:42:01 CEST 2011
Updating branch refs/heads/master
to 3603b4f159e3b2ef8f9c31efd8eb5bd3e895991f (commit)
from b35df1d313cc593f5b1acb63670bc6e9a9d4802a (commit)
commit 3603b4f159e3b2ef8f9c31efd8eb5bd3e895991f
Author: Yves-Alexis Perez <corsac at debian.org>
Date: Thu Apr 21 16:50:16 2011 +0200
Migrate: Fix 4.6 transparency migration (bug #7523).
migrate/migrate-46.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/migrate/migrate-46.c b/migrate/migrate-46.c
index 2f9ebcc..467b554 100644
--- a/migrate/migrate-46.c
+++ b/migrate/migrate-46.c
@@ -844,11 +844,11 @@ migrate_46_end_element_handler (GMarkupParseContext *context,
/* set transparency */
g_snprintf (prop, sizeof (prop), "/panels/panel-%u/leave-opacity", parser->panel_id_counter);
- xfconf_channel_set_uint (parser->channel, prop, parser->panel_transparency);
+ xfconf_channel_set_uint (parser->channel, prop, 100 - parser->panel_transparency);
g_snprintf (prop, sizeof (prop), "/panels/panel-%u/enter-opacity", parser->panel_id_counter);
xfconf_channel_set_uint (parser->channel, prop, parser->panel_activetrans ?
- parser->panel_transparency : 100);
+ 100 - parser->panel_transparency : 100);
/* prepare for the next panel */
parser->panel_id_counter++;
More information about the Xfce4-commits
mailing list