forked from AuroraMiddleware/gtk
Convert GtkComboBox items propertly
If the last character is a newline, just ignore it. This is what glade normally writes, fixes #578276.
This commit is contained in:
parent
4ecd6a0f89
commit
fbe7ba55ce
@ -560,6 +560,8 @@ class GtkBuilderConverter(object):
|
||||
data = self._dom.createElement('data')
|
||||
model.appendChild(data)
|
||||
|
||||
if value.endswith('\n'):
|
||||
value = value[:-1]
|
||||
for item in value.split('\n'):
|
||||
row = self._dom.createElement('row')
|
||||
data.appendChild(row)
|
||||
|
Loading…
Reference in New Issue
Block a user