diff --git a/src/orca/orca.py b/src/orca/orca.py
index 636d55d..6ae1d9a 100644
--- a/src/orca/orca.py
+++ b/src/orca/orca.py
@@ -65,6 +65,8 @@ sys.argv[0] = "orca"
 import pyatspi
 import pygtk
 pygtk.require('2.0')
+import gi
+gi.require_version("Gtk", "2.0")
 try:
     # This can fail due to gtk not being available.  We want to
     # be able to recover from that if possible.  The main driver
@@ -72,6 +74,7 @@ try:
     # the desktop is not running.
     #
     import gtk
+    from gi.repository import Gtk as gtk
 except:
     pass
 
