little change to make sure we don't get given gtk1. seems pretty unlikely to happen, but we might as well handle it nicely

This commit is contained in:
Chris Jones 2008-07-02 10:16:52 +01:00
parent d8a39862f1
commit ce0266b0e4
3 changed files with 7 additions and 0 deletions

View File

@ -43,6 +43,9 @@ import terminatorlib.config
# import gtk libs # import gtk libs
# check just in case anyone runs it on a non-gnome system. # check just in case anyone runs it on a non-gnome system.
try: try:
import pygtk
pygtk.require ("2.0")
import gobject, gtk, pango import gobject, gtk, pango
except: except:
err (_("You need to install the python bindings for " \ err (_("You need to install the python bindings for " \

View File

@ -16,6 +16,8 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
"""Terminator by Chris Jones <cmsj@tenshu.net>""" """Terminator by Chris Jones <cmsj@tenshu.net>"""
import pygtk
pygtk.require ("2.0")
import gobject, gtk, pango import gobject, gtk, pango
#import version details #import version details

View File

@ -16,6 +16,8 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
"""Terminator by Chris Jones <cmsj@tenshu.net>""" """Terminator by Chris Jones <cmsj@tenshu.net>"""
import pygtk
pygtk.require ("2.0")
import gobject, gtk, pango import gobject, gtk, pango
import os, platform, sys import os, platform, sys