gdk.c suggestion.
- From: "Asbjoern Pettersen" <ape spacetec no>
- To: "gtk-list" <gtk-list redhat com>
- Subject: gdk.c suggestion.
- Date: Sun, 31 May 98 20:34:41
Hello.
I'm the author of the OS/2 port of GIMP and i have some stange problems
when starting some plug-ins. The error occour in gdk.c
To solve it i add some tests in gdk.c
The __EMX__ is a build in define for the emx compiler.
The code will only effect the OS/2 version.
Suggestion:
gdk.c
#ifdef __EMX__
if (gdk_display_name == NULL)
{
gdk_display_name= getenv("DISPLAY");
if (gdk_display_name == NULL) /* very strange ! */
gdk_display_name="127.0.0.1:0.0";
g_print ("gdk_display_name=%s\n",gdk_display_name);
}
#endif
gdk_display = XOpenDisplay (gdk_display_name);
if (!gdk_display)
{
g_warning ("cannot open display: %s", XDisplayName (gdk_display_name));
exit(1);
}
Can somebody add this test ?
Asbjoern P.
***********************************************************
* Asbj rn Pettersen Phone work: +47 77 66 08 91 *
* Kongsberg Spacetec a.s Phone home: +47 77 67 32 14 *
* Telefax: +47 77 65 58 59 *
* Prestvannveien 38 www:http://www.spacetec.no *
* N-9005 Tromsoe, Norway email:ape@spacetec.no *
***********************************************************
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]