<br><br><div class="gmail_quote">On Thu, Aug 25, 2011 at 12:33 PM, Manuel Quiñones <span dir="ltr"><<a href="mailto:manuq@laptop.org">manuq@laptop.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

* changed "speak" strings with mouth icon<br>
* added scrolling to the lists of words<br>
<br>
Signed-off-by: Manuel Quiñones <<a href="mailto:manuq@laptop.org">manuq@laptop.org</a>><br>
---<br>
 pippy_app.py |   20 ++++++++++++++++----<br>
 1 files changed, 16 insertions(+), 4 deletions(-)<br>
<br>
diff --git a/pippy_app.py b/pippy_app.py<br>
index 25651f4..52750c2 100644<br>
--- a/pippy_app.py<br>
+++ b/pippy_app.py<br>
@@ -32,6 +32,8 @@ from activity import ViewSourceActivity<br>
 from sugar.activity.activity import ActivityToolbox, \<br>
      get_bundle_path, get_bundle_name<br>
<br>
+from sugar.graphics.toolbutton import ToolButton<br>
+<br>
 # logging<br>
 logger = logging.getLogger('Words')<br>
<br>
@@ -126,9 +128,13 @@ class WordsActivity(ViewSourceActivity):<br>
         self.translated.modify_font(pango.FontDescription("Sans 14"))<br>
<br>
         # Speak buttons.<br>
-        speak1 = gtk.Button("Speak")<br>
+        speak1 = gtk.ToolButton()<br>
+        speak_icon1 = Icon(icon_name='microphone')<br>
+        speak1.set_icon_widget(speak_icon1)<br>
         speak1.connect("clicked", self.speak1_cb)<br>
-        speak2 = gtk.Button("Speak")<br>
+        speak2 = gtk.ToolButton()<br>
+        speak_icon2 = Icon(icon_name='microphone')<br>
+        speak2.set_icon_widget(speak_icon2)<br>
         speak2.connect("clicked", self.speak2_cb)<br>
<br>
         transbox.attach(label1, 0, 1, 0, 1, xoptions=gtk.FILL)<br>
@@ -164,6 +170,9 @@ class WordsActivity(ViewSourceActivity):<br>
         lang1treecol = gtk.TreeViewColumn("", lang1cell, text=0)<br>
         lang1view.get_selection().connect("changed", self.lang1sel_cb)<br>
         lang1view.append_column(lang1treecol)<br>
+        lang1scroll = gtk.ScrolledWindow(hadjustment=None, vadjustment=None)<br>
+        lang1scroll.set_policy(gtk.POLICY_NEVER, gtk.POLICY_AUTOMATIC)<br>
+        lang1scroll.add(lang1view)<br>
<br>
         # The "lang2" box<br>
         self.lang2model = gtk.ListStore(str)<br>
@@ -173,14 +182,17 @@ class WordsActivity(ViewSourceActivity):<br>
         lang2treecol = gtk.TreeViewColumn("", lang2cell, text=0)<br>
         lang2view.get_selection().connect("changed", self.lang2sel_cb)<br>
         lang2view.append_column(lang2treecol)<br>
+        lang2scroll = gtk.ScrolledWindow(hadjustment=None, vadjustment=None)<br>
+        lang2scroll.set_policy(gtk.POLICY_NEVER, gtk.POLICY_AUTOMATIC)<br>
+        lang2scroll.add(lang2view)<br>
<br>
         lang1_vbox = gtk.VBox(spacing=8)<br>
         lang1_vbox.pack_start(self.lang1combo, expand=False)<br>
-        lang1_vbox.pack_start(lang1view)<br>
+        lang1_vbox.pack_start(lang1scroll)<br>
<br>
         lang2_vbox = gtk.VBox(spacing=8)<br>
         lang2_vbox.pack_start(self.lang2combo, expand=False)<br>
-        lang2_vbox.pack_start(lang2view)<br>
+        lang2_vbox.pack_start(lang2scroll)<br>
<br>
         hbox.pack_start(lang1_vbox)<br>
         hbox.pack_start(lang2_vbox)<br>
<font color="#888888">--<br>
1.7.4.4<br>
<br></font></blockquote><div><br></div><div>Applied as </div><div><br></div><div> <a href="http://git.sugarlabs.org/words-activity/words-activity/commit/9262d94e1718d7c21576588fbeacb258f75b0ed7">http://git.sugarlabs.org/words-activity/words-activity/commit/9262d94e1718d7c21576588fbeacb258f75b0ed7</a></div>

<div><br></div><div>Nice mouths!.</div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><font color="#888888">
_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
</font></blockquote></div><br>