56
xubuntu_migrate_tasklist (GHashTable *plugins,
57
XfconfChannel *channel)
62
gint plugin_id, tsk_index, sep_index;
64
/* First, check that plugin-2 and plugin-3 still match the default xubuntu
66
value = g_hash_table_lookup (plugins, "/plugins/plugin-2");
67
if (!G_VALUE_HOLDS_STRING (value)
68
|| g_strcmp0 (g_value_get_string (value), "tasklist") != 0)
70
value = g_hash_table_lookup (plugins, "/plugins/plugin-3");
71
if (!G_VALUE_HOLDS_STRING (value)
72
|| g_strcmp0 (g_value_get_string (value), "separator") != 0)
75
/* Then, check that plugin-2 (tasklist) and plugin-3 (separator) are on the
76
* first same panel as expected */
77
array = xfconf_channel_get_arrayv (XFCONF_CHANNEL (channel), "/panels/panel-0/plugin-ids");
81
tsk_index = sep_index = 0;
82
for (j = 0; j < array->len; j++)
84
/* get the plugin id */
85
value = g_ptr_array_index (array, j);
89
plugin_id = g_value_get_int (value);
92
else if (plugin_id == 3)
95
xfconf_array_free (array);
99
|| sep_index != tsk_index + 1)
102
/* Apparently this is the default xubuntu layout, so expand the
103
* separator to workaround non-expanding tasklist in 4.10 */
104
xfconf_channel_set_bool (XFCONF_CHANNEL (channel), "/plugins/plugin-3/expand", TRUE);
56
110
migrate_config_session_menu (gpointer key,
188
242
/* migrate old action plugins */
189
243
g_hash_table_foreach (plugins, migrate_config_action_48, channel);
245
/* hack for Xubuntu: expand the separator next to the tasklist */
246
xubuntu_migrate_tasklist (plugins, channel);
192
249
/* migrate horizontal to mode property */