summaryrefslogtreecommitdiff
path: root/gtk/gtkmain.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2017-11-01 18:26:34 +0100
committerBenjamin Otte <otte@redhat.com>2017-11-01 18:26:34 +0100
commit2d31a5499a5484e72dc30fe573d5934d8560361f (patch)
tree5bd5125efaea41f944f056799ccee4589300fe87 /gtk/gtkmain.c
parentb4ad1a56181fcc8ecf75191a251745372936dbec (diff)
downloadgtk+-2d31a5499a5484e72dc30fe573d5934d8560361f.tar.gz
gdk: Remove gdk_get_display_arg_name()
Since we're no longer allowing arguments, this is always NULL now.
Diffstat (limited to 'gtk/gtkmain.c')
-rw-r--r--gtk/gtkmain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index ae46512bd4..a626438a46 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -824,7 +824,7 @@ gtk_init (void)
{
if (!gtk_init_check ())
{
- const char *display_name_arg = gdk_get_display_arg_name ();
+ const char *display_name_arg = NULL;
if (display_name_arg == NULL)
display_name_arg = getenv ("DISPLAY");
g_warning ("cannot open display: %s", display_name_arg ? display_name_arg : "");