Commit af517f93 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

changed GimpMenusDeleteFunc to take a PlugInProcDef* instead of a const

2004-04-25  Michael Natterer  <mitch@gimp.org>

	* app/core/gimp.[ch]: changed GimpMenusDeleteFunc to take
	a PlugInProcDef* instead of a const gchar*.

	* app/plug-in/plug-ins.c
	* app/gui/gui-vtable.c
	* app/gui/plug-in-menus.[ch]: changed accordingly.
parent f49c37d4
2004-04-25 Michael Natterer <mitch@gimp.org>
* app/core/gimp.[ch]: changed GimpMenusDeleteFunc to take
a PlugInProcDef* instead of a const gchar*.
* app/plug-in/plug-ins.c
* app/gui/gui-vtable.c
* app/gui/plug-in-menus.[ch]: changed accordingly.
2004-04-25 Sven Neumann <sven@gimp.org>
* plug-ins/common/AlienMap2.c: some UI improvements based on a
......
......@@ -1086,14 +1086,14 @@ gimp_menus_create_entry (Gimp *gimp,
}
void
gimp_menus_delete_entry (Gimp *gimp,
const gchar *menu_path)
gimp_menus_delete_entry (Gimp *gimp,
PlugInProcDef *proc_def)
{
g_return_if_fail (GIMP_IS_GIMP (gimp));
g_return_if_fail (menu_path != NULL);
g_return_if_fail (proc_def != NULL);
if (gimp->gui_menus_delete_func)
gimp->gui_menus_delete_func (gimp, menu_path);
gimp->gui_menus_delete_func (gimp, proc_def);
}
GimpProgress *
......
......@@ -40,7 +40,7 @@ typedef void (* GimpMenusCreateFunc) (Gimp *gimp,
const gchar *locale_domain,
const gchar *help_domain);
typedef void (* GimpMenusDeleteFunc) (Gimp *gimp,
const gchar *menu_path);
PlugInProcDef *proc_def);
typedef GimpProgress * (* GimpProgressStartFunc) (Gimp *gimp,
gint gdisp_ID,
const gchar *message,
......@@ -249,7 +249,7 @@ void gimp_menus_create_entry (Gimp *gimp,
const gchar *locale_domain,
const gchar *help_domain);
void gimp_menus_delete_entry (Gimp *gimp,
const gchar *menu_path);
PlugInProcDef *proc_def);
GimpProgress *gimp_start_progress (Gimp *gimp,
gint gdisp_ID,
const gchar *message,
......
......@@ -71,7 +71,7 @@ static void gui_menus_create_entry (Gimp *gimp,
const gchar *locale_domain,
const gchar *help_domain);
static void gui_menus_delete_entry (Gimp *gimp,
const gchar *menu_path);
PlugInProcDef *proc_def);
static GimpProgress * gui_start_progress (Gimp *gimp,
gint gdisp_ID,
const gchar *message,
......@@ -226,10 +226,10 @@ gui_menus_create_entry (Gimp *gimp,
}
static void
gui_menus_delete_entry (Gimp *gimp,
const gchar *menu_path)
gui_menus_delete_entry (Gimp *gimp,
PlugInProcDef *proc_def)
{
plug_in_menus_delete_entry (menu_path);
plug_in_menus_delete_entry (proc_def);
}
static GimpProgress *
......
......@@ -227,16 +227,17 @@ plug_in_menus_create_entry (GimpItemFactory *item_factory,
}
void
plug_in_menus_delete_entry (const gchar *menu_path)
plug_in_menus_delete_entry (PlugInProcDef *proc_def)
{
GList *list;
gchar *path;
g_return_if_fail (menu_path != NULL);
g_return_if_fail (proc_def != NULL);
g_return_if_fail (proc_def->menu_path != NULL);
path = gimp_strip_uline (menu_path);
path = gimp_strip_uline (proc_def->menu_path);
for (list = gimp_item_factories_from_path (menu_path);
for (list = gimp_item_factories_from_path (proc_def->menu_path);
list;
list = g_list_next (list))
{
......
......@@ -30,7 +30,7 @@ void plug_in_menus_create_entry (GimpItemFactory *item_factory,
PlugInProcDef *proc_def,
const gchar *locale_domain,
const gchar *help_domain);
void plug_in_menus_delete_entry (const gchar *menu_path);
void plug_in_menus_delete_entry (PlugInProcDef *proc_def);
void plug_in_menus_update (GimpItemFactory *item_factory,
GimpImageType type);
......
......@@ -227,16 +227,17 @@ plug_in_menus_create_entry (GimpItemFactory *item_factory,
}
void
plug_in_menus_delete_entry (const gchar *menu_path)
plug_in_menus_delete_entry (PlugInProcDef *proc_def)
{
GList *list;
gchar *path;
g_return_if_fail (menu_path != NULL);
g_return_if_fail (proc_def != NULL);
g_return_if_fail (proc_def->menu_path != NULL);
path = gimp_strip_uline (menu_path);
path = gimp_strip_uline (proc_def->menu_path);
for (list = gimp_item_factories_from_path (menu_path);
for (list = gimp_item_factories_from_path (proc_def->menu_path);
list;
list = g_list_next (list))
{
......
......@@ -30,7 +30,7 @@ void plug_in_menus_create_entry (GimpItemFactory *item_factory,
PlugInProcDef *proc_def,
const gchar *locale_domain,
const gchar *help_domain);
void plug_in_menus_delete_entry (const gchar *menu_path);
void plug_in_menus_delete_entry (PlugInProcDef *proc_def);
void plug_in_menus_update (GimpItemFactory *item_factory,
GimpImageType type);
......
......@@ -622,7 +622,7 @@ plug_ins_temp_proc_def_remove (Gimp *gimp,
if (! gimp->no_interface)
{
if (proc_def->menu_path)
gimp_menus_delete_entry (gimp, proc_def->menu_path);
gimp_menus_delete_entry (gimp, proc_def);
}
/* Unregister the procedural database entry */
......
......@@ -622,7 +622,7 @@ plug_ins_temp_proc_def_remove (Gimp *gimp,
if (! gimp->no_interface)
{
if (proc_def->menu_path)
gimp_menus_delete_entry (gimp, proc_def->menu_path);
gimp_menus_delete_entry (gimp, proc_def);
}
/* Unregister the procedural database entry */
......
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