1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 19:42:48 -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:
Simon Tatham
2018-03-03 18:18:54 +00:00
parent 31a2017af5
commit 0476ceaa08
3 changed files with 20 additions and 2 deletions

View File

@ -3416,7 +3416,12 @@ GtkWidget *create_message_box(
gtk_widget_show(window);
gtk_window_set_focus(GTK_WINDOW(window), NULL);
#if !GTK_CHECK_VERSION(2,0,0)
dp->currtreeitem = NULL;
dp->treeitems = NULL;
#else
dp->selparams = NULL;
#endif
g_signal_connect(G_OBJECT(window), "destroy",
G_CALLBACK(dlgparam_destroy), dp);