[gtksourceview/wip/loader-saver] gtk_source_encoding_foreach(): call for UTF-8 too



commit aa0d56798dd47eb5cb735f2d5f3d121126acfa4e
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Mon Jul 7 19:37:56 2014 +0200

    gtk_source_encoding_foreach(): call for UTF-8 too
    
    It was not done with gtk_source_encoding_get_from_index().

 gtksourceview/gtksourceencoding.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtksourceview/gtksourceencoding.c b/gtksourceview/gtksourceencoding.c
index 27d4fe0..211c28b 100644
--- a/gtksourceview/gtksourceencoding.c
+++ b/gtksourceview/gtksourceencoding.c
@@ -354,6 +354,8 @@ gtk_source_encoding_foreach (GtkSourceEncodingForeachFunc func,
 {
        gint i;
 
+       func (&utf8_encoding, user_data);
+
        for (i = 0; i < GTK_SOURCE_ENCODING_LAST; i++)
        {
                func (&encodings[i], user_data);


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