Bug 143227 - [Tool] Tools do not update their state when the active tool changes
Summary: [Tool] Tools do not update their state when the active tool changes
Status: NEW
Alias: None
Product: GEF
Classification: Tools
Component: GEF-Legacy GEF (MVC) (show other bugs)
Version: 3.1.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: gef-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-23 10:51 EDT by Thomas Maier CLA
Modified: 2010-11-04 06:51 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Maier CLA 2006-05-23 10:51:22 EDT
In my GEF editor, I have bound actions that select tools to keys.  The
actions call paletteViewer.setActiveTool(...). However, when I press a
key while the mouse is over a diagram and the select tool is active,
first the mouse pointer turns into an "X" (this is Linux here),
indicating that "I cannot do that here" (create a new object, e.g.). 
When I move the mouse a little bit (1 pixel is enough), the mouse
pointer turns into something indicating that I can perform the tool's
action.  (May I call another method to work
around this and update the "tool state" manually?)

Furthermore, when I activate a tool (no matter whether I am clicking on
the palette or pressing the corresponding key) while the mouse pointer
is outside the diagram, and then carefully (pixel by pixel) enter the
diagram, first the pointer turns into an "X" and after moving one more
pixel, everything is fine again.  So this somehow looks to me as if the
"tool state" is updated on mouse move events only but not on focus-in
events or when the active tool changes.