Skip to content

Commit

Permalink
add scroll to system view
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanisław committed Nov 25, 2020
1 parent 355e1b2 commit b8ab44f
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/Views/SystemView/SystemView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,18 @@ public class Monitor.SystemView : Gtk.Box {
network_view = new SystemNetworkView (resources.network);
storage_view = new SystemStorageView (resources.storage);

add (cpu_view);
add (memory_view);
add (network_view);
add (storage_view);
var scrolled_window = new Gtk.ScrolledWindow (null, null);
var wrapper = new Gtk.Box (Gtk.Orientation.VERTICAL, 0);
wrapper.expand = true;
scrolled_window.add (wrapper);


wrapper.add (cpu_view);
wrapper.add (memory_view);
wrapper.add (network_view);
wrapper.add (storage_view);

add (scrolled_window);
}

public void update () {
Expand Down

0 comments on commit b8ab44f

Please sign in to comment.