[gnome-clocks] Do not add the standalone widget if it is already there
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] Do not add the standalone widget if it is already there
- Date: Thu, 30 Aug 2012 11:28:26 +0000 (UTC)
commit 3507b752c00100799ea35c0de52f4ebdd9a42bc1
Author: Paolo Borelli <pborelli gnome org>
Date: Thu Aug 30 13:09:23 2012 +0200
Do not add the standalone widget if it is already there
gnomeclocks/app.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gnomeclocks/app.py b/gnomeclocks/app.py
index d322bbb..e935c9e 100644
--- a/gnomeclocks/app.py
+++ b/gnomeclocks/app.py
@@ -95,7 +95,8 @@ class Window(Gtk.ApplicationWindow):
self.single_evbox.add(widget)
self.notebook.set_current_page(-1)
- self.embed.spotlight(show_standalone_page)
+ if self.notebook.get_current_page() != len(self.views):
+ self.embed.spotlight(show_standalone_page)
def _on_view_clock(self, button, view):
def show_clock_view():
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]