Fix deprecated init

This commit is contained in:
Philipp Hörist 2018-11-18 21:31:58 +01:00
parent dffa54f7d3
commit 3c32d51174
1 changed files with 2 additions and 1 deletions

View File

@ -374,7 +374,8 @@ class FileChooserOption(GenericOption):
def __init__(self, *args, filefilter): def __init__(self, *args, filefilter):
GenericOption.__init__(self, *args) GenericOption.__init__(self, *args)
button = Gtk.FileChooserButton(self.label, Gtk.FileChooserAction.OPEN) button = Gtk.FileChooserButton(title=self.label,
action=Gtk.FileChooserAction.OPEN)
button.set_halign(Gtk.Align.END) button.set_halign(Gtk.Align.END)
# GTK Bug: The FileChooserButton expands without limit # GTK Bug: The FileChooserButton expands without limit