diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2011-12-08 16:43:12 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2011-12-08 16:43:12 (GMT) |
commit | 04c79b3723f0735e4b79ab20fccfc9d63288d86d (patch) | |
tree | 3ff20ecd88c040f2d1eb4f4330860e50de3d6b1a /speech_dispatcher.py | |
parent | d84d092a015022cc3bb43c7f355bc24fb6b7250a (diff) |
Revert "Initial port to Gtk3"
This reverts commit 996d542fd7d2d464edd572b165e80f9cb2c20ec7.
Diffstat (limited to 'speech_dispatcher.py')
-rw-r--r-- | speech_dispatcher.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/speech_dispatcher.py b/speech_dispatcher.py index 977a16d..4fad27f 100644 --- a/speech_dispatcher.py +++ b/speech_dispatcher.py @@ -14,7 +14,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -from gi.repository import Gtk +import gtk import time import threading import speechd @@ -105,12 +105,12 @@ class EspeakThread(threading.Thread): if type == speechd.CallbackType.INDEX_MARK: mark = kargs['index_mark'] word_count = int(mark) - Gtk.gdk.threads_enter() + gtk.gdk.threads_enter() speech.highlight_cb(word_count) - Gtk.gdk.threads_leave() + gtk.gdk.threads_leave() elif type == speechd.CallbackType.END: - Gtk.gdk.threads_enter() + gtk.gdk.threads_enter() speech.reset_cb() - Gtk.gdk.threads_leave() + gtk.gdk.threads_leave() global done done = True |