From fb2bc139bb8a6d53e02b3cc9fe2d23b287103996 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 16 Sep 2011 10:21:58 +0200 Subject: [PATCH] fontchooser: Use gtk_list_store_insert_with_values() ... instead of append() + set_values() --- gtk/gtkfontchooserwidget.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/gtk/gtkfontchooserwidget.c b/gtk/gtkfontchooserwidget.c index c62582b9c1..71475f9cf7 100644 --- a/gtk/gtkfontchooserwidget.c +++ b/gtk/gtkfontchooserwidget.c @@ -776,13 +776,12 @@ populate_list (GtkFontChooserWidget *fontchooser, font_desc, fontchooser->priv->preview_text); - gtk_list_store_append (model, &iter); - gtk_list_store_set (model, &iter, - FAMILY_COLUMN, families[i], - FACE_COLUMN, faces[j], - PREVIEW_TITLE_COLUMN, family_and_face, - PREVIEW_TEXT_COLUMN, tmp, - -1); + gtk_list_store_insert_with_values (model, &iter, -1, + FAMILY_COLUMN, families[i], + FACE_COLUMN, faces[j], + PREVIEW_TITLE_COLUMN, family_and_face, + PREVIEW_TEXT_COLUMN, tmp, + -1); /* Select the current font, * the default font/face from the theme,