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:
@ -177,4 +177,7 @@
|
||||
gtk_box_new(GTK_ORIENTATION_VERTICAL, spacing)
|
||||
#define gtk_vscrollbar_new(adjust) \
|
||||
gtk_scrollbar_new(GTK_ORIENTATION_VERTICAL, adjust)
|
||||
|
||||
#define gdk_get_display() gdk_display_get_name(gdk_display_get_default())
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user