diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-01-21 16:50:45 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-01-21 16:50:45 +0000 |
commit | da117dcdca99fa8c5550316c7e4ced050d66de31 (patch) | |
tree | 298afe6c262b9b5d2eb999faeda17ff45ce1e231 /gdk/gdk.c | |
parent | 599b862f9810b6f6f7224517b088c97ea1a2a109 (diff) | |
download | gtk+-da117dcdca99fa8c5550316c7e4ced050d66de31.tar.gz |
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)
Diffstat (limited to 'gdk/gdk.c')
-rw-r--r-- | gdk/gdk.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -295,6 +295,13 @@ gdk_init_check (int *argc, 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 { gchar *debug_string = getenv("GDK_DEBUG"); @@ -456,12 +463,6 @@ gdk_threads_init () G_CONST_RETURN char * 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; } |