Make branch runnable.
This commit is contained in:
parent
b08a4679de
commit
1794f09b21
|
@ -122,11 +122,12 @@ class PreferencePage(object):
|
||||||
:type obj: string
|
:type obj: string
|
||||||
|
|
||||||
"""
|
"""
|
||||||
builder = gtk.Builder()
|
if not os.path.isfile(xmlfile):
|
||||||
builder.add_from_file(xmlfile)
|
xmlfile = os.path.join(os.path.dirname(__file__), xmlfile)
|
||||||
self.set_widget(builder.get_object(obj))
|
self.builder = gtk.Builder()
|
||||||
|
self.builder.add_from_file(xmlfile)
|
||||||
|
self.set_widget(self.builder.get_object(obj))
|
||||||
|
|
||||||
class GtkUIPreferencePage(PreferencePage):
|
class GtkUIPreferencePage(PreferencePage):
|
||||||
def __init__(self, name, xml, widget):
|
def __init__(self, name, xml, widget):
|
||||||
super(GtkUIPreferencePage, self).__init__()
|
super(GtkUIPreferencePage, self).__init__()
|
||||||
|
|
Loading…
Reference in New Issue