Commit a7f427d7 authored by Michael Johnson's avatar Michael Johnson

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
parent 59af5a46
......@@ -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
......
......@@ -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
......
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