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

One more Plug-In cleanup, it's still a mess...

2003-01-17  Michael Natterer  <mitch@gimp.org>

	One more Plug-In cleanup, it's still a mess...

	* app/plug-in/plug-in-def.[ch]: renamed "gboolean query" field
	to "needs_query". Added setters for all values. Added
	g_return_if_fail() stuff to all functions.

	* app/plug-in/plug-in-proc.[ch]: added plug_in_proc_def_new().
	Removed the "gboolean data_only" parameter from
	plug_in_proc_def_destroy() and renamed it to
	plug_in_proc_def_free().  Added plug_in_proc_def_get_progname()
	which handles GIMP_TEMPORARY procedures correctly.

	* app/plug-in/plug-in-rc.c: use the new stuff above.

	* app/plug-in/plug-in.[ch]: renamed field "user_data" to
	"plug_in_def" and added a comment that it is valid only during
	query() and init().  Use the new APIs above. Pass meaningful
	locale_domains and help_paths when adding temporary procedures
	(fixes Scrip-Fu menu translation the right way (TM)). Cleanup.

	* app/plug-in/plug-ins.[ch]: renamed plug_ins_def_add() to
	plug_ins_def_add_from_rc(). Renamed plug_ins_proc_def_[add|remove]()
	to plug_ins_temp_proc_def_[add|remove](). Added "Gimp" parameters
	to plug_ins_help_path() and plug_ins_locale_domain(). Removed
	unused pre-1.2 cruft "gimprc_prof_defs" and plug_ins_image_types().
	Reverse gimp->load_procs and gimp->save_procs after all procedures
	are registered. Removed Script-Fu translation hack. Reordered stuff.

	* app/gui/plug-in-menus.[ch]: changed accordingly. Named all
	public functions plug_in_menus_*(). Fixed Script-Fu menu translation
	by using plug_in_proc_def_get_progname(). Cleanup.

	* app/gui/file-open-menu.c
	* app/gui/file-save-menu.c: don't g_slist_reverse() gimp->load_procs
	and gimp->save_procs here.

	* app/gui/toolbox-menu.c
	* app/gui/image-menu.c
	* tools/pdbgen/pdb/help.pdb
	* tools/pdbgen/pdb/plug_in.pdb: changed accordingly.

	* app/pdb/help_cmds.c
	* app/pdb/plug_in_cmds.c: regenerated.

	Unrelated:

	* app/gui/image-menu.c
	* app/widgets/gimpitemfactory.c: s/"tearoff1"/"tearoff"/g. I don't
	get why the "1" was there. Minor cleanup.
parent c0a8755f
2003-01-17 Michael Natterer <mitch@gimp.org>
One more Plug-In cleanup, it's still a mess...
* app/plug-in/plug-in-def.[ch]: renamed "gboolean query" field
to "needs_query". Added setters for all values. Added
g_return_if_fail() stuff to all functions.
* app/plug-in/plug-in-proc.[ch]: added plug_in_proc_def_new().
Removed the "gboolean data_only" parameter from
plug_in_proc_def_destroy() and renamed it to
plug_in_proc_def_free(). Added plug_in_proc_def_get_progname()
which handles GIMP_TEMPORARY procedures correctly.
* app/plug-in/plug-in-rc.c: use the new stuff above.
* app/plug-in/plug-in.[ch]: renamed field "user_data" to
"plug_in_def" and added a comment that it is valid only during
query() and init(). Use the new APIs above. Pass meaningful
locale_domains and help_paths when adding temporary procedures
(fixes Scrip-Fu menu translation the right way (TM)). Cleanup.
* app/plug-in/plug-ins.[ch]: renamed plug_ins_def_add() to
plug_ins_def_add_from_rc(). Renamed plug_ins_proc_def_[add|remove]()
to plug_ins_temp_proc_def_[add|remove](). Added "Gimp" parameters
to plug_ins_help_path() and plug_ins_locale_domain(). Removed
unused pre-1.2 cruft "gimprc_prof_defs" and plug_ins_image_types().
Reverse gimp->load_procs and gimp->save_procs after all procedures
are registered. Removed Script-Fu translation hack. Reordered stuff.
* app/gui/plug-in-menus.[ch]: changed accordingly. Named all
public functions plug_in_menus_*(). Fixed Script-Fu menu translation
by using plug_in_proc_def_get_progname(). Cleanup.
* app/gui/file-open-menu.c
* app/gui/file-save-menu.c: don't g_slist_reverse() gimp->load_procs
and gimp->save_procs here.
* app/gui/toolbox-menu.c
* app/gui/image-menu.c
* tools/pdbgen/pdb/help.pdb
* tools/pdbgen/pdb/plug_in.pdb: changed accordingly.
* app/pdb/help_cmds.c
* app/pdb/plug_in_cmds.c: regenerated.
Unrelated:
* app/gui/image-menu.c
* app/widgets/gimpitemfactory.c: s/"tearoff1"/"tearoff"/g. I don't
get why the "1" was there. Minor cleanup.
2003-01-17 Maurits Rijk <lpeek.mrijk@consunet.nl>
 
* plug-ins/common/sinus.c: fixes #81966 plus some code clean-up.
......@@ -57,7 +109,7 @@
2003-01-14 Michael Natterer <mitch@gimp.org>
 
* app/widgets/gimptoolbox.c (gimp_toolbox_set_geometry): added
GDK_HINT_USER_POS again since it's set by gdk_window_parse_geometry()
GDK_HINT_USER_POS again since it's set by gtk_window_parse_geometry()
in gimpdialogfactory.c and we don't want to reset it.
 
2003-01-14 Michael Natterer <mitch@gimp.org>
......
......@@ -59,8 +59,6 @@ file_open_menu_setup (GimpItemFactory *factory)
PlugInProcDef *file_proc;
GSList *list;
factory->gimp->load_procs = g_slist_reverse (factory->gimp->load_procs);
for (list = factory->gimp->load_procs; list; list = g_slist_next (list))
{
gchar *basename;
......
......@@ -59,8 +59,6 @@ file_save_menu_setup (GimpItemFactory *factory)
PlugInProcDef *file_proc;
GSList *list;
factory->gimp->save_procs = g_slist_reverse (factory->gimp->save_procs);
for (list = factory->gimp->save_procs; list; list = g_slist_next (list))
{
gchar *basename;
......
......@@ -71,7 +71,7 @@ static void image_menu_background_changed (GimpContext *context,
GimpItemFactoryEntry image_menu_entries[] =
{
{ { "/tearoff1", NULL, gimp_item_factory_tearoff_callback, 0, "<Tearoff>" },
{ { "/tearoff", NULL, gimp_item_factory_tearoff_callback, 0, "<Tearoff>" },
NULL, NULL, NULL },
/* <Image>/File */
......@@ -794,7 +794,7 @@ GimpItemFactoryEntry image_menu_entries[] =
MENU_BRANCH (N_("/Filters/Text")),
MENU_BRANCH (N_("/Filters/Web")),
MENU_SEPARATOR ("/Filters/---INSERT"),
MENU_SEPARATOR ("/Filters/web-separator"),
MENU_BRANCH (N_("/Filters/Animation")),
MENU_BRANCH (N_("/Filters/Combine")),
......@@ -813,7 +813,7 @@ image_menu_setup (GimpItemFactory *factory)
if (GTK_IS_MENU_BAR (GTK_ITEM_FACTORY (factory)->widget))
{
gimp_item_factory_set_visible (GTK_ITEM_FACTORY (factory),
"/tearoff1", FALSE);
"/tearoff", FALSE);
gimp_item_factory_set_visible (GTK_ITEM_FACTORY (factory),
"/filters-separator", FALSE);
}
......@@ -908,7 +908,7 @@ image_menu_setup (GimpItemFactory *factory)
image_menu_background_changed (user_context, &bg, factory);
}
plug_in_make_menu (factory, proc_defs);
plug_in_menus_create (factory, proc_defs);
{
static gchar *rotate_plugins[] = { "Rotate 90 degrees",
......@@ -1032,7 +1032,7 @@ image_menu_setup (GimpItemFactory *factory)
* before the separator after "<Image>/Filters/Web"
*/
menu_item = gtk_item_factory_get_widget (GTK_ITEM_FACTORY (factory),
"/Filters/---INSERT");
"/Filters/web-separator");
if (menu_item && menu_item->parent && GTK_IS_MENU (menu_item->parent))
{
......
......@@ -61,7 +61,8 @@ static gchar * plug_in_escape_uline (const gchar *menu_path);
/* public functions */
void
plug_in_menus_init (GSList *plug_in_defs,
plug_in_menus_init (Gimp *gimp,
GSList *plug_in_defs,
const gchar *std_plugins_domain)
{
GSList *domains = NULL;
......@@ -86,7 +87,8 @@ plug_in_menus_init (GSList *plug_in_defs,
if (! plug_in_def->proc_defs)
continue;
locale_domain = plug_ins_locale_domain (plug_in_def->prog,
locale_domain = plug_ins_locale_domain (gimp,
plug_in_def->prog,
&locale_path);
for (list = domains; list; list = list->next)
......@@ -108,15 +110,14 @@ plug_in_menus_init (GSList *plug_in_defs,
}
void
plug_in_make_menu (GimpItemFactory *item_factory,
GSList *proc_defs)
plug_in_menus_create (GimpItemFactory *item_factory,
GSList *proc_defs)
{
PlugInProcDef *proc_def;
GSList *procs;
GTree *menu_entries;
g_return_if_fail (item_factory == NULL ||
GIMP_IS_ITEM_FACTORY (item_factory));
g_return_if_fail (GIMP_IS_ITEM_FACTORY (item_factory));
g_return_if_fail (proc_defs != NULL);
menu_entries = g_tree_new_full ((GCompareDataFunc) g_utf8_collate, NULL,
......@@ -133,15 +134,22 @@ plug_in_make_menu (GimpItemFactory *item_factory,
! proc_def->magics)
{
PlugInMenuEntry *menu_entry;
const gchar *progname;
const gchar *locale_domain;
const gchar *help_path;
progname = plug_in_proc_def_get_progname (proc_def);
locale_domain = plug_ins_locale_domain (proc_def->prog, NULL);
locale_domain = plug_ins_locale_domain (item_factory->gimp,
progname, NULL);
help_path = plug_ins_help_path (item_factory->gimp,
progname);
menu_entry = g_new0 (PlugInMenuEntry, 1);
menu_entry->proc_def = proc_def;
menu_entry->domain = locale_domain;
menu_entry->help_path = plug_ins_help_path (proc_def->prog);
menu_entry->help_path = help_path;
g_tree_insert (menu_entries,
dgettext (locale_domain, proc_def->menu_path),
......@@ -156,10 +164,10 @@ plug_in_make_menu (GimpItemFactory *item_factory,
}
void
plug_in_make_menu_entry (GimpItemFactory *item_factory,
PlugInProcDef *proc_def,
const gchar *domain,
const gchar *help_path)
plug_in_menus_create_entry (GimpItemFactory *item_factory,
PlugInProcDef *proc_def,
const gchar *locale_domain,
const gchar *help_path)
{
GimpItemFactoryEntry entry;
gchar *menu_path;
......@@ -216,7 +224,7 @@ plug_in_make_menu_entry (GimpItemFactory *item_factory,
{
gimp_item_factory_create_item (item_factory,
&entry,
domain,
locale_domain,
&proc_def->db_info, 2,
TRUE, FALSE);
}
......@@ -233,7 +241,7 @@ plug_in_make_menu_entry (GimpItemFactory *item_factory,
gimp_item_factory_create_item (item_factory,
&entry,
domain,
locale_domain,
&proc_def->db_info, 2,
TRUE, FALSE);
}
......@@ -244,7 +252,7 @@ plug_in_make_menu_entry (GimpItemFactory *item_factory,
}
void
plug_in_delete_menu_entry (const gchar *menu_path)
plug_in_menus_delete_entry (const gchar *menu_path)
{
GList *list;
......@@ -379,10 +387,10 @@ plug_in_menu_tree_traverse_func (gpointer foo,
PlugInMenuEntry *menu_entry,
GimpItemFactory *item_factory)
{
plug_in_make_menu_entry (item_factory,
menu_entry->proc_def,
menu_entry->domain,
menu_entry->help_path);
plug_in_menus_create_entry (item_factory,
menu_entry->proc_def,
menu_entry->domain,
menu_entry->help_path);
return FALSE;
}
......
......@@ -20,19 +20,20 @@
#define __PLUG_IN_MENUS_H__
void plug_in_menus_init (GSList *plug_in_defs,
const gchar *std_plugins_domain);
void plug_in_menus_init (Gimp *gimp,
GSList *plug_in_defs,
const gchar *std_plugins_domain);
void plug_in_make_menu (GimpItemFactory *item_factory,
GSList *proc_defs);
void plug_in_make_menu_entry (GimpItemFactory *item_factory,
PlugInProcDef *proc_def,
const gchar *locale_domain,
const gchar *help_path);
void plug_in_delete_menu_entry (const gchar *menu_path);
void plug_in_menus_create (GimpItemFactory *item_factory,
GSList *proc_defs);
void plug_in_menus_create_entry (GimpItemFactory *item_factory,
PlugInProcDef *proc_def,
const gchar *locale_domain,
const gchar *help_path);
void plug_in_menus_delete_entry (const gchar *menu_path);
void plug_in_menus_update (GimpItemFactory *item_factory,
GimpImageType type);
void plug_in_menus_update (GimpItemFactory *item_factory,
GimpImageType type);
#endif /* __PLUG_IN_MENUS_H__ */
......@@ -256,7 +256,7 @@ toolbox_menu_setup (GimpItemFactory *factory)
menus_last_opened_add (factory, factory->gimp);
plug_in_make_menu (factory, proc_defs);
plug_in_menus_create (factory, proc_defs);
/* Move all menu items under "<Toolbox>/Xtns" which are not submenus or
* separators to the top of the menu
......
......@@ -59,8 +59,6 @@ file_open_menu_setup (GimpItemFactory *factory)
PlugInProcDef *file_proc;
GSList *list;
factory->gimp->load_procs = g_slist_reverse (factory->gimp->load_procs);
for (list = factory->gimp->load_procs; list; list = g_slist_next (list))
{
gchar *basename;
......
......@@ -59,8 +59,6 @@ file_save_menu_setup (GimpItemFactory *factory)
PlugInProcDef *file_proc;
GSList *list;
factory->gimp->save_procs = g_slist_reverse (factory->gimp->save_procs);
for (list = factory->gimp->save_procs; list; list = g_slist_next (list))
{
gchar *basename;
......
......@@ -71,7 +71,7 @@ static void image_menu_background_changed (GimpContext *context,
GimpItemFactoryEntry image_menu_entries[] =
{
{ { "/tearoff1", NULL, gimp_item_factory_tearoff_callback, 0, "<Tearoff>" },
{ { "/tearoff", NULL, gimp_item_factory_tearoff_callback, 0, "<Tearoff>" },
NULL, NULL, NULL },
/* <Image>/File */
......@@ -794,7 +794,7 @@ GimpItemFactoryEntry image_menu_entries[] =
MENU_BRANCH (N_("/Filters/Text")),
MENU_BRANCH (N_("/Filters/Web")),
MENU_SEPARATOR ("/Filters/---INSERT"),
MENU_SEPARATOR ("/Filters/web-separator"),
MENU_BRANCH (N_("/Filters/Animation")),
MENU_BRANCH (N_("/Filters/Combine")),
......@@ -813,7 +813,7 @@ image_menu_setup (GimpItemFactory *factory)
if (GTK_IS_MENU_BAR (GTK_ITEM_FACTORY (factory)->widget))
{
gimp_item_factory_set_visible (GTK_ITEM_FACTORY (factory),
"/tearoff1", FALSE);
"/tearoff", FALSE);
gimp_item_factory_set_visible (GTK_ITEM_FACTORY (factory),
"/filters-separator", FALSE);
}
......@@ -908,7 +908,7 @@ image_menu_setup (GimpItemFactory *factory)
image_menu_background_changed (user_context, &bg, factory);
}
plug_in_make_menu (factory, proc_defs);
plug_in_menus_create (factory, proc_defs);
{
static gchar *rotate_plugins[] = { "Rotate 90 degrees",
......@@ -1032,7 +1032,7 @@ image_menu_setup (GimpItemFactory *factory)
* before the separator after "<Image>/Filters/Web"
*/
menu_item = gtk_item_factory_get_widget (GTK_ITEM_FACTORY (factory),
"/Filters/---INSERT");
"/Filters/web-separator");
if (menu_item && menu_item->parent && GTK_IS_MENU (menu_item->parent))
{
......
......@@ -61,7 +61,8 @@ static gchar * plug_in_escape_uline (const gchar *menu_path);
/* public functions */
void
plug_in_menus_init (GSList *plug_in_defs,
plug_in_menus_init (Gimp *gimp,
GSList *plug_in_defs,
const gchar *std_plugins_domain)
{
GSList *domains = NULL;
......@@ -86,7 +87,8 @@ plug_in_menus_init (GSList *plug_in_defs,
if (! plug_in_def->proc_defs)
continue;
locale_domain = plug_ins_locale_domain (plug_in_def->prog,
locale_domain = plug_ins_locale_domain (gimp,
plug_in_def->prog,
&locale_path);
for (list = domains; list; list = list->next)
......@@ -108,15 +110,14 @@ plug_in_menus_init (GSList *plug_in_defs,
}
void
plug_in_make_menu (GimpItemFactory *item_factory,
GSList *proc_defs)
plug_in_menus_create (GimpItemFactory *item_factory,
GSList *proc_defs)
{
PlugInProcDef *proc_def;
GSList *procs;
GTree *menu_entries;
g_return_if_fail (item_factory == NULL ||
GIMP_IS_ITEM_FACTORY (item_factory));
g_return_if_fail (GIMP_IS_ITEM_FACTORY (item_factory));
g_return_if_fail (proc_defs != NULL);
menu_entries = g_tree_new_full ((GCompareDataFunc) g_utf8_collate, NULL,
......@@ -133,15 +134,22 @@ plug_in_make_menu (GimpItemFactory *item_factory,
! proc_def->magics)
{
PlugInMenuEntry *menu_entry;
const gchar *progname;
const gchar *locale_domain;
const gchar *help_path;
progname = plug_in_proc_def_get_progname (proc_def);
locale_domain = plug_ins_locale_domain (proc_def->prog, NULL);
locale_domain = plug_ins_locale_domain (item_factory->gimp,
progname, NULL);
help_path = plug_ins_help_path (item_factory->gimp,
progname);
menu_entry = g_new0 (PlugInMenuEntry, 1);
menu_entry->proc_def = proc_def;
menu_entry->domain = locale_domain;
menu_entry->help_path = plug_ins_help_path (proc_def->prog);
menu_entry->help_path = help_path;
g_tree_insert (menu_entries,
dgettext (locale_domain, proc_def->menu_path),
......@@ -156,10 +164,10 @@ plug_in_make_menu (GimpItemFactory *item_factory,
}
void
plug_in_make_menu_entry (GimpItemFactory *item_factory,
PlugInProcDef *proc_def,
const gchar *domain,
const gchar *help_path)
plug_in_menus_create_entry (GimpItemFactory *item_factory,
PlugInProcDef *proc_def,
const gchar *locale_domain,
const gchar *help_path)
{
GimpItemFactoryEntry entry;
gchar *menu_path;
......@@ -216,7 +224,7 @@ plug_in_make_menu_entry (GimpItemFactory *item_factory,
{
gimp_item_factory_create_item (item_factory,
&entry,
domain,
locale_domain,
&proc_def->db_info, 2,
TRUE, FALSE);
}
......@@ -233,7 +241,7 @@ plug_in_make_menu_entry (GimpItemFactory *item_factory,
gimp_item_factory_create_item (item_factory,
&entry,
domain,
locale_domain,
&proc_def->db_info, 2,
TRUE, FALSE);
}
......@@ -244,7 +252,7 @@ plug_in_make_menu_entry (GimpItemFactory *item_factory,
}
void
plug_in_delete_menu_entry (const gchar *menu_path)
plug_in_menus_delete_entry (const gchar *menu_path)
{
GList *list;
......@@ -379,10 +387,10 @@ plug_in_menu_tree_traverse_func (gpointer foo,
PlugInMenuEntry *menu_entry,
GimpItemFactory *item_factory)
{
plug_in_make_menu_entry (item_factory,
menu_entry->proc_def,
menu_entry->domain,
menu_entry->help_path);
plug_in_menus_create_entry (item_factory,
menu_entry->proc_def,
menu_entry->domain,
menu_entry->help_path);
return FALSE;
}
......
......@@ -20,19 +20,20 @@
#define __PLUG_IN_MENUS_H__
void plug_in_menus_init (GSList *plug_in_defs,
const gchar *std_plugins_domain);
void plug_in_menus_init (Gimp *gimp,
GSList *plug_in_defs,
const gchar *std_plugins_domain);
void plug_in_make_menu (GimpItemFactory *item_factory,
GSList *proc_defs);
void plug_in_make_menu_entry (GimpItemFactory *item_factory,
PlugInProcDef *proc_def,
const gchar *locale_domain,
const gchar *help_path);
void plug_in_delete_menu_entry (const gchar *menu_path);
void plug_in_menus_create (GimpItemFactory *item_factory,
GSList *proc_defs);
void plug_in_menus_create_entry (GimpItemFactory *item_factory,
PlugInProcDef *proc_def,
const gchar *locale_domain,
const gchar *help_path);
void plug_in_menus_delete_entry (const gchar *menu_path);
void plug_in_menus_update (GimpItemFactory *item_factory,
GimpImageType type);
void plug_in_menus_update (GimpItemFactory *item_factory,
GimpImageType type);
#endif /* __PLUG_IN_MENUS_H__ */
......@@ -256,7 +256,7 @@ toolbox_menu_setup (GimpItemFactory *factory)
menus_last_opened_add (factory, factory->gimp);
plug_in_make_menu (factory, proc_defs);
plug_in_menus_create (factory, proc_defs);
/* Move all menu items under "<Toolbox>/Xtns" which are not submenus or
* separators to the top of the menu
......
......@@ -22,20 +22,22 @@
#include "plug-in-types.h"
#include "plug-in.h"
#include "plug-in-proc.h"
ProcRecord *
plug_in_proc_def_get_proc (PlugInProcDef *proc_def)
PlugInProcDef *
plug_in_proc_def_new (void)
{
g_return_val_if_fail (proc_def != NULL, NULL);
PlugInProcDef *proc_def;
return &proc_def->db_info;
proc_def = g_new0 (PlugInProcDef, 1);
return proc_def;
}
void
plug_in_proc_def_destroy (PlugInProcDef *proc_def,
gboolean data_only)
plug_in_proc_def_free (PlugInProcDef *proc_def)
{
gint i;
......@@ -71,6 +73,34 @@ plug_in_proc_def_destroy (PlugInProcDef *proc_def,
g_free (proc_def->magics);
g_free (proc_def->image_types);
if (!data_only)
g_free (proc_def);
g_free (proc_def);
}
ProcRecord *
plug_in_proc_def_get_proc (PlugInProcDef *proc_def)
{
g_return_val_if_fail (proc_def != NULL, NULL);
return &proc_def->db_info;
}
const gchar *
plug_in_proc_def_get_progname (PlugInProcDef *proc_def)
{
g_return_val_if_fail (proc_def != NULL, NULL);
switch (proc_def->db_info.proc_type)
{
case GIMP_PLUGIN:
case GIMP_EXTENSION:
return proc_def->prog;
case GIMP_TEMPORARY:
return ((PlugIn *) proc_def->db_info.exec_method.temporary.plug_in)->args[0];
default:
break;
}
return NULL;
}
......@@ -42,9 +42,11 @@ struct _PlugInProcDef
};
ProcRecord * plug_in_proc_def_get_proc (PlugInProcDef *proc_def);
void plug_in_proc_def_destroy (PlugInProcDef *proc_def,
gboolean data_only);
PlugInProcDef * plug_in_proc_def_new (void);
void plug_in_proc_def_free (PlugInProcDef *proc_def);
ProcRecord * plug_in_proc_def_get_proc (PlugInProcDef *proc_def);
const gchar * plug_in_proc_def_get_progname (PlugInProcDef *proc_def);
#endif /* __PLUG_IN_PROC_H__ */
......@@ -57,7 +57,7 @@ help_invoker (Gimp *gimp,
success = FALSE;
if (success)
gimp_help (gimp, plug_ins_help_path (prog_name), help_page);
gimp_help (gimp, plug_ins_help_path (gimp, prog_name), help_page);
return procedural_db_return_args (&help_proc, success);
}
......
......@@ -429,9 +429,9 @@ plugin_domain_register_invoker (Gimp *gimp,
{
if (current_plug_in && current_plug_in->query)
{
plug_in_def_set_locale_domain_name (current_plug_in->user_data,
plug_in_def_set_locale_domain_name (current_plug_in->plug_in_def,
domain_name);
plug_in_def_set_locale_domain_path (current_plug_in->user_data,
plug_in_def_set_locale_domain_path (current_plug_in->plug_in_def,
domain_path);
}
}
......@@ -484,7 +484,7 @@ plugin_help_register_invoker (Gimp *gimp,
{
if (current_plug_in && current_plug_in->query)
{
plug_in_def_set_help_path (current_plug_in->user_data, help_path);
plug_in_def_set_help_path (current_plug_in->plug_in_def, help_path);
}
}
......
......@@ -321,7 +321,7 @@ plug_in_call_query (Gimp *gimp,
{