added gdk_progclass==NULL patch by Oliver Graf <ograf@fga.de>. -timj

* gdk.c: added gdk_progclass==NULL patch by Oliver Graf <ograf@fga.de>.
-timj
This commit is contained in:
Tim Janik 1997-12-11 08:39:21 +00:00
parent 8a6dea2d55
commit bb698f73f4
9 changed files with 38 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Thu Dec 11 09:44:03 1997 Tim Janik <timj@psynet.net>
* gdk.c: added gdk_progclass==NULL patch by Oliver Graf <ograf@fga.de>.
Wed Dec 10 23:40:03 1997 Tim Janik <timj@psynet.net>
* fixed some compiler errors, because g_return_if_fail() wasn't used

View File

@ -1,3 +1,7 @@
Thu Dec 11 09:44:03 1997 Tim Janik <timj@psynet.net>
* gdk.c: added gdk_progclass==NULL patch by Oliver Graf <ograf@fga.de>.
Wed Dec 10 23:40:03 1997 Tim Janik <timj@psynet.net>
* fixed some compiler errors, because g_return_if_fail() wasn't used

View File

@ -1,3 +1,7 @@
Thu Dec 11 09:44:03 1997 Tim Janik <timj@psynet.net>
* gdk.c: added gdk_progclass==NULL patch by Oliver Graf <ograf@fga.de>.
Wed Dec 10 23:40:03 1997 Tim Janik <timj@psynet.net>
* fixed some compiler errors, because g_return_if_fail() wasn't used

View File

@ -1,3 +1,7 @@
Thu Dec 11 09:44:03 1997 Tim Janik <timj@psynet.net>
* gdk.c: added gdk_progclass==NULL patch by Oliver Graf <ograf@fga.de>.
Wed Dec 10 23:40:03 1997 Tim Janik <timj@psynet.net>
* fixed some compiler errors, because g_return_if_fail() wasn't used

View File

@ -1,3 +1,7 @@
Thu Dec 11 09:44:03 1997 Tim Janik <timj@psynet.net>
* gdk.c: added gdk_progclass==NULL patch by Oliver Graf <ograf@fga.de>.
Wed Dec 10 23:40:03 1997 Tim Janik <timj@psynet.net>
* fixed some compiler errors, because g_return_if_fail() wasn't used

View File

@ -1,3 +1,7 @@
Thu Dec 11 09:44:03 1997 Tim Janik <timj@psynet.net>
* gdk.c: added gdk_progclass==NULL patch by Oliver Graf <ograf@fga.de>.
Wed Dec 10 23:40:03 1997 Tim Janik <timj@psynet.net>
* fixed some compiler errors, because g_return_if_fail() wasn't used

View File

@ -1,3 +1,7 @@
Thu Dec 11 09:44:03 1997 Tim Janik <timj@psynet.net>
* gdk.c: added gdk_progclass==NULL patch by Oliver Graf <ograf@fga.de>.
Wed Dec 10 23:40:03 1997 Tim Janik <timj@psynet.net>
* fixed some compiler errors, because g_return_if_fail() wasn't used

View File

@ -450,6 +450,11 @@ gdk_init (int *argc,
10, 10, 10, 10, 0, 0 , 0);
class_hint = XAllocClassHint();
class_hint->res_name = gdk_progname;
if (gdk_progclass == NULL)
{
gdk_progclass = strdup (gdk_progname);
gdk_progclass[0] = toupper (gdk_progclass[0]);
}
class_hint->res_class = gdk_progclass;
XSetClassHint(gdk_display, gdk_leader_window, class_hint);
XSetCommand(gdk_display, gdk_leader_window, argv_orig, argc_orig);

View File

@ -450,6 +450,11 @@ gdk_init (int *argc,
10, 10, 10, 10, 0, 0 , 0);
class_hint = XAllocClassHint();
class_hint->res_name = gdk_progname;
if (gdk_progclass == NULL)
{
gdk_progclass = strdup (gdk_progname);
gdk_progclass[0] = toupper (gdk_progclass[0]);
}
class_hint->res_class = gdk_progclass;
XSetClassHint(gdk_display, gdk_leader_window, class_hint);
XSetCommand(gdk_display, gdk_leader_window, argv_orig, argc_orig);