[gimp] app: Clarify why each dock has its own context
- From: Martin Nordholts <martinn src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] app: Clarify why each dock has its own context
- Date: Sat, 12 Sep 2009 11:26:53 +0000 (UTC)
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]