[gimp] app: Clarify why each dock has its own context



commit e2388ed1234033adaebbcff1394520e9b8b111b7
Author: Martin Nordholts <martinn src gnome org>
Date:   Sat Sep 12 13:29:18 2009 +0200

    app: Clarify why each dock has its own context

 app/widgets/gimpmenudock.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/app/widgets/gimpmenudock.c b/app/widgets/gimpmenudock.c
index 5192f92..53078b8 100644
--- a/app/widgets/gimpmenudock.c
+++ b/app/widgets/gimpmenudock.c
@@ -381,6 +381,10 @@ gimp_menu_dock_new (GimpDialogFactory *dialog_factory,
   g_return_val_if_fail (GIMP_IS_CONTAINER (image_container), NULL);
   g_return_val_if_fail (GIMP_IS_CONTAINER (display_container), NULL);
 
+  /* Create a separate context per dock so that docks can be bound to
+   * a specific image and does not necessarily have to follow the
+   * active image in the user context
+   */
   context = gimp_context_new (dialog_factory->context->gimp,
                               "Dock Context", NULL);
 



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