Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorflavio <fdanesse@gmail.com>2012-07-28 00:03:20 (GMT)
committer flavio <fdanesse@gmail.com>2012-07-28 00:03:20 (GMT)
commitda1f7c1f44bb4826775892d68db1abb0d2c09a1b (patch)
tree1d5ae52453889b36b21e67af6006042bd99735b3
parentd8cfe696751c0b62cb8ee5b3ef464af68398c423 (diff)
parent1f235f1ec61608b915173f57bf59626635a92e92 (diff)
Merge branch 'gtk3' of git.sugarlabs.org:speak/mainline into gtk3
-rw-r--r--activity.py3
-rw-r--r--toolitem.py10
2 files changed, 9 insertions, 4 deletions
diff --git a/activity.py b/activity.py
index b87f9ec..e3cae54 100644
--- a/activity.py
+++ b/activity.py
@@ -384,6 +384,7 @@ class SpeakActivity(SharedActivity):
self.face.status.rate = adj.get_value()
self.face.say_notification(_("rate adjusted"))
+ # face subtoolbar
def make_face_bar(self):
facebar = Gtk.Toolbar()
@@ -425,6 +426,7 @@ class SpeakActivity(SharedActivity):
facebar.show_all()
return facebar
+ # mouth changed callback
def mouth_changed_cb(self, combo, quiet):
self.face.status.mouth = combo.props.value
self._update_face()
@@ -433,6 +435,7 @@ class SpeakActivity(SharedActivity):
if not quiet:
self.face.say_notification(_("mouth changed"))
+ # eyes changed callback
def eyes_changed_cb(self, ignored, quiet):
if self.numeyesadj is None:
return
diff --git a/toolitem.py b/toolitem.py
index 75206e5..ca97a34 100644
--- a/toolitem.py
+++ b/toolitem.py
@@ -19,17 +19,19 @@
from gi.repository import Gtk
+
class ToolWidget(Gtk.ToolItem):
def __init__(self, widget=None, label_text=""):
Gtk.ToolItem.__init__(self)
-
self.wid = widget
self.label = Gtk.Label(label_text)
self._box = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL)
- if self.label: self._box.pack_start(self.label, True, True, 5)
- if self.wid: self._box.pack_start(self.wid, True, True, 5)
+ if self.label:
+ self._box.pack_start(self.label, True, True, 5)
+ if self.wid:
+ self._box.pack_start(self.wid, True, True, 5)
self.add(self._box)
- self.show_all() \ No newline at end of file
+ self.show_all()