Commit 94b2d1e5 authored by Philipp Hörist's avatar Philipp Hörist

Fix passing too many args

parent 2e53f47d
...@@ -68,7 +68,7 @@ def get_builder(file_name, widget=None): ...@@ -68,7 +68,7 @@ def get_builder(file_name, widget=None):
if widget is not None: if widget is not None:
builder.add_objects_from_string(xml_text, [widget]) builder.add_objects_from_string(xml_text, [widget])
else: else:
builder.add_from_string(xml_text, -1) builder.add_from_string(xml_text)
else: else:
if widget is not None: if widget is not None:
builder.add_objects_from_file(file_path, [widget]) builder.add_objects_from_file(file_path, [widget])
......
...@@ -144,7 +144,7 @@ def get_gtk_builder(file_name, widget=None): ...@@ -144,7 +144,7 @@ def get_gtk_builder(file_name, widget=None):
if widget is not None: if widget is not None:
builder.add_objects_from_string(xml_text, [widget]) builder.add_objects_from_string(xml_text, [widget])
else: else:
builder.add_from_string(xml_text, -1) builder.add_from_string(xml_text)
else: else:
if widget is not None: if widget is not None:
builder.add_objects_from_file(file_path, [widget]) builder.add_objects_from_file(file_path, [widget])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment