[gimp] Fix setting a context for the unlikely case that the container is frozen
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Subject: [gimp] Fix setting a context for the unlikely case that the container is frozen
- Date: Tue, 28 Jul 2009 17:18:22 +0000 (UTC)
commit 3ae83c5cede092b13ca66afe208c1432096fe76f
Author: Michael Natterer <mitch gimp org>
Date: Tue Jul 28 19:17:42 2009 +0200
Fix setting a context for the unlikely case that the container is frozen
app/widgets/gimpcontainerview.c | 17 ++++++++++-------
1 files changed, 10 insertions(+), 7 deletions(-)
---
diff --git a/app/widgets/gimpcontainerview.c b/app/widgets/gimpcontainerview.c
index 9938eb7..6a16ad4 100644
--- a/app/widgets/gimpcontainerview.c
+++ b/app/widgets/gimpcontainerview.c
@@ -561,23 +561,26 @@ gimp_container_view_real_set_context (GimpContainerView *view,
if (signal_name)
{
- GimpObject *object;
-
g_signal_connect_object (private->context, signal_name,
G_CALLBACK (gimp_container_view_context_changed),
view,
0);
- object = gimp_context_get_by_type (private->context,
- children_type);
-
- gimp_container_view_select_item (view, GIMP_VIEWABLE (object));
-
if (private->dnd_widget)
gimp_dnd_viewable_dest_add (private->dnd_widget,
children_type,
gimp_container_view_viewable_dropped,
view);
+
+ if (! gimp_container_frozen (private->container))
+ {
+ GimpObject *object;
+
+ object = gimp_context_get_by_type (private->context,
+ children_type);
+
+ gimp_container_view_select_item (view, GIMP_VIEWABLE (object));
+ }
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]