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



commit 26d7d628fda80abcaddaaa032f05759641e312c3
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]