[gimp] app: chain up last in gimp_container_tree_view_set_context()



commit 947ea55a07edf820ce9aeea0a4eeb423ee45864c
Author: Michael Natterer <mitch gimp org>
Date:   Mon Feb 6 01:33:01 2012 +0100

    app: chain up last in gimp_container_tree_view_set_context()
    
    so all the view renderers already have the right context when the
    parent interface code selects the right item, which in turn requires
    the context to be already set on the renderers. Fixes warnings when
    dragging dockables around.

 app/widgets/gimpcontainertreeview.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/widgets/gimpcontainertreeview.c b/app/widgets/gimpcontainertreeview.c
index e67129c..005eff4 100644
--- a/app/widgets/gimpcontainertreeview.c
+++ b/app/widgets/gimpcontainertreeview.c
@@ -587,11 +587,11 @@ gimp_container_tree_view_set_context (GimpContainerView *view,
 {
   GimpContainerTreeView *tree_view = GIMP_CONTAINER_TREE_VIEW (view);
 
-  parent_view_iface->set_context (view, context);
-
   if (tree_view->model)
     gimp_container_tree_store_set_context (GIMP_CONTAINER_TREE_STORE (tree_view->model),
                                            context);
+
+  parent_view_iface->set_context (view, context);
 }
 
 static void



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