[baobab/wip/new-design: 55/59] Remove busy cursor
- From: Stefano Facchini <sfacchini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab/wip/new-design: 55/59] Remove busy cursor
- Date: Sun, 1 Apr 2012 17:14:18 +0000 (UTC)
commit a70e0fd3b42bb28095393d6b41ed3da0e3a5617e
Author: Stefano Facchini <stefano facchini gmail com>
Date: Fri Mar 30 16:32:41 2012 +0200
Remove busy cursor
The spinner is enough to indicate activity. Moreover, the busy
cursor is a bit misleading since the UI remains perfectly usable during
a scan.
src/baobab-window.vala | 12 ------------
1 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/src/baobab-window.vala b/src/baobab-window.vala
index b8fd6dc..f580267 100644
--- a/src/baobab-window.vala
+++ b/src/baobab-window.vala
@@ -11,8 +11,6 @@ namespace Baobab {
Gtk.Spinner spinner;
Scanner? scanner;
- static Gdk.Cursor busy_cursor;
-
void radio_activate (SimpleAction action, Variant? parameter) {
action.change_state (parameter);
}
@@ -67,8 +65,6 @@ namespace Baobab {
public Window (Application app) {
Object (application: app);
- busy_cursor = new Gdk.Cursor (Gdk.CursorType.WATCH);
-
add_action_entries (action_entries, this);
// Build ourselves.
@@ -401,10 +397,7 @@ namespace Baobab {
}
void set_busy (bool busy) {
- Gdk.Cursor? cursor = null;
-
if (busy) {
- cursor = busy_cursor;
disable_drop ();
rings_chart.freeze_updates ();
treemap_chart.freeze_updates ();
@@ -420,11 +413,6 @@ namespace Baobab {
lookup_action ("active-chart").change_state (ui_settings.get_value ("active-chart"));
}
- var window = get_window ();
- if (window != null) {
- window.set_cursor (cursor);
- }
-
foreach (ActionState action_state in actions_while_scanning) {
var action = lookup_action (action_state.name) as SimpleAction;
action.set_enabled (busy == action_state.enable);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]