1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-04 21:12:47 -05:00

Stop using GTK3-deprecated gdk_get_display().

The new way is gdk_display_get_name(gdk_display_get_default()), which
returns a const char * rather than a char *, so I've also had to
fiddle with the prototype and call sites of get_x_display().

(Also included gtkcompat.h into uxputty.c, since that wanted to call
gdk_get_display() but didn't previously include it.)
This commit is contained in:
Simon Tatham
2015-08-22 14:07:02 +01:00
parent ace0dd64b7
commit 5cef6f96c2
5 changed files with 9 additions and 3 deletions

View File

@ -7,11 +7,14 @@
#include <stdlib.h>
#include <assert.h>
#include <unistd.h>
#include <gtk/gtk.h>
#include <gdk/gdk.h>
#include "putty.h"
#include "storage.h"
#include "gtkcompat.h"
/*
* Stubs to avoid uxpty.c needing to be linked in.
*/