Группа :: Graphical desktop/MATE
Пакет: mate-system-monitor
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: mate-system-monitor_deprecated-gtk_tree_view_set_rules_hint.patch
Скачать
Скачать
diff --git a/src/disks.cpp b/src/disks.cpp
index 3c965f1..31f1693 100644
--- a/src/disks.cpp
+++ b/src/disks.cpp
@@ -334,7 +334,9 @@ create_disk_view(ProcData *procdata)
g_signal_connect(G_OBJECT(disk_tree), "row-activated", G_CALLBACK(open_dir), NULL);
procdata->disk_list = disk_tree;
gtk_container_add(GTK_CONTAINER(scrolled), disk_tree);
+#if !GTK_CHECK_VERSION(3,0,0)
gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(disk_tree), TRUE);
+#endif
g_object_unref(G_OBJECT(model));
/* icon + device */
diff --git a/src/lsof.cpp b/src/lsof.cpp
index aaf2fbd..6854de2 100644
--- a/src/lsof.cpp
+++ b/src/lsof.cpp
@@ -248,8 +248,9 @@ void procman_lsof(ProcData *procdata)
GtkWidget *tree = gtk_tree_view_new_with_model(GTK_TREE_MODEL(model));
g_object_unref(model);
+#if !GTK_CHECK_VERSION(3,0,0)
gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(tree), TRUE);
-
+#endif
GtkTreeViewColumn *column;
GtkCellRenderer *renderer;
diff --git a/src/memmaps.cpp b/src/memmaps.cpp
index a9939f3..5f2b6b1 100644
--- a/src/memmaps.cpp
+++ b/src/memmaps.cpp
@@ -378,7 +378,9 @@ create_memmapsdata (ProcData *procdata)
);
tree = gtk_tree_view_new_with_model (GTK_TREE_MODEL (model));
+#if !GTK_CHECK_VERSION(3,0,0)
gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (tree), TRUE);
+#endif
g_object_unref (G_OBJECT (model));
for (i = 0; i < MMAP_COL_MAX; i++) {
diff --git a/src/openfiles.cpp b/src/openfiles.cpp
index 770f796..52a9141 100644
--- a/src/openfiles.cpp
+++ b/src/openfiles.cpp
@@ -260,7 +260,9 @@ create_openfiles_tree (ProcData *procdata)
);
tree = gtk_tree_view_new_with_model (GTK_TREE_MODEL (model));
+#if !GTK_CHECK_VERSION(3,0,0)
gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (tree), TRUE);
+#endif
g_object_unref (G_OBJECT (model));
for (i = 0; i < NUM_OPENFILES_COL-1; i++) {
diff --git a/src/procproperties.cpp b/src/procproperties.cpp
index 26861ec..624fb70 100644
--- a/src/procproperties.cpp
+++ b/src/procproperties.cpp
@@ -202,7 +202,9 @@ create_procproperties_tree (ProcData *procdata)
);
tree = gtk_tree_view_new_with_model (GTK_TREE_MODEL (model));
+#if !GTK_CHECK_VERSION(3,0,0)
gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (tree), TRUE);
+#endif
g_object_unref (G_OBJECT (model));
for (i = 0; i < NUM_COLS; i++) {
diff --git a/src/proctable.cpp b/src/proctable.cpp
index 426cc0b..702b427 100644
--- a/src/proctable.cpp
+++ b/src/proctable.cpp
@@ -334,7 +334,9 @@ proctable_new (ProcData * const procdata)
search_equal_func,
NULL,
NULL);
+#if !GTK_CHECK_VERSION(3,0,0)
gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (proctree), TRUE);
+#endif
g_object_unref (G_OBJECT (model));
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (proctree));