diff options
author | mbkma <[email protected]> | 2021-12-21 23:47:49 +0100 |
---|---|---|
committer | Robert Antoni Buj Gelonch <[email protected]> | 2022-01-01 20:54:37 +0100 |
commit | 15519961f3e6f3b5295f4e253268a8dff8ce9eee (patch) | |
tree | 463e89d3754736eb73750d68e5b868b87fc782f1 /src/proctable.cpp | |
parent | abcef611612750d2147656af1ede1d619da09c22 (diff) | |
download | mate-system-monitor-15519961f3e6f3b5295f4e253268a8dff8ce9eee.tar.bz2 mate-system-monitor-15519961f3e6f3b5295f4e253268a8dff8ce9eee.tar.xz |
port interface to ui files
see https://gitlab.gnome.org/GNOME/gnome-system-monitor/-/commit/3df5cd02abaafe9789be53b5b78425126d7c1a07 and following commits
Diffstat (limited to 'src/proctable.cpp')
-rw-r--r-- | src/proctable.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/proctable.cpp b/src/proctable.cpp index c11336d..2316109 100644 --- a/src/proctable.cpp +++ b/src/proctable.cpp @@ -244,7 +244,6 @@ GtkWidget * proctable_new (ProcData * const procdata) { GtkWidget *proctree; - GtkWidget *scrolled; GtkTreeStore *model; GtkTreeSelection *selection; GtkTreeViewColumn *column; @@ -287,11 +286,6 @@ proctable_new (ProcData * const procdata) gint i; - scrolled = gtk_scrolled_window_new (NULL, NULL); - gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled), - GTK_POLICY_AUTOMATIC, - GTK_POLICY_AUTOMATIC); - model = gtk_tree_store_new (NUM_COLUMNS, G_TYPE_STRING, /* Process Name */ G_TYPE_STRING, /* User */ @@ -518,8 +512,6 @@ proctable_new (ProcData * const procdata) } } - gtk_container_add (GTK_CONTAINER (scrolled), proctree); - procdata->tree = proctree; procman_get_tree_state (procdata->settings, proctree, "proctree"); @@ -559,7 +551,7 @@ proctable_new (ProcData * const procdata) g_signal_connect (G_OBJECT (model), "sort-column-changed", G_CALLBACK (cb_sort_changed), procdata); - return scrolled; + return proctree; } |