mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-20 19:43:01 +00:00
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:
parent
6e637d6eb4
commit
2e9aa8bb9c
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
10
app/main.c
10
app/main.c
|
@ -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);
|
||||
|
||||
|
|
10
app/menus.c
10
app/menus.c
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue