Use None as yoptions

GTK+-3 does not support to have int as options so we must use None which works
also on GTK+-2.

issue6804
review40711002
This commit is contained in:
Cédric Krier committed 2017-10-08 11:43:33 +02:00
1 parent 2a0607f1eb
commit 6b4341214f
1 file changed
+2 -2
@@ -177,9 +177,9 @@ class TranslateDialog(NoModal):
label.set_mnemonic_widget(widget)
self.widget.translate_widget_set(widget, fuzzy_value)
self.widget.translate_widget_set_readonly(widget, True)
yopt = 0
yopt = None
if self.widget.expand:
yopt |= gtk.EXPAND | gtk.FILL
yopt = gtk.EXPAND | gtk.FILL
table.attach(widget, 1, 2, i, i + 1, yoptions=yopt)
editing = gtk.CheckButton()
editing.connect('toggled', self.editing_toggled, widget)