forked from AuroraMiddleware/gtk
fontchooserwidget: use appropriate model for GtkTreeIter
We were previously mixing the model used when filtering with an iter that has been resolved to the backing model. This results in both an invalid row index as well as an invalid iter->stamp.
This commit is contained in:
parent
8695cf3c5a
commit
08addd9859
@ -462,7 +462,7 @@ cursor_changed_cb (GtkTreeView *treeview,
|
|||||||
gtk_tree_model_filter_convert_iter_to_child_iter (GTK_TREE_MODEL_FILTER (priv->filter_model),
|
gtk_tree_model_filter_convert_iter_to_child_iter (GTK_TREE_MODEL_FILTER (priv->filter_model),
|
||||||
&iter,
|
&iter,
|
||||||
&filter_iter);
|
&filter_iter);
|
||||||
gtk_tree_model_get (priv->filter_model, &iter,
|
gtk_tree_model_get (priv->model, &iter,
|
||||||
FONT_DESC_COLUMN, &desc,
|
FONT_DESC_COLUMN, &desc,
|
||||||
-1);
|
-1);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user