[gnome-clocks] Rename "show-standalone" signal to "item-activated"
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] Rename "show-standalone" signal to "item-activated"
- Date: Sun, 18 Nov 2012 18:00:37 +0000 (UTC)
commit 2fec61d573dc20aa0a44776c070c4e946b79bce3
Author: Paolo Borelli <pborelli gnome org>
Date: Sun Nov 18 16:37:14 2012 +0100
Rename "show-standalone" signal to "item-activated"
It is more clear and I will need the show_standalone for a method
gnomeclocks/alarm.py | 4 ++--
gnomeclocks/app.py | 6 +++---
gnomeclocks/clocks.py | 2 +-
gnomeclocks/world.py | 2 +-
4 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/gnomeclocks/alarm.py b/gnomeclocks/alarm.py
index 20f4038..82aba25 100644
--- a/gnomeclocks/alarm.py
+++ b/gnomeclocks/alarm.py
@@ -449,13 +449,13 @@ class Alarm(Clock):
alarm = thumb.get_alarm()
if alarm.check_expired():
self.standalone.set_alarm(alarm, True)
- self.emit("show-standalone")
+ self.emit("item-activated")
return True
def _on_item_activated(self, iconview, path):
thumb = self.liststore[path][3]
self.standalone.set_alarm(thumb.get_alarm())
- self.emit("show-standalone")
+ self.emit("item-activated")
def _on_selection_changed(self, iconview):
self.emit("selection-changed")
diff --git a/gnomeclocks/app.py b/gnomeclocks/app.py
index 787009a..210625e 100644
--- a/gnomeclocks/app.py
+++ b/gnomeclocks/app.py
@@ -79,8 +79,8 @@ class Window(Gtk.ApplicationWindow):
self.notebook.append_page(view, None)
self.notebook.append_page(self.single_evbox, None)
- self.world.connect("show-standalone", self._on_show_standalone)
- self.alarm.connect("show-standalone", self._on_show_standalone)
+ self.world.connect("item-activated", self._on_item_activated)
+ self.alarm.connect("item-activated", self._on_item_activated)
self.toolbar.connect("view-clock", self._on_view_clock)
self.vbox.show_all()
@@ -90,7 +90,7 @@ class Window(Gtk.ApplicationWindow):
def show_clock(self, view):
self.toolbar.activate_view(view)
- def _on_show_standalone(self, view):
+ def _on_item_activated(self, view):
def show_standalone_page():
self.toolbar.show_standalone_toolbar(view.standalone)
self.single_evbox.add(view.standalone)
diff --git a/gnomeclocks/clocks.py b/gnomeclocks/clocks.py
index 8bc861b..b3a2dab 100644
--- a/gnomeclocks/clocks.py
+++ b/gnomeclocks/clocks.py
@@ -37,7 +37,7 @@ class Clock(Gtk.EventBox):
self.get_style_context().add_class('content-view')
@GObject.Signal
- def show_standalone(self):
+ def item_activated(self):
pass
@GObject.Signal
diff --git a/gnomeclocks/world.py b/gnomeclocks/world.py
index 0d52852..7c7ca10 100644
--- a/gnomeclocks/world.py
+++ b/gnomeclocks/world.py
@@ -354,7 +354,7 @@ class World(Clock):
def _on_item_activated(self, iconview, path):
thumb = self.liststore[path][3]
self.standalone.set_clock(thumb.get_clock())
- self.emit("show-standalone")
+ self.emit("item-activated")
def _on_selection_changed(self, iconview):
self.emit("selection-changed")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]