gtk-demo: Make editable cells demo more robust

Desktop / GNOME / GTK - Matthias Clasen [redhat.com] - 19 January 2015 06:36 UTC

When removing all rows, trying to add rows would not work and throw criticals. This is fallout from a recent change to insert rows at the right position. Fix this by handling the 'empty model' case separately.

https://bugzilla.gnome.org/show_bug.cgi?id=743157

531fa78 gtk-demo: Make editable cells demo more robust
demos/gtk-demo/editable_cells.c | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)

Upstream: git.gnome.org


  • Share