Commit 9942c3ce authored by Sean Davis's avatar Sean Davis 🕶

Fix adding known legacy items to Xfconf

parent c217b77a
Pipeline #1073 passed with stages
in 4 minutes and 43 seconds
......@@ -523,7 +523,7 @@ sn_config_set_property (GObject *object,
tmp = g_ptr_array_index (array, i);
g_assert (G_VALUE_HOLDS_STRING (tmp));
name = g_value_dup_string (tmp);
config->known_items = g_list_append (config->known_legacy_items, name);
config->known_legacy_items = g_list_append (config->known_legacy_items, name);
}
}
g_signal_emit (G_OBJECT (config), sn_config_signals[ITEM_LIST_CHANGED], 0);
......
......@@ -243,6 +243,12 @@ sn_plugin_item_added (SnPlugin *plugin,
gtk_widget_show (button);
}
void
sn_plugin_legacy_item_added (SnPlugin *plugin,
const gchar *name)
{
sn_config_add_known_legacy_item (plugin->config, name);
}
static void
......
......@@ -77,6 +77,9 @@ GType sn_plugin_get_type (void) G_GNUC_CON
void sn_plugin_register_type (XfcePanelTypeModule *panel_type_module);
void sn_plugin_legacy_item_added (SnPlugin *plugin,
const gchar *name);
G_END_DECLS
#endif /* !__SN_PLUGIN_H__ */
......@@ -632,7 +632,7 @@ systray_plugin_names_get_hidden (SnPlugin *plugin,
{
/* add the new name */
plugin->names_ordered = g_slist_prepend (plugin->names_ordered, g_strdup (name));
g_object_notify (G_OBJECT (plugin), "known-legacy-items");
sn_plugin_legacy_item_added (plugin, name);
/* do not hide the icon */
return FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment