Commit 565a3af6 authored by Christian Hergert's avatar Christian Hergert
Browse files

greeter: fix module-name when greeter plugin is used

We don't need to keep the "greeter" plugin module-name around for filters
added internally to the plugin. Just ignore it and fallback in that case.
parent 1a28d404
......@@ -130,6 +130,7 @@ ide_greeter_workspace_actions_open (GSimpleAction *action,
for (; list != NULL; list = list->next)
PeasPluginInfo *plugin_info = list->data;
const gchar *module_name = peas_plugin_info_get_module_name (plugin_info);
GtkFileFilter *filter;
const gchar *pattern;
const gchar *content_type;
......@@ -159,10 +160,9 @@ ide_greeter_workspace_actions_open (GSimpleAction *action,
filter = gtk_file_filter_new ();
gtk_file_filter_set_name (filter, name);
g_object_set_data_full (G_OBJECT (filter),
g_strdup (peas_plugin_info_get_module_name (plugin_info)),
if (!ide_str_equal0 (module_name, "greeter"))
g_object_set_data_full (G_OBJECT (filter), "MODULE_NAME", g_strdup (module_name), g_free);
for (i = 0; patterns [i] != NULL; i++)
......@@ -260,7 +260,10 @@ gbp_buildsystem_workbench_addin_load_project_async (IdeWorkbenchAddin *addin,
directory = ide_project_info_get_directory (project_info);
g_assert (G_IS_FILE (directory));
/* Get the hint, but ignore if it is "greeter" */
hint = ide_project_info_get_build_system_hint (project_info);
if (ide_str_equal0 (hint, "greeter"))
hint = NULL;
discover_async (self,
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