[gedit/wip/loader-saver: 8/55] app: use GtkSourceEncoding



commit e35bade75149b16d3c306a0c30dd0af1fbe8497f
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Thu Jun 12 00:23:30 2014 +0200

    app: use GtkSourceEncoding

 gedit/gedit-app.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gedit/gedit-app.c b/gedit/gedit-app.c
index 15d5c3b..eed2d39 100644
--- a/gedit/gedit-app.c
+++ b/gedit/gedit-app.c
@@ -89,7 +89,7 @@ struct _GeditAppPrivate
 static gboolean new_window = FALSE;
 static gboolean new_document = FALSE;
 static gchar *geometry = NULL;
-static const GeditEncoding *encoding = NULL;
+static const GtkSourceEncoding *encoding = NULL;
 static GInputStream *stdin_stream = NULL;
 static GSList *file_list = NULL;
 static gint line_position = 0;
@@ -872,7 +872,7 @@ gedit_app_command_line (GApplication            *application,
 
        if (g_variant_dict_lookup (options, "encoding", "&s", &encoding_charset))
        {
-               encoding = gedit_encoding_get_from_charset (encoding_charset);
+               encoding = gtk_source_encoding_get_from_charset (encoding_charset);
 
                if (encoding == NULL)
                {
@@ -940,11 +940,11 @@ gedit_app_handle_local_options (GApplication *application,
        if (g_variant_dict_contains (options, "list-encodings"))
        {
                gint i = 0;
-               const GeditEncoding *enc;
+               const GtkSourceEncoding *enc;
 
-               while ((enc = gedit_encoding_get_from_index (i)) != NULL)
+               while ((enc = gtk_source_encoding_get_from_index (i)) != NULL)
                {
-                       g_print ("%s\n", gedit_encoding_get_charset (enc));
+                       g_print ("%s\n", gtk_source_encoding_get_charset (enc));
 
                        ++i;
                }


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