fontchooser: Use gtk_list_store_insert_with_values()

... instead of append() + set_values()
This commit is contained in:
Benjamin Otte 2011-09-16 10:21:58 +02:00
parent 824aeb77c6
commit fb2bc139bb

View File

@ -776,13 +776,12 @@ populate_list (GtkFontChooserWidget *fontchooser,
font_desc, font_desc,
fontchooser->priv->preview_text); fontchooser->priv->preview_text);
gtk_list_store_append (model, &iter); gtk_list_store_insert_with_values (model, &iter, -1,
gtk_list_store_set (model, &iter, FAMILY_COLUMN, families[i],
FAMILY_COLUMN, families[i], FACE_COLUMN, faces[j],
FACE_COLUMN, faces[j], PREVIEW_TITLE_COLUMN, family_and_face,
PREVIEW_TITLE_COLUMN, family_and_face, PREVIEW_TEXT_COLUMN, tmp,
PREVIEW_TEXT_COLUMN, tmp, -1);
-1);
/* Select the current font, /* Select the current font,
* the default font/face from the theme, * the default font/face from the theme,