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>
|
||||
|
||||
* app/widgets/gimptoolbox-color-area.[ch]: cleanup & cruft removal.
|
||||
|
|
13
app/main.c
13
app/main.c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue