[gnome-system-monitor] Removed old workaround for retaininng process tree selection, as gtk seems to properly handle it now
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-monitor] Removed old workaround for retaininng process tree selection, as gtk seems to properly handle it now
- Date: Sat, 8 Dec 2012 00:49:10 +0000 (UTC)
commit af1af189c6170d40efea003bb83171b15ed38576
Author: Robert Roth <robert roth off gmail com>
Date: Sat Dec 8 02:48:11 2012 +0200
Removed old workaround for retaininng process tree selection, as
gtk seems to properly handle it now.
https://bugzilla.gnome.org/show_bug.cgi?id=683671
src/Makefile.am | 1 -
src/proctable.cpp | 12 ------------
src/selection.cpp | 43 -------------------------------------------
src/selection.h | 21 ---------------------
4 files changed, 0 insertions(+), 77 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 0741165..64439e3 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -31,7 +31,6 @@ gnome_system_monitor_cpp_files = \
procman_gksu.cpp \
procman_pkexec.cpp \
lsof.cpp \
- selection.cpp \
settings-keys.cpp \
iconthemewrapper.cpp \
procman-app.cpp
diff --git a/src/proctable.cpp b/src/proctable.cpp
index 97da46f..d6c581a 100644
--- a/src/proctable.cpp
+++ b/src/proctable.cpp
@@ -50,7 +50,6 @@
#endif
#include "procman-app.h"
-#include "selection.h"
#include "proctable.h"
#include "callbacks.h"
#include "prettytable.h"
@@ -988,7 +987,6 @@ proctable_update_list (ProcmanApp *app)
glibtop_proclist proclist;
glibtop_cpu cpu;
gint which, arg;
- procman::SelectionMemento selection;
switch (app->config.whose_process) {
case ALL_PROCESSES:
@@ -999,19 +997,11 @@ proctable_update_list (ProcmanApp *app)
case ACTIVE_PROCESSES:
which = GLIBTOP_KERN_PROC_ALL | GLIBTOP_EXCLUDE_IDLE;
arg = 0;
- if (app->config.show_tree)
- {
- selection.save(app->tree);
- }
break;
default:
which = GLIBTOP_KERN_PROC_UID;
arg = getuid ();
- if (app->config.show_tree)
- {
- selection.save(app->tree);
- }
break;
}
@@ -1025,8 +1015,6 @@ proctable_update_list (ProcmanApp *app)
refresh_list (app, pid_list, proclist.number);
- selection.restore(app->tree);
-
g_free (pid_list);
/* proclist.number == g_list_length(procdata->info) == g_hash_table_size(procdata->pids) */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]