forked from AuroraMiddleware/gtk
Merge branch 'wip/abono/gtk-main-remove-condition' into 'main'
gtk/main: Remove condition that always evaluates TRUE See merge request GNOME/gtk!5031
This commit is contained in:
commit
9a16269747
@ -657,9 +657,9 @@ gtk_init (void)
|
||||
{
|
||||
if (!gtk_init_check ())
|
||||
{
|
||||
const char *display_name_arg = NULL;
|
||||
if (display_name_arg == NULL)
|
||||
display_name_arg = getenv ("DISPLAY");
|
||||
const char *display_name_arg;
|
||||
|
||||
display_name_arg = getenv ("DISPLAY");
|
||||
g_warning ("cannot open display: %s", display_name_arg ? display_name_arg : "");
|
||||
exit (1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user