[gimp] Make the checks in GimpTool::initialize() work reliably
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] Make the checks in GimpTool::initialize() work reliably
- Date: Fri, 21 Aug 2009 17:05:02 +0000 (UTC)
commit ed2c002fd8ce87917d4a9acb6052fa0287971a65
Author: Michael Natterer <mitch gimp org>
Date: Fri Aug 21 19:04:45 2009 +0200
Make the checks in GimpTool::initialize() work reliably
Set tool->display and tool->drawable to NULL in button_release()
so initialize() is actually called before each button_press().
app/tools/gimpbucketfilltool.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/app/tools/gimpbucketfilltool.c b/app/tools/gimpbucketfilltool.c
index 2af8f8d..ac52085 100644
--- a/app/tools/gimpbucketfilltool.c
+++ b/app/tools/gimpbucketfilltool.c
@@ -195,6 +195,9 @@ gimp_bucket_fill_tool_button_release (GimpTool *tool,
GIMP_TOOL_CLASS (parent_class)->button_release (tool, coords, time, state,
release_type, display);
+
+ tool->display = NULL;
+ tool->drawable = NULL;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]