Commit 7ed8c443 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

removed s/_/-/, proc names are already canonicalized.

2005-08-12  Michael Natterer  <mitch@gimp.org>

	* app/plug-in/plug-in-proc-def.c (plug_in_proc_def_get_help_id):
	removed s/_/-/, proc names are already canonicalized.
parent e1b6bb41
2005-08-12 Michael Natterer <mitch@gimp.org>
* app/plug-in/plug-in-proc-def.c (plug_in_proc_def_get_help_id):
removed s/_/-/, proc names are already canonicalized.
2005-08-10 Sven Neumann <sven@gimp.org>
* configure.in: bumped version to 2.3.4.
......
......@@ -277,28 +277,12 @@ gchar *
plug_in_proc_def_get_help_id (const PlugInProcDef *proc_def,
const gchar *help_domain)
{
gchar *help_id;
gchar *p;
g_return_val_if_fail (proc_def != NULL, NULL);
help_id = g_strdup (proc_def->db_info.name);
for (p = help_id; p && *p; p++)
if (*p == '_')
*p = '-';
if (help_domain)
{
gchar *domain_and_id;
domain_and_id = g_strconcat (help_domain, "?", help_id, NULL);
g_free (help_id);
return domain_and_id;
}
return g_strconcat (help_domain, "?", proc_def->db_info.name, NULL);
return help_id;
return g_strdup (proc_def->db_info.name);
}
gboolean
......
......@@ -277,28 +277,12 @@ gchar *
plug_in_proc_def_get_help_id (const PlugInProcDef *proc_def,
const gchar *help_domain)
{
gchar *help_id;
gchar *p;
g_return_val_if_fail (proc_def != NULL, NULL);
help_id = g_strdup (proc_def->db_info.name);
for (p = help_id; p && *p; p++)
if (*p == '_')
*p = '-';
if (help_domain)
{
gchar *domain_and_id;
domain_and_id = g_strconcat (help_domain, "?", help_id, NULL);
g_free (help_id);
return domain_and_id;
}
return g_strconcat (help_domain, "?", proc_def->db_info.name, NULL);
return help_id;
return g_strdup (proc_def->db_info.name);
}
gboolean
......
......@@ -277,28 +277,12 @@ gchar *
plug_in_proc_def_get_help_id (const PlugInProcDef *proc_def,
const gchar *help_domain)
{
gchar *help_id;
gchar *p;
g_return_val_if_fail (proc_def != NULL, NULL);
help_id = g_strdup (proc_def->db_info.name);
for (p = help_id; p && *p; p++)
if (*p == '_')
*p = '-';
if (help_domain)
{
gchar *domain_and_id;
domain_and_id = g_strconcat (help_domain, "?", help_id, NULL);
g_free (help_id);
return domain_and_id;
}
return g_strconcat (help_domain, "?", proc_def->db_info.name, NULL);
return help_id;
return g_strdup (proc_def->db_info.name);
}
gboolean
......
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