[baobab] Do not init static var twice
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab] Do not init static var twice
- Date: Sat, 16 Mar 2013 17:00:53 +0000 (UTC)
commit 15c37243090057ca2d61d948e92e56cfe2170eb5
Author: Paolo Borelli <pborelli gnome org>
Date: Sat Mar 16 17:58:09 2013 +0100
Do not init static var twice
The busy cursor is static, so init it once.
src/baobab-window.vala | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/baobab-window.vala b/src/baobab-window.vala
index 7a9cf32..49fccd7 100644
--- a/src/baobab-window.vala
+++ b/src/baobab-window.vala
@@ -88,7 +88,9 @@ namespace Baobab {
public Window (Application app) {
Object (application: app);
- busy_cursor = new Gdk.Cursor (Gdk.CursorType.WATCH);
+ if (busy_cursor == null) {
+ busy_cursor = new Gdk.Cursor (Gdk.CursorType.WATCH);
+ }
add_action_entries (action_entries, this);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]