From fbe7ba55ce82a9db49132a54b6d0023782b80dc2 Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Tue, 7 Apr 2009 18:04:05 -0300 Subject: [PATCH] Convert GtkComboBox items propertly If the last character is a newline, just ignore it. This is what glade normally writes, fixes #578276. --- gtk/gtk-builder-convert | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk/gtk-builder-convert b/gtk/gtk-builder-convert index e1fccdbaa4..90fff1d0aa 100755 --- a/gtk/gtk-builder-convert +++ b/gtk/gtk-builder-convert @@ -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)