[gnome-clocks] Do not use a "private" variable of toolbar
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] Do not use a "private" variable of toolbar
- Date: Mon, 19 Nov 2012 19:52:30 +0000 (UTC)
commit 1482985df76c836d452e8aaa0250e89feb635912
Author: Paolo Borelli <pborelli gnome org>
Date: Mon Nov 19 20:51:39 2012 +0100
Do not use a "private" variable of toolbar
gnomeclocks/app.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gnomeclocks/app.py b/gnomeclocks/app.py
index ed7394d..2447b4c 100644
--- a/gnomeclocks/app.py
+++ b/gnomeclocks/app.py
@@ -112,7 +112,8 @@ class Window(Gtk.ApplicationWindow):
self.toolbar.update_toolbar(view)
def _on_new_activated(self, action, param):
- self.toolbar.current_view.open_new_dialog()
+ view = self.views[self.notebook.get_current_page()]
+ view.open_new_dialog()
def _on_about_activated(self, action, param):
about = Gtk.AboutDialog()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]