[gnome-music/wip/merge: 103/343] toolbar: allow emitting signals
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/merge: 103/343] toolbar: allow emitting signals
- Date: Thu, 25 Jul 2013 11:22:04 +0000 (UTC)
commit eb674cb09860473795bad93cdc63336e9db6a72f
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date: Mon Jul 15 16:16:16 2013 +0200
toolbar: allow emitting signals
gnomemusic/toolbar.py | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/toolbar.py b/gnomemusic/toolbar.py
index 6479186..178a790 100644
--- a/gnomemusic/toolbar.py
+++ b/gnomemusic/toolbar.py
@@ -1,4 +1,4 @@
-from gi.repository import Gtk
+from gi.repository import Gtk, GObject
class ToolbarState:
@@ -9,10 +9,15 @@ class ToolbarState:
SONGS = 4
-class Toolbar():
+class Toolbar(GObject.GObject):
+
+ __gsignals__ = {
+ 'state-changed': (GObject.SIGNAL_RUN_FIRST, None, ())
+ }
_selectionMode = None
def __init__(self):
+ GObject.GObject.__init__(self)
self._stackSwitcher = Gtk.StackSwitcher()
self._ui = Gtk.Builder()
self._ui.add_from_resource('/org/gnome/music/Headerbar.ui')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]