[gnome-clocks] Use GSignal decorator



commit 4da7bd066fe9ff1e5a77fdf8d9468a94fb338641
Author: MaÃl Lavault <mael lavault mailz org>
Date:   Sun Oct 21 16:43:13 2012 +0200

    Use GSignal decorator
    
    Replace show-standalone and selection-changed old signal annotation with the new decorator.
    
    Signed-off-by: MaÃl Lavault <mael lavault mailz org>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=683312

 gnomeclocks/clocks.py |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/gnomeclocks/clocks.py b/gnomeclocks/clocks.py
index 5a6aca1..b503713 100644
--- a/gnomeclocks/clocks.py
+++ b/gnomeclocks/clocks.py
@@ -20,14 +20,6 @@ from gi.repository import GObject, Gtk
 
 
 class Clock(Gtk.EventBox):
-    __gsignals__ = {
-        'show-standalone': (GObject.SignalFlags.RUN_LAST,
-                            None,
-                            (GObject.TYPE_PYOBJECT, )),
-        'selection-changed': (GObject.SignalFlags.RUN_LAST,
-                              None,
-                              ())
-    }
 
     def __init__(self, label, new_label=None, has_selection_mode=False):
         Gtk.EventBox.__init__(self)
@@ -44,6 +36,14 @@ class Clock(Gtk.EventBox):
         self.get_style_context().add_class('view')
         self.get_style_context().add_class('content-view')
 
+    @GObject.Signal(arg_types=(object,))
+    def show_standalone(self, arg):
+        pass
+
+    @GObject.Signal
+    def selection_changed(self):
+        pass
+
     def open_new_dialog(self):
         pass
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]