summaryrefslogtreecommitdiffstats
path: root/gtk/src/ghbcompat.h
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2014-01-14 17:50:26 +0000
committerjstebbins <[email protected]>2014-01-14 17:50:26 +0000
commit1c0097edfa33274b8eef7eef028d6465654b4cb6 (patch)
tree87692c9dbabf681fb0fe804b2be7a8f234cd0f59 /gtk/src/ghbcompat.h
parent81003b39a7c463b54f74bab1ddcd632b2f6ee757 (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.h10
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_