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>
* app/widgets/gimptoolbox-color-area.[ch]: cleanup & cruft removal.

View File

@ -157,11 +157,15 @@ main (int argc,
if (no_interface)
{
gchar *basename;
basename = g_path_get_basename (argv[0]);
g_set_prgname (basename);
g_free (basename);
g_type_init ();
}
else
{
if (! app_gui_libs_init (&argc, &argv))
else if (! app_gui_libs_init (&argc, &argv))
{
const gchar *msg;
@ -171,7 +175,8 @@ main (int argc,
gimp_text_console_exit (TRUE);
}
}
g_set_application_name (_("The GIMP"));
#if defined (HAVE_SHM_H) || defined (G_OS_WIN32)
use_shm = TRUE;