[gtksourceview] FileLoader: fix variable name



commit 476e3dad001c7a6612e7b9d0c6be785b563811e7
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Thu Jun 11 13:34:50 2015 +0200

    FileLoader: fix variable name
    
    The properties were initially in GtkSourceBuffer, but they have been
    moved to GtkSourceFile afterwards. The variable name was not updated.

 gtksourceview/gtksourcefileloader.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gtksourceview/gtksourcefileloader.c b/gtksourceview/gtksourcefileloader.c
index 0be985d..cfec545 100644
--- a/gtksourceview/gtksourcefileloader.c
+++ b/gtksourceview/gtksourcefileloader.c
@@ -1090,7 +1090,7 @@ gtk_source_file_loader_load_finish (GtkSourceFileLoader  *loader,
                                    GError              **error)
 {
        gboolean ok;
-       gboolean update_buffer_properties;
+       gboolean update_file_properties;
        GError *real_error = NULL;
 
        g_return_val_if_fail (GTK_SOURCE_IS_FILE_LOADER (loader), FALSE);
@@ -1112,11 +1112,11 @@ gtk_source_file_loader_load_finish (GtkSourceFileLoader  *loader,
         * With the other errors, normally the contents hasn't been loaded into
         * the buffer, i.e. the buffer is still empty.
         */
-       update_buffer_properties = ok || (real_error != NULL &&
-                                         real_error->domain == GTK_SOURCE_FILE_LOADER_ERROR &&
-                                         real_error->code == 
GTK_SOURCE_FILE_LOADER_ERROR_CONVERSION_FALLBACK);
+       update_file_properties = ok || (real_error != NULL &&
+                                       real_error->domain == GTK_SOURCE_FILE_LOADER_ERROR &&
+                                       real_error->code == GTK_SOURCE_FILE_LOADER_ERROR_CONVERSION_FALLBACK);
 
-       if (update_buffer_properties && loader->priv->file != NULL)
+       if (update_file_properties && loader->priv->file != NULL)
        {
                /* The location is already updated at the beginning of the
                 * operation.


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