Make branch runnable.

This commit is contained in:
Pedro Algarvio 2010-12-14 17:52:32 +00:00
parent b08a4679de
commit 1794f09b21
1 changed files with 6 additions and 5 deletions

View File

@ -122,11 +122,12 @@ class PreferencePage(object):
:type obj: string
"""
builder = gtk.Builder()
builder.add_from_file(xmlfile)
self.set_widget(builder.get_object(obj))
if not os.path.isfile(xmlfile):
xmlfile = os.path.join(os.path.dirname(__file__), xmlfile)
self.builder = gtk.Builder()
self.builder.add_from_file(xmlfile)
self.set_widget(self.builder.get_object(obj))
class GtkUIPreferencePage(PreferencePage):
def __init__(self, name, xml, widget):
super(GtkUIPreferencePage, self).__init__()