summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2012-06-01 16:58:36 -0400
committerMatthias Clasen <mclasen@redhat.com>2012-06-01 16:58:36 -0400
commiteeb52995739773a7ef979c54299e7c93595e8fb0 (patch)
tree117fc2e67c4490083552d12ef715d7602383f60e
parent1b1c7288d9ba8b6ba8e6aa4838310ed65bb8339d (diff)
downloadgtk+-eeb52995739773a7ef979c54299e7c93595e8fb0.tar.gz
GtkFontSel: Don't try to set the cursor on invalid iters
This causes a lot of warnings. https://bugzilla.gnome.org/show_bug.cgi?id=677293
-rw-r--r--gtk/deprecated/gtkfontsel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/deprecated/gtkfontsel.c b/gtk/deprecated/gtkfontsel.c
index 159ac95ae2..74054ad5b9 100644
--- a/gtk/deprecated/gtkfontsel.c
+++ b/gtk/deprecated/gtkfontsel.c
@@ -1055,7 +1055,8 @@ gtk_font_selection_show_available_sizes (GtkFontSelection *fontsel,
found = TRUE;
}
- gtk_tree_model_iter_next (GTK_TREE_MODEL (model), &iter);
+ if (!gtk_tree_model_iter_next (GTK_TREE_MODEL (model), &iter))
+ break;
}
if (!found)