projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
321877e
)
Improve an error message
author
Matthias Clasen
<mclasen@redhat.com>
Tue, 28 Mar 2023 01:44:56 +0000
(21:44 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Tue, 28 Mar 2023 01:44:56 +0000
(21:44 -0400)
We were producing a misleading error message
when gtk_init() fails.
Fixes: #5704
gtk/gtkmain.c
patch
|
blob
|
history
diff --git
a/gtk/gtkmain.c
b/gtk/gtkmain.c
index 3a688958ce7d015be8be351753134830d4207492..ad41fa5749e8e5dfb65eb018e5a52c7d0d98fd88 100644
(file)
--- a/
gtk/gtkmain.c
+++ b/
gtk/gtkmain.c
@@
-658,10
+658,7
@@
gtk_init (void)
{
if (!gtk_init_check ())
{
- const char *display_name_arg;
-
- display_name_arg = getenv ("DISPLAY");
- g_warning ("cannot open display: %s", display_name_arg ? display_name_arg : "");
+ g_warning ("Failed to open display");
exit (1);
}
}