mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
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:
parent
599b862f98
commit
da117dcdca
@ -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>
|
||||
|
||||
* gdk/gdk.c: Fix wrong types for command line arguments
|
||||
|
@ -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>
|
||||
|
||||
* gdk/gdk.c: Fix wrong types for command line arguments
|
||||
|
@ -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>
|
||||
|
||||
* gdk/gdk.c: Fix wrong types for command line arguments
|
||||
|
@ -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>
|
||||
|
||||
* gdk/gdk.c: Fix wrong types for command line arguments
|
||||
|
@ -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>
|
||||
|
||||
* gdk/gdk.c: Fix wrong types for command line arguments
|
||||
|
@ -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>
|
||||
|
||||
* gdk/gdk.c: Fix wrong types for command line arguments
|
||||
|
@ -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>
|
||||
|
||||
* gdk/gdk.c: Fix wrong types for command line arguments
|
||||
|
13
gdk/gdk.c
13
gdk/gdk.c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user