[gnome-usage/pstetka/gnome-usage-disk-io: 1/7] sub-views: Do not show all widgets in performance subviews
- From: Petr Štětka <pstetka src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-usage/pstetka/gnome-usage-disk-io: 1/7] sub-views: Do not show all widgets in performance subviews
- Date: Tue, 9 Apr 2019 12:55:57 +0000 (UTC)
commit 06196a7889aa0bf3e7e2d907e1e72971c82be70f
Author: Petr Štětka <pstetka redhat com>
Date: Fri Oct 6 18:53:00 2017 +0200
sub-views: Do not show all widgets in performance subviews
To make work default hiding widgets in .ui files (for widgets in
performance subviews), we must not call show_all in performance view.
https://bugzilla.gnome.org/show_bug.cgi?id=787549
src/cpu-sub-view.vala | 1 +
src/graph-stack-switcher.vala | 2 ++
src/memory-sub-view.vala | 1 +
src/performance-view.vala | 2 +-
src/window.vala | 3 +++
5 files changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/src/cpu-sub-view.vala b/src/cpu-sub-view.vala
index 55fdcbc..9bd5a6d 100644
--- a/src/cpu-sub-view.vala
+++ b/src/cpu-sub-view.vala
@@ -74,6 +74,7 @@ namespace Usage
process_list_box.bind_property ("empty", no_process_view, "visible", BindingFlags.BIDIRECTIONAL);
add(cpu_box);
+ show_all();
}
public override void show_all() {
diff --git a/src/graph-stack-switcher.vala b/src/graph-stack-switcher.vala
index d0ced06..3423648 100644
--- a/src/graph-stack-switcher.vala
+++ b/src/graph-stack-switcher.vala
@@ -57,6 +57,8 @@ namespace Usage
return false;
});
}
+
+ show_all();
}
private int get_button_number(Gtk.Button button)
diff --git a/src/memory-sub-view.vala b/src/memory-sub-view.vala
index a24a4a8..541f8a2 100644
--- a/src/memory-sub-view.vala
+++ b/src/memory-sub-view.vala
@@ -75,6 +75,7 @@ namespace Usage
process_list_box.bind_property ("empty", no_process_view, "visible", BindingFlags.BIDIRECTIONAL);
add(memory_box);
+ show_all();
}
public override void show_all() {
diff --git a/src/performance-view.vala b/src/performance-view.vala
index ca30809..4253964 100644
--- a/src/performance-view.vala
+++ b/src/performance-view.vala
@@ -59,7 +59,7 @@ namespace Usage
var stackSwitcher = new GraphStackSwitcher(scrolled_window, sub_views);
switcher_box.add (stackSwitcher);
- show_all ();
+ stackSwitcher.show_all();
}
[GtkCallback]
diff --git a/src/window.vala b/src/window.vala
index b53682a..70bf63e 100644
--- a/src/window.vala
+++ b/src/window.vala
@@ -72,6 +72,9 @@ namespace Usage
});
this.add(stack);
+
+ stack.show();
+ header_bar.show();
}
public Usage.HeaderBar get_header_bar()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]