summaryrefslogtreecommitdiff
path: root/gtk/gtkfontchooserwidget.c
diff options
context:
space:
mode:
authorChristian Hergert <christian@hergert.me>2015-07-29 12:57:22 -0700
committerChristian Hergert <christian@hergert.me>2015-07-29 12:57:43 -0700
commit08addd98599d595c7564946e399156ece06160fe (patch)
tree778cb82b869d64facb9c0433bd8bcd2445e7606d /gtk/gtkfontchooserwidget.c
parent8695cf3c5a6195aa46afafe64ade0dff55f3765c (diff)
downloadgtk+-08addd98599d595c7564946e399156ece06160fe.tar.gz
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.
Diffstat (limited to 'gtk/gtkfontchooserwidget.c')
-rw-r--r--gtk/gtkfontchooserwidget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkfontchooserwidget.c b/gtk/gtkfontchooserwidget.c
index a30f8af144..a0db55c753 100644
--- a/gtk/gtkfontchooserwidget.c
+++ b/gtk/gtkfontchooserwidget.c
@@ -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),
&iter,
&filter_iter);
- gtk_tree_model_get (priv->filter_model, &iter,
+ gtk_tree_model_get (priv->model, &iter,
FONT_DESC_COLUMN, &desc,
-1);