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:
Michael Natterer 2003-10-13 15:48:35 +00:00 committed by Michael Natterer
parent 40173c4e05
commit dceb84e9df
2 changed files with 22 additions and 9 deletions

View File

@ -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.

View File

@ -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