[gtk+] fontchooserwidget: use appropriate model for GtkTreeIter
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] fontchooserwidget: use appropriate model for GtkTreeIter
- Date: Wed, 29 Jul 2015 19:57:57 +0000 (UTC)
commit 08addd98599d595c7564946e399156ece06160fe
Author: Christian Hergert <christian hergert me>
Date: Wed Jul 29 12:57:22 2015 -0700
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.
gtk/gtkfontchooserwidget.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkfontchooserwidget.c b/gtk/gtkfontchooserwidget.c
index a30f8af..a0db55c 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]