1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-04 21:12:47 -05:00

Stop using deprecated GTK_STOCK_* in GTK3.

According to the GTK3 docs, we're now supposed to use fixed label
strings instead.
This commit is contained in:
Simon Tatham
2015-08-22 13:50:56 +01:00
parent d155f698b7
commit 6d65a92dfc
3 changed files with 14 additions and 5 deletions

View File

@ -1,7 +1,7 @@
/*
* Header file to make compatibility with older GTK versions less
* painful, by #defining various things that are pure spelling changes
* between GTK1 and GTK2.
* between GTK1 and GTK2, or between 2 and 3.
*/
#if !GTK_CHECK_VERSION(2,0,0)
@ -156,3 +156,12 @@
#endif
#if GTK_CHECK_VERSION(3,0,0)
#define STANDARD_OK_LABEL "_OK"
#define STANDARD_OPEN_LABEL "_Open"
#define STANDARD_CANCEL_LABEL "_Cancel"
#else
#define STANDARD_OK_LABEL GTK_STOCK_OK
#define STANDARD_OPEN_LABEL GTK_STOCK_OPEN
#define STANDARD_CANCEL_LABEL GTK_STOCK_CANCEL
#endif