Set the fallback program class here, rather than

Mon Jan 21 11:46:39 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdk.c (gdk_init_check): Set the fallback program class here,
        rather than lazilygdk_get_program_class(), since we don't want
        -name to override it. (#69123, Ryan Lovett)
This commit is contained in:
Owen Taylor 2002-01-21 16:50:45 +00:00 committed by Owen Taylor
parent 599b862f98
commit da117dcdca
8 changed files with 49 additions and 6 deletions

View File

@ -1,3 +1,9 @@
Mon Jan 21 11:46:39 2002 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c (gdk_init_check): Set the fallback program class here,
rather than lazilygdk_get_program_class(), since we don't want
-name to override it. (#69123, Ryan Lovett)
Mon Jan 21 10:29:45 2002 Owen Taylor <otaylor@redhat.com> Mon Jan 21 10:29:45 2002 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c: Fix wrong types for command line arguments * gdk/gdk.c: Fix wrong types for command line arguments

View File

@ -1,3 +1,9 @@
Mon Jan 21 11:46:39 2002 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c (gdk_init_check): Set the fallback program class here,
rather than lazilygdk_get_program_class(), since we don't want
-name to override it. (#69123, Ryan Lovett)
Mon Jan 21 10:29:45 2002 Owen Taylor <otaylor@redhat.com> Mon Jan 21 10:29:45 2002 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c: Fix wrong types for command line arguments * gdk/gdk.c: Fix wrong types for command line arguments

View File

@ -1,3 +1,9 @@
Mon Jan 21 11:46:39 2002 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c (gdk_init_check): Set the fallback program class here,
rather than lazilygdk_get_program_class(), since we don't want
-name to override it. (#69123, Ryan Lovett)
Mon Jan 21 10:29:45 2002 Owen Taylor <otaylor@redhat.com> Mon Jan 21 10:29:45 2002 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c: Fix wrong types for command line arguments * gdk/gdk.c: Fix wrong types for command line arguments

View File

@ -1,3 +1,9 @@
Mon Jan 21 11:46:39 2002 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c (gdk_init_check): Set the fallback program class here,
rather than lazilygdk_get_program_class(), since we don't want
-name to override it. (#69123, Ryan Lovett)
Mon Jan 21 10:29:45 2002 Owen Taylor <otaylor@redhat.com> Mon Jan 21 10:29:45 2002 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c: Fix wrong types for command line arguments * gdk/gdk.c: Fix wrong types for command line arguments

View File

@ -1,3 +1,9 @@
Mon Jan 21 11:46:39 2002 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c (gdk_init_check): Set the fallback program class here,
rather than lazilygdk_get_program_class(), since we don't want
-name to override it. (#69123, Ryan Lovett)
Mon Jan 21 10:29:45 2002 Owen Taylor <otaylor@redhat.com> Mon Jan 21 10:29:45 2002 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c: Fix wrong types for command line arguments * gdk/gdk.c: Fix wrong types for command line arguments

View File

@ -1,3 +1,9 @@
Mon Jan 21 11:46:39 2002 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c (gdk_init_check): Set the fallback program class here,
rather than lazilygdk_get_program_class(), since we don't want
-name to override it. (#69123, Ryan Lovett)
Mon Jan 21 10:29:45 2002 Owen Taylor <otaylor@redhat.com> Mon Jan 21 10:29:45 2002 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c: Fix wrong types for command line arguments * gdk/gdk.c: Fix wrong types for command line arguments

View File

@ -1,3 +1,9 @@
Mon Jan 21 11:46:39 2002 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c (gdk_init_check): Set the fallback program class here,
rather than lazilygdk_get_program_class(), since we don't want
-name to override it. (#69123, Ryan Lovett)
Mon Jan 21 10:29:45 2002 Owen Taylor <otaylor@redhat.com> Mon Jan 21 10:29:45 2002 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c: Fix wrong types for command line arguments * gdk/gdk.c: Fix wrong types for command line arguments

View File

@ -295,6 +295,13 @@ gdk_init_check (int *argc,
g_set_prgname ("<unknown>"); g_set_prgname ("<unknown>");
} }
/* We set the fallback program class here, rather than lazily in
* gdk_get_program_class, since we don't want -name to override it.
*/
gdk_progclass = g_strdup (g_get_prgname ());
if (gdk_progclass[0])
gdk_progclass[0] = g_ascii_toupper (gdk_progclass[0]);
#ifdef G_ENABLE_DEBUG #ifdef G_ENABLE_DEBUG
{ {
gchar *debug_string = getenv("GDK_DEBUG"); gchar *debug_string = getenv("GDK_DEBUG");
@ -456,12 +463,6 @@ gdk_threads_init ()
G_CONST_RETURN char * G_CONST_RETURN char *
gdk_get_program_class (void) gdk_get_program_class (void)
{ {
if (gdk_progclass == NULL)
{
gdk_progclass = g_strdup (g_get_prgname ());
gdk_progclass[0] = g_ascii_toupper (gdk_progclass[0]);
}
return gdk_progclass; return gdk_progclass;
} }