[gedit/wip/loader-saver: 6/19] app: use GtkSourceEncoding



commit 3d7cfaa439f058ca6ce1f58c3694588f81e61b75
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 ed08a75..62eb34f 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;
@@ -855,7 +855,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)
                {
@@ -923,11 +923,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]