Commit bb698f73 authored by Tim Janik's avatar Tim Janik

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
parent 8a6dea2d
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
......
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
......
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
......
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
......
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
......
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
......
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
......
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment