[gnome-builder/wip/libide] libide: notify views to reload file when language changes



commit 64c5da82be36c91daf8e531eb87211f42c367f41
Author: Christian Hergert <christian hergert me>
Date:   Sat Mar 14 17:50:31 2015 -0700

    libide: notify views to reload file when language changes

 libide/ide-buffer.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/libide/ide-buffer.c b/libide/ide-buffer.c
index b539796..288b9b1 100644
--- a/libide/ide-buffer.c
+++ b/libide/ide-buffer.c
@@ -1163,6 +1163,11 @@ _ide_buffer_set_loading (IdeBuffer *self,
           if (current != srclang)
             gtk_source_buffer_set_language (GTK_SOURCE_BUFFER (self), srclang);
 
+          /*
+           * Force the views to reload language state.
+           */
+          g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_FILE]);
+
           g_signal_emit (self, gSignals [LOADED], 0);
         }
     }


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