[gtk+] fontchooser: Use gtk_list_store_insert_with_values()



commit fb2bc139bb8a6d53e02b3cc9fe2d23b287103996
Author: Benjamin Otte <otte redhat com>
Date:   Fri Sep 16 10:21:58 2011 +0200

    fontchooser: Use gtk_list_store_insert_with_values()
    
    ... instead of append() + set_values()

 gtk/gtkfontchooserwidget.c |   13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkfontchooserwidget.c b/gtk/gtkfontchooserwidget.c
index c62582b..71475f9 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,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]