[gimp] app: update the color picker tool's dialog properly
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: update the color picker tool's dialog properly
- Date: Wed, 25 May 2011 21:05:49 +0000 (UTC)
commit 92e3b5532f5bbf29c0548a15695f8f13511d96f5
Author: Michael Natterer <mitch gimp org>
Date: Wed May 25 23:03:16 2011 +0200
app: update the color picker tool's dialog properly
Set its shell to the shell the user clicked on, so raising it won't
implicitly raise its old shell (which is very evil). Set its viewable
to the active drawable so it shows the right preview.
app/tools/gimpcolorpickertool.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/app/tools/gimpcolorpickertool.c b/app/tools/gimpcolorpickertool.c
index 41dd4eb..ac99956 100644
--- a/app/tools/gimpcolorpickertool.c
+++ b/app/tools/gimpcolorpickertool.c
@@ -372,6 +372,14 @@ gimp_color_picker_tool_info_update (GimpColorPickerTool *picker_tool,
const GimpRGB *color,
gint color_index)
{
+ GimpTool *tool = GIMP_TOOL (picker_tool);
+
+ gimp_tool_dialog_set_shell (GIMP_TOOL_DIALOG (picker_tool->dialog),
+ gimp_display_get_shell (tool->display));
+ gimp_viewable_dialog_set_viewable (GIMP_VIEWABLE_DIALOG (picker_tool->dialog),
+ GIMP_VIEWABLE (tool->drawable),
+ GIMP_CONTEXT (gimp_tool_get_options (tool)));
+
gimp_color_area_set_color (GIMP_COLOR_AREA (picker_tool->color_area),
color);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]