mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-04 21:12:47 -05:00
GTK1 build fixes.
Looks as if I haven't retried the GTK1 build for a while, and recent GTK frontend development has broken it. The selection revamp has pointed out that GTK1 didn't have the accessor function gtk_selection_data_get_selection(), the standard GdkAtom value GDK_SELECTION_CLIPBOARD, or keysyms for alphabetic characters; and also I had an initialisation of one of my own structure fields (dp->selparams) accidentally not guarded by the same GTK-versioning ifdef that controls whether or not it was defined.
This commit is contained in:
@ -65,6 +65,7 @@
|
||||
#define gtk_adjustment_set_page_increment(a, val) ((a)->page_increment = (val))
|
||||
#define gtk_adjustment_set_step_increment(a, val) ((a)->step_increment = (val))
|
||||
#define gtk_adjustment_get_value(a) ((a)->value)
|
||||
#define gtk_selection_data_get_selection(a) ((a)->selection)
|
||||
|
||||
#define gtk_widget_set_has_window(w, b) \
|
||||
gtk1_widget_set_unset_flag(w, GTK_NO_WINDOW, !(b))
|
||||
@ -83,6 +84,11 @@
|
||||
* return the GDK default display. */
|
||||
#define GDK_DISPLAY_XDISPLAY(x) GDK_DISPLAY()
|
||||
|
||||
#define GDK_KEY_C ('C')
|
||||
#define GDK_KEY_V ('V')
|
||||
#define GDK_KEY_c ('c')
|
||||
#define GDK_KEY_v ('v')
|
||||
|
||||
#endif /* 2.0 */
|
||||
|
||||
#if !GTK_CHECK_VERSION(2,22,0)
|
||||
|
Reference in New Issue
Block a user