Группа :: Graphical desktop/MATE
Пакет: mate-system-monitor
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: mate-system-monitor_deprecated-gtk_v-h-box.patch
Скачать
Скачать
diff --git a/src/disks.cpp b/src/disks.cpp
index 31f1693..bb82bbf 100644
--- a/src/disks.cpp
+++ b/src/disks.cpp
@@ -13,6 +13,10 @@
#include "interface.h"
#include "iconthemewrapper.h"
+#if GTK_CHECK_VERSION (3, 0, 0)
+#define gtk_vbox_new(X,Y) gtk_box_new(GTK_ORIENTATION_VERTICAL,Y)
+#endif
+
enum DiskColumns
{
/* string columns* */
diff --git a/src/interface.cpp b/src/interface.cpp
index ae43278..ea3b8aa 100644
--- a/src/interface.cpp
+++ b/src/interface.cpp
@@ -41,6 +41,11 @@
#include "sysinfo.h"
#include "gsm_color_button.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
+
static void cb_toggle_tree (GtkAction *action, gpointer data);
static void cb_proc_goto_tab (gint tab);
diff --git a/src/load-graph.cpp b/src/load-graph.cpp
index fa933d3..ce2e263 100644
--- a/src/load-graph.cpp
+++ b/src/load-graph.cpp
@@ -28,6 +28,9 @@
#include "util.h"
#include "gsm_color_button.h"
+#if GTK_CHECK_VERSION (3, 0, 0)
+#define gtk_vbox_new(X,Y) gtk_box_new(GTK_ORIENTATION_VERTICAL,Y)
+#endif
void LoadGraph::clear_background()
{
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;
diff --git a/src/openfiles.cpp b/src/openfiles.cpp
index 52a9141..6870530 100644
--- a/src/openfiles.cpp
+++ b/src/openfiles.cpp
@@ -19,6 +19,11 @@
#define NI_IDN 0
#endif
+#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
{
COL_FD,
diff --git a/src/procdialogs.cpp b/src/procdialogs.cpp
index 1fde60a..0f29c14 100644
--- a/src/procdialogs.cpp
+++ b/src/procdialogs.cpp
@@ -37,6 +37,11 @@
#include "procman_gksu.h"
#include "cgroups.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
+
static GtkWidget *renice_dialog = NULL;
static GtkWidget *prefs_dialog = NULL;
static gint new_nice_value = 0;
diff --git a/src/procproperties.cpp b/src/procproperties.cpp
index 624fb70..162b2d1 100644
--- a/src/procproperties.cpp
+++ b/src/procproperties.cpp
@@ -36,6 +36,11 @@
#include "proctable.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
+
enum
{
COL_PROP = 0,
diff --git a/src/sysinfo.cpp b/src/sysinfo.cpp
index 968105f..16a34aa 100644
--- a/src/sysinfo.cpp
+++ b/src/sysinfo.cpp
@@ -31,6 +31,10 @@
#include "procman.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;
using std::vector;