GNOME Bugzilla – Bug 775525
gtk_flow_box_get_child_at_index shouldn't crash with an invalid index
Last modified: 2016-12-02 18:19:19 UTC
According to the documentation, gtk_flow_box_get_child_at_index should return NULL when the given index is invalid. Instead, it crashes. Here is the equivalent fix for GtkListBox: commit abf10a74b7e2f1b36dcd2896be299508226cce42 Author: Paolo Borelli <pborelli@gnome.org> Date: Sun May 4 19:38:31 2014 +0200 listbox: check gsequence end iter in get_row_at_index
Created attachment 341252 [details] [review] flowbox: Fix get_child_at_index crash with an invalid index
Review of attachment 341252 [details] [review]: sure. Please commit to gtk-3-22 as well
Comment on attachment 341252 [details] [review] flowbox: Fix get_child_at_index crash with an invalid index Pushed to both master and gtk-3-22. Thanks.