[gnome-builder/wip/chergert/layout] layout: defer view notification to main loop



commit ca884650ab1d711ec0ccddbdaa7fd514b6fd2f90
Author: Christian Hergert <chergert redhat com>
Date:   Fri Jul 14 16:56:56 2017 -0700

    layout: defer view notification to main loop
    
    To make things simpler for addins, we want to defer this
    notification to the main loop so any other widget setup that
    might need to be done can complete. Such notification might
    be hieriarchy_changed where further addins are loaded.

 libide/layout/ide-layout-grid.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libide/layout/ide-layout-grid.c b/libide/layout/ide-layout-grid.c
index 36832ad..45e8688 100644
--- a/libide/layout/ide-layout-grid.c
+++ b/libide/layout/ide-layout-grid.c
@@ -18,6 +18,8 @@
 
 #define G_LOG_DOMAIN "ide-layout-grid"
 
+#include "ide-object.h"
+
 #include "layout/ide-layout-grid.h"
 #include "layout/ide-layout-private.h"
 
@@ -178,7 +180,7 @@ ide_layout_grid_after_set_focus (IdeLayoutGrid *self,
       if (view != (GtkWidget *)priv->_last_focused_view)
         {
           priv->_last_focused_view = (IdeLayoutView *)view;
-          g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_CURRENT_VIEW]);
+          ide_object_notify_in_main (self, properties [PROP_CURRENT_VIEW]);
         }
     }
 }


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