No need to DUMP CORE if the display can't be opened...

Might as well just warn folks about the problem and quit with an error.

-mkj
This commit is contained in:
Michael Johnson 1997-12-05 23:14:41 +00:00
parent 59af5a46f0
commit a7f427d7d9
2 changed files with 8 additions and 2 deletions

View File

@ -416,7 +416,10 @@ gdk_init (int *argc,
gdk_display = XOpenDisplay (gdk_display_name);
if (!gdk_display)
g_error ("cannot open display: %s", XDisplayName (gdk_display_name));
{
g_warning ("cannot open display: %s", XDisplayName (gdk_display_name));
exit(1);
}
/* This is really crappy. We have to look into the display structure
* to find the base resource id. This is only needed for recording

View File

@ -416,7 +416,10 @@ gdk_init (int *argc,
gdk_display = XOpenDisplay (gdk_display_name);
if (!gdk_display)
g_error ("cannot open display: %s", XDisplayName (gdk_display_name));
{
g_warning ("cannot open display: %s", XDisplayName (gdk_display_name));
exit(1);
}
/* This is really crappy. We have to look into the display structure
* to find the base resource id. This is only needed for recording