[poppler] glib/demo

Albert Astals Cid aacid at kemper.freedesktop.org
Wed Nov 5 11:24:44 PST 2014


 glib/demo/annots.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit d205908930d5dc4ec3a1a1a2c2b93fbb92c2c867
Author: William Bader <williambader at hotmail.com>
Date:   Wed Nov 5 20:23:49 2014 +0100

    Make it proper C

diff --git a/glib/demo/annots.c b/glib/demo/annots.c
index 19457d1..168575e 100644
--- a/glib/demo/annots.c
+++ b/glib/demo/annots.c
@@ -1258,6 +1258,7 @@ pgd_annots_create_widget (PopplerDocument *document)
     GtkTreeIter       iter;
     gchar            *str;
     gint              n_pages;
+    gint              i;
 
     demo = g_new0 (PgdAnnotsDemo, 1);
 
@@ -1309,7 +1310,7 @@ pgd_annots_create_widget (PopplerDocument *document)
     model = gtk_list_store_new(SELECTED_N_COLUMNS,
                                G_TYPE_INT, G_TYPE_STRING);
 
-    for (gint i = 0; i < G_N_ELEMENTS (supported_annots); i++) {
+    for (i = 0; i < G_N_ELEMENTS (supported_annots); i++) {
         gtk_list_store_append (model, &iter);
         gtk_list_store_set (model, &iter,
                             SELECTED_TYPE_COLUMN, supported_annots[i].type,


More information about the poppler mailing list