[gnome-clocks/wip/vala] mmm, be more careful
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks/wip/vala] mmm, be more careful
- Date: Sun, 17 Feb 2013 10:57:19 +0000 (UTC)
commit c97aea9c2de5e5103ec7bedf4c85720d76650d57
Author: Paolo Borelli <pborelli gnome org>
Date: Sun Feb 17 11:56:59 2013 +0100
mmm, be more careful
src/alarm.vala | 4 +++-
src/world.vala | 4 +++-
2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/alarm.vala b/src/alarm.vala
index 8996be5..2c22058 100644
--- a/src/alarm.vala
+++ b/src/alarm.vala
@@ -442,7 +442,9 @@ public class MainPanel : Gd.Stack, Clocks.Clock {
add (content_view);
content_view.notify["is-empty"].connect (() => {
- update_toolbar ();
+ if (visible_child != null) {
+ update_toolbar ();
+ }
});
standalone = new StandalonePanel ();
diff --git a/src/world.vala b/src/world.vala
index a87fff4..4dd5287 100644
--- a/src/world.vala
+++ b/src/world.vala
@@ -282,7 +282,9 @@ public class MainPanel : Gd.Stack, Clocks.Clock {
});
content_view.notify["is-empty"].connect (() => {
- update_toolbar ();
+ if (visible_child != null) {
+ update_toolbar ();
+ }
});
standalone = new StandalonePanel ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]