diff options
author | Vincent Sanders <vince@kyllikki.org> | 2015-04-11 00:28:32 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2015-04-11 00:28:32 +0100 |
commit | e193566de41d65e055db306b9ca28b35daa8bc43 (patch) | |
tree | 2264dd4e70e2479ae376bd199be881dd704370f2 /gtk/compat.h | |
parent | 4f13cbd31c984957d17081ac6d59a62b04d57765 (diff) | |
download | netsurf-e193566de41d65e055db306b9ca28b35daa8bc43.tar.gz netsurf-e193566de41d65e055db306b9ca28b35daa8bc43.tar.bz2 |
Improve the stock icon/icon name compatability logic to be explicit
Diffstat (limited to 'gtk/compat.h')
-rw-r--r-- | gtk/compat.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/gtk/compat.h b/gtk/compat.h index 15c30ab05..52d10f35e 100644 --- a/gtk/compat.h +++ b/gtk/compat.h @@ -29,8 +29,15 @@ /* gtk 3.10 depricated the use of stock names */ #if GTK_CHECK_VERSION(3,10,0) +#define NSGTK_USE_ICON_NAME +#else +#undef NSGTK_USE_ICON_NAME +#endif + +/* icon names instead of stock */ +#ifdef NSGTK_USE_ICON_NAME #define NSGTK_STOCK_ADD "list-add" -#define NSGTK_STOCK_CANCEL "gtk-cancel" +#define NSGTK_STOCK_CANCEL "_Cancel" #define NSGTK_STOCK_CLEAR "edit-clear" #define NSGTK_STOCK_CLOSE "window-close" #define NSGTK_STOCK_FIND "edit-find" @@ -42,8 +49,8 @@ #define NSGTK_STOCK_SAVE "document-save" #define NSGTK_STOCK_SAVE_AS "document-save-as" #define NSGTK_STOCK_STOP "process-stop" -#define NSGTK_STOCK_OK "gtk-ok" -#define NSGTK_STOCK_OPEN "document-open" +#define NSGTK_STOCK_OK "_OK" +#define NSGTK_STOCK_OPEN "_Open" #else #define NSGTK_STOCK_ADD GTK_STOCK_ADD #define NSGTK_STOCK_CANCEL GTK_STOCK_CANCEL |