diff options
author | jstebbins <[email protected]> | 2014-01-14 17:50:26 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2014-01-14 17:50:26 +0000 |
commit | 1c0097edfa33274b8eef7eef028d6465654b4cb6 (patch) | |
tree | 87692c9dbabf681fb0fe804b2be7a8f234cd0f59 /gtk/src/ghbcompat.h | |
parent | 81003b39a7c463b54f74bab1ddcd632b2f6ee757 (diff) |
LinGui: fix deprecated GTK_STOCK_*
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5968 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/ghbcompat.h')
-rw-r--r-- | gtk/src/ghbcompat.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk/src/ghbcompat.h b/gtk/src/ghbcompat.h index 2acaa63b9..2c4ba99ad 100644 --- a/gtk/src/ghbcompat.h +++ b/gtk/src/ghbcompat.h @@ -38,4 +38,14 @@ static inline gboolean gtk_widget_get_realized(GtkWidget *widget) #define GHB_PAUSE_ICON "media-playback-pause" #endif +#if !GTK_CHECK_VERSION(3, 10, 0) +#define GHB_STOCK_OPEN GTK_STOCK_OPEN +#define GHB_STOCK_CANCEL GTK_STOCK_CANCEL +#define GHB_STOCK_SAVE GTK_STOCK_SAVE +#else +#define GHB_STOCK_OPEN "_Open" +#define GHB_STOCK_CANCEL "_Cancel" +#define GHB_STOCK_SAVE "_Save" +#endif + #endif // _GHB_COMPAT_H_ |