mirror of https://github.com/GNOME/gimp.git
call g_set_prgname() in the --no-interface case (GDK is doing this for us
2003-10-13 Michael Natterer <mitch@gimp.org> * app/main.c (main): call g_set_prgname() in the --no-interface case (GDK is doing this for us otherwise). Always set a human readable localized application name using g_set_application_name().
This commit is contained in:
parent
40173c4e05
commit
dceb84e9df
|
@ -1,3 +1,11 @@
|
||||||
|
2003-10-13 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
|
* app/main.c (main): call g_set_prgname() in the --no-interface
|
||||||
|
case (GDK is doing this for us otherwise).
|
||||||
|
|
||||||
|
Always set a human readable localized application name using
|
||||||
|
g_set_application_name().
|
||||||
|
|
||||||
2003-10-13 Michael Natterer <mitch@gimp.org>
|
2003-10-13 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
* app/widgets/gimptoolbox-color-area.[ch]: cleanup & cruft removal.
|
* app/widgets/gimptoolbox-color-area.[ch]: cleanup & cruft removal.
|
||||||
|
|
23
app/main.c
23
app/main.c
|
@ -157,22 +157,27 @@ main (int argc,
|
||||||
|
|
||||||
if (no_interface)
|
if (no_interface)
|
||||||
{
|
{
|
||||||
|
gchar *basename;
|
||||||
|
|
||||||
|
basename = g_path_get_basename (argv[0]);
|
||||||
|
g_set_prgname (basename);
|
||||||
|
g_free (basename);
|
||||||
|
|
||||||
g_type_init ();
|
g_type_init ();
|
||||||
}
|
}
|
||||||
else
|
else if (! app_gui_libs_init (&argc, &argv))
|
||||||
{
|
{
|
||||||
if (! app_gui_libs_init (&argc, &argv))
|
const gchar *msg;
|
||||||
{
|
|
||||||
const gchar *msg;
|
|
||||||
|
|
||||||
msg = _("GIMP could not initialize the graphical user interface.\n"
|
msg = _("GIMP could not initialize the graphical user interface.\n"
|
||||||
"Make sure a proper setup for your display environment exists.");
|
"Make sure a proper setup for your display environment exists.");
|
||||||
g_print ("%s\n\n", msg);
|
g_print ("%s\n\n", msg);
|
||||||
|
|
||||||
gimp_text_console_exit (TRUE);
|
gimp_text_console_exit (TRUE);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
g_set_application_name (_("The GIMP"));
|
||||||
|
|
||||||
#if defined (HAVE_SHM_H) || defined (G_OS_WIN32)
|
#if defined (HAVE_SHM_H) || defined (G_OS_WIN32)
|
||||||
use_shm = TRUE;
|
use_shm = TRUE;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue