summaryrefslogtreecommitdiff
path: root/src/lsof.cpp
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2015-11-29 22:03:16 +0100
committerWolfgang Ulbrich <[email protected]>2015-12-01 21:02:26 +0100
commit4534e68bb0cb31734be338efa06cb6d3e00180f6 (patch)
tree185d1105ddb4c11907a271a80e267c595b32af39 /src/lsof.cpp
parent370380d307344bfc5ab8c87142b12009937d48d6 (diff)
downloadmate-system-monitor-4534e68bb0cb31734be338efa06cb6d3e00180f6.tar.bz2
mate-system-monitor-4534e68bb0cb31734be338efa06cb6d3e00180f6.tar.xz
GTK3: don't use deprecated gtk_{v/h}-box
Diffstat (limited to 'src/lsof.cpp')
-rw-r--r--src/lsof.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lsof.cpp b/src/lsof.cpp
index 6854de2..4c1f13a 100644
--- a/src/lsof.cpp
+++ b/src/lsof.cpp
@@ -21,6 +21,10 @@
#include "lsof.h"
#include "util.h"
+#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
using std::string;