[gnome-builder/gnome-builder-3-26] buffer: fix initial change monitoring state



commit 3d6be3f98db45f87d11dc15bf9bdc7935dfb9c0a
Author: Christian Hergert <chergert redhat com>
Date:   Wed Sep 20 03:54:43 2017 -0700

    buffer: fix initial change monitoring state
    
    Ensure we reload the change monitor immediately after the
    buffer is loaded so that we can see initial changes.

 libide/buffers/ide-buffer.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/libide/buffers/ide-buffer.c b/libide/buffers/ide-buffer.c
index d22f400..5929f4b 100644
--- a/libide/buffers/ide-buffer.c
+++ b/libide/buffers/ide-buffer.c
@@ -653,6 +653,7 @@ ide_buffer_reload_change_monitor (IdeBuffer *self)
                                      G_CALLBACK (ide_buffer__change_monitor_changed_cb),
                                      self,
                                      G_CONNECT_SWAPPED);
+          ide_buffer_change_monitor_reload (priv->change_monitor);
         }
     }
 }
@@ -1096,10 +1097,6 @@ ide_buffer_loaded (IdeBuffer *self)
    */
   g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_FILE]);
 
-  /* Request the change monitor to reload now */
-  if (priv->change_monitor != NULL)
-    ide_buffer_change_monitor_reload (priv->change_monitor);
-
   /* This is suspended until we've loaded */
   ide_highlight_engine_unpause (priv->highlight_engine);
 


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