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

Use gtkcompat.h to slim down a few ifdefs.

Now that I've got a general place to centralise handling of at least
the simple differences between GTK 1 and 2, I should use it wherever
possible. So this commit removes just a small number of ifdefs which
are either obsoleted by definitions already in gtkcompat.h (like
set_size_request vs set_usize), or can easily be replaced by adding
another (e.g. gtk_color_selection_set_has_opacity_control).
This commit is contained in:
Simon Tatham
2015-08-09 09:59:25 +01:00
parent 5fa22495c7
commit 78592116a5
4 changed files with 5 additions and 14 deletions

View File

@ -1143,11 +1143,7 @@ void dlg_coloursel_start(union control *ctrl, void *dlg, int r, int g, int b)
dp->coloursel_result.ok = FALSE;
gtk_window_set_modal(GTK_WINDOW(coloursel), TRUE);
#if GTK_CHECK_VERSION(2,0,0)
gtk_color_selection_set_has_opacity_control(cs, FALSE);
#else
gtk_color_selection_set_opacity(cs, FALSE);
#endif
#if GTK_CHECK_VERSION(2,0,0)
{