[baobab] Disable chart switcher while in the busy state
- From: Stefano Facchini <sfacchini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab] Disable chart switcher while in the busy state
- Date: Sun, 13 Apr 2014 15:03:30 +0000 (UTC)
commit ba0cb8a8be0b7f3c0c92a10badede8e26e20450c
Author: Stefano Facchini <stefano facchini gmail com>
Date: Sat Apr 12 23:24:16 2014 +0200
Disable chart switcher while in the busy state
src/baobab-window.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/baobab-window.vala b/src/baobab-window.vala
index 52032c2..2f93e23 100644
--- a/src/baobab-window.vala
+++ b/src/baobab-window.vala
@@ -68,6 +68,8 @@ namespace Baobab {
[GtkChild]
private Gtk.Stack chart_stack;
[GtkChild]
+ private Gtk.StackSwitcher chart_stack_switcher;
+ [GtkChild]
private Chart rings_chart;
[GtkChild]
private Chart treemap_chart;
@@ -503,6 +505,7 @@ namespace Baobab {
cursor = busy_cursor;
disable_drop ();
(lookup_action ("active-chart") as SimpleAction).set_enabled (false);
+ chart_stack_switcher.sensitive = false;
chart_stack.visible_child = spinner;
spinner.start ();
} else {
@@ -510,6 +513,7 @@ namespace Baobab {
(lookup_action ("active-chart") as SimpleAction).set_enabled (true);
spinner.stop ();
lookup_action ("active-chart").change_state (ui_settings.get_value ("active-chart"));
+ chart_stack_switcher.sensitive = true;
}
var window = get_window ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]