forked from AuroraMiddleware/gtk
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:
parent
59af5a46f0
commit
a7f427d7d9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user