summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2016-01-23 15:26:11 +0100
committerWolfgang Ulbrich <[email protected]>2016-01-23 15:26:11 +0100
commit0a6c93c71b6c1dd7151c929b9c9897c5b663a097 (patch)
tree6968a2d1fb532aeba6446dcadc04abc2663170f4
parent57288dc6e5ca11c5f9d70fa5975beed797b504d5 (diff)
downloadmate-utils-0a6c93c71b6c1dd7151c929b9c9897c5b663a097.tar.bz2
mate-utils-0a6c93c71b6c1dd7151c929b9c9897c5b663a097.tar.xz
GTK3 gdict-window: don't use deprecated gtk_{h/v}box_new ()
-rw-r--r--mate-dictionary/src/gdict-window.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mate-dictionary/src/gdict-window.c b/mate-dictionary/src/gdict-window.c
index 46fd3f27..3a63b44e 100644
--- a/mate-dictionary/src/gdict-window.c
+++ b/mate-dictionary/src/gdict-window.c
@@ -56,6 +56,11 @@
#define GDICT_SIDEBAR_STRATEGIES_PAGE "strat-chooser"
#define GDICT_SIDEBAR_SOURCES_PAGE "source-chooser"
+#if GTK_CHECK_VERSION (3, 0, 0)
+#define gtk_hbox_new(X,Y) gtk_box_new(GTK_ORIENTATION_HORIZONTAL,Y)
+#define gtk_vbox_new(X,Y) gtk_box_new(GTK_ORIENTATION_VERTICAL,Y)
+#endif
+
enum
{
COMPLETION_TEXT_COLUMN,