summaryrefslogtreecommitdiff
path: root/migrate
diff options
context:
space:
mode:
authorYves-Alexis Perez <corsac@debian.org>2011-04-21 16:50:16 +0200
committerNick Schermer <nick@xfce.org>2011-04-21 16:50:55 +0200
commit3603b4f159e3b2ef8f9c31efd8eb5bd3e895991f (patch)
tree41cc3fb735c0f204802e967a560bf7ef765229d5 /migrate
parentb35df1d313cc593f5b1acb63670bc6e9a9d4802a (diff)
Migrate: Fix 4.6 transparency migration (bug #7523).
Diffstat (limited to 'migrate')
-rw-r--r--migrate/migrate-46.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/migrate/migrate-46.c b/migrate/migrate-46.c
index 2f9ebcc1..467b5546 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++;