app/main.c Define the "plugin_domains" array of strings in main.c and use

1999-12-04  Michael Natterer  <mitch@gimp.org>

	* app/main.c
	* app/menus.c: Define the "plugin_domains" array of strings in
	main.c and use it as external variable from menus.c

	What's missing now is a proper way to let gimp know which
	additional catalogs (perl, python, ...) are actually installed.
This commit is contained in:
Michael Natterer 1999-12-04 13:46:25 +00:00 committed by Michael Natterer
parent 6e637d6eb4
commit 2e9aa8bb9c
6 changed files with 37 additions and 22 deletions

View File

@ -1,3 +1,12 @@
1999-12-04 Michael Natterer <mitch@gimp.org>
* app/main.c
* app/menus.c: Define the "plugin_domains" array of strings in
main.c and use it as external variable from menus.c
What's missing now is a proper way to let gimp know which
additional catalogs (perl, python, ...) are actually installed.
1999-12-04 Michael Natterer <mitch@gimp.org>
* app/menus.c: Reorder all menu items under <Image>/Filters which

View File

@ -64,6 +64,11 @@ static void help_debug_cmd_callback (GtkWidget *widget,
gpointer callback_data,
guint callback_action);
/* from main.c */
extern gchar *plugin_domains[];
extern gint n_plugin_domains;
/* for i18n */
static gchar G_GNUC_UNUSED *dummy_entries[] =
{
/* <Toolbox> */
@ -1706,11 +1711,6 @@ static gchar *
menu_translate (const gchar *path,
gpointer data)
{
static gchar *plugin_domains[] = { "gimp-std-plugins",
"gimp-perl" };
static gint n_plugin_domains = (sizeof (plugin_domains) /
sizeof (plugin_domains[0]));
static gchar *menupath = NULL;
gchar *retval;

View File

@ -78,6 +78,11 @@ gchar *alternate_gimprc;
gchar *alternate_system_gimprc;
gchar **batch_cmds;
gchar *plugin_domains[] = { "gimp-std-plugins",
"gimp-perl" };
gint n_plugin_domains = (sizeof (plugin_domains) /
sizeof (plugin_domains[0]));
/* LOCAL data */
static gint gimp_argc;
static gchar **gimp_argv;
@ -121,8 +126,9 @@ main (int argc, char **argv)
/* Initialize i18n support */
INIT_LOCALE ("gimp");
bindtextdomain ("gimp-std-plugins", LOCALEDIR);
bindtextdomain ("gimp-perl", LOCALEDIR);
for (i = 0; i < n_plugin_domains; i++)
bindtextdomain (plugin_domains[i], LOCALEDIR);
gtk_init (&argc, &argv);

View File

@ -64,6 +64,11 @@ static void help_debug_cmd_callback (GtkWidget *widget,
gpointer callback_data,
guint callback_action);
/* from main.c */
extern gchar *plugin_domains[];
extern gint n_plugin_domains;
/* for i18n */
static gchar G_GNUC_UNUSED *dummy_entries[] =
{
/* <Toolbox> */
@ -1706,11 +1711,6 @@ static gchar *
menu_translate (const gchar *path,
gpointer data)
{
static gchar *plugin_domains[] = { "gimp-std-plugins",
"gimp-perl" };
static gint n_plugin_domains = (sizeof (plugin_domains) /
sizeof (plugin_domains[0]));
static gchar *menupath = NULL;
gchar *retval;

View File

@ -64,6 +64,11 @@ static void help_debug_cmd_callback (GtkWidget *widget,
gpointer callback_data,
guint callback_action);
/* from main.c */
extern gchar *plugin_domains[];
extern gint n_plugin_domains;
/* for i18n */
static gchar G_GNUC_UNUSED *dummy_entries[] =
{
/* <Toolbox> */
@ -1706,11 +1711,6 @@ static gchar *
menu_translate (const gchar *path,
gpointer data)
{
static gchar *plugin_domains[] = { "gimp-std-plugins",
"gimp-perl" };
static gint n_plugin_domains = (sizeof (plugin_domains) /
sizeof (plugin_domains[0]));
static gchar *menupath = NULL;
gchar *retval;

View File

@ -64,6 +64,11 @@ static void help_debug_cmd_callback (GtkWidget *widget,
gpointer callback_data,
guint callback_action);
/* from main.c */
extern gchar *plugin_domains[];
extern gint n_plugin_domains;
/* for i18n */
static gchar G_GNUC_UNUSED *dummy_entries[] =
{
/* <Toolbox> */
@ -1706,11 +1711,6 @@ static gchar *
menu_translate (const gchar *path,
gpointer data)
{
static gchar *plugin_domains[] = { "gimp-std-plugins",
"gimp-perl" };
static gint n_plugin_domains = (sizeof (plugin_domains) /
sizeof (plugin_domains[0]));
static gchar *menupath = NULL;
gchar *retval;