[orca] Fix another GObject deprecation



commit 4a0df71e312161ef58addef7a8075704e3b9f59a
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Wed Jan 9 13:06:46 2013 -0500

    Fix another GObject deprecation

 src/orca/braille.py |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/orca/braille.py b/src/orca/braille.py
index 30253e9..ce92f4b 100644
--- a/src/orca/braille.py
+++ b/src/orca/braille.py
@@ -38,8 +38,7 @@ import signal
 import os
 
 from gi.repository import GLib
-from gi.repository import GObject
-GObject.threads_init()
+GLib.threads_init()
 
 try:
     import louis
@@ -1796,9 +1795,10 @@ def init(callback=None, tty=7):
             debug.println(\
                 debug.LEVEL_CONFIGURATION,
                 "Braille module has been initialized using tty=%d" % tty)
-        _brlAPISourceId = GObject.io_add_watch(_brlAPI.fileDescriptor,
-                                               GObject.IO_IN,
-                                               _brlAPIKeyReader)
+        _brlAPISourceId = GLib.io_add_watch(_brlAPI.fileDescriptor,
+                                            GLib.PRIORITY_DEFAULT,
+                                            GLib.IO_IN,
+                                            _brlAPIKeyReader)
     except NameError:
         debug.println(debug.LEVEL_CONFIGURATION, "BrlApi is not defined")
         return False



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