1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-02 03:52:49 -05:00

Compile fixes for GTK1 after recent work.

The whole of get_label_text_dimensions() should have been outside the
GTK 2 ifdef; I'd left a gtk_label_set_width_chars() unconditional; and
GDK1's gdk_window_set_background() lacks a const in its prototype.
Serves me right for not test-compiling in all three versions!
This commit is contained in:
Simon Tatham
2015-08-25 19:50:23 +01:00
parent 43a18df156
commit 7193e930de
3 changed files with 48 additions and 37 deletions

View File

@ -2443,7 +2443,9 @@ GtkWidget *layout_ctrls(struct dlgparam *dp, struct Shortcuts *scs,
GtkWidget *label, *container;
label = gtk_label_new(ctrl->generic.label);
#if GTK_CHECK_VERSION(3,0,0)
gtk_label_set_width_chars(GTK_LABEL(label), 3);
#endif
shortcut_add(scs, label, ctrl->listbox.shortcut,
SHORTCUT_FOCUS, w);