gimp/app
Michael Natterer b19deeb311 Refactored modifier handling of displays and tools. Hopefully finally
2003-10-14  Michael Natterer  <mitch@gimp.org>

	Refactored modifier handling of displays and tools. Hopefully
	finally fixes bug #124135.

	* app/tools/gimptool.[ch] (struct GimpTool): added private members
	"focus_display" and "modifier_state" so tools are aware of their
	modifier state.

	* app/tools/gimptool.[ch]
	* app/tools/tool_manager.[ch]: removed all public modifier_key()
	API and added set_focus_display() and set_modifier_state()
	instead.

	* app/tools/tool_manager.c (tool_manager_select_tool)
	* app/display/gimpdisplay.c (gimp_display_delete): set the
	active_tool's focus_display to NULL.

	* app/display/gimpdisplayshell.[ch] (struct GimpDisplayShell):
	added almost the whole stuff that used to be static variables of
	gimp_display_shell_tool_events(). Cleaned up the struct a bit.

	* app/display/gimpdisplayshell-callbacks.c: removed utility
	function gimp_display_shell_update_tool_modifiers().

	(gimp_display_shell_tool_events):

	- Replaced all calls to gimp_display_shell_update_tool_modifiers()
	  and tool_manager_modifier_key_active() by
	  tool_manager_modifier_state_active().

	- Call tool_manager_focus_display_active() before setting the
	  tool's modifier_state. Set the tool's focus_display to NULL when
	  we get a focus_out event.

	- Don't grab/ungrab the keyboard twice when <space>-selecting the
	  move tool.

	- Removed most static variables and use the new members of
	  GimpDisplayShell. Don't remember any old modifier states since
	  GimpTool does that by itself now.
2003-10-14 11:14:28 +00:00
..
actions renamed gimp_dialog_factories_idle() and _unidle() to 2003-10-13 11:57:50 +00:00
base a little bit of tweaking. 2003-10-01 01:01:26 +00:00
composite Updated/improved/organised documentation comments. 2003-10-13 18:49:38 +00:00
config app/Makefile.am app/main.c app/config/Makefile.am app/config/makefile.msc 2003-10-13 22:55:25 +00:00
core Refactored modifier handling of displays and tools. Hopefully finally 2003-10-14 11:14:28 +00:00
dialogs app/widgets/gimpdocked.[ch] renamed GimpDockedIface to 2003-10-11 14:30:18 +00:00
display Refactored modifier handling of displays and tools. Hopefully finally 2003-10-14 11:14:28 +00:00
file renamed GimpOrientationType with Compat postfix to avoid name clashing 2003-07-26 17:37:32 +00:00
gui renamed gimp_dialog_factories_idle() and _unidle() to 2003-10-13 11:57:50 +00:00
menus removed the grid parasite related functions from here ... 2003-10-10 14:11:47 +00:00
paint removed debugging output that shouldd have never been committed. 2003-10-12 13:28:05 +00:00
paint-funcs Use gint instead of guint. Fixes Debian bug report #205889. 2003-10-05 17:00:59 +00:00
pdb app/widgets/gimpdocked.[ch] renamed GimpDockedIface to 2003-10-11 14:30:18 +00:00
plug-in added lots more "GimpFooFunc gui_foo_func" vtable entries to the Gimp 2003-09-10 22:06:45 +00:00
text app/widgets/gimpdocked.[ch] renamed GimpDockedIface to 2003-10-11 14:30:18 +00:00
tools Refactored modifier handling of displays and tools. Hopefully finally 2003-10-14 11:14:28 +00:00
vectors app/core/Makefile.am added small wrappers to ease handling of image units 2003-10-01 17:32:14 +00:00
widgets cleanup & cruft removal. 2003-10-13 12:42:52 +00:00
xcf removed the grid parasite related functions from here ... 2003-10-10 14:11:47 +00:00
.cvsignore Makefile.am configure.in gimp-1.3.pc.in added pkg-config files for 2001-11-25 00:19:38 +00:00
Makefile.am app/Makefile.am app/main.c app/config/Makefile.am app/config/makefile.msc 2003-10-13 22:55:25 +00:00
airbrush.c prototype for an extension that allows gmodules as plugins. Known bug: 2001-02-14 04:55:21 +00:00
app_procs.c fixed starting with --no-splash. 2003-10-06 14:52:05 +00:00
app_procs.h Got rid of the last global variables except the_gimp: 2003-09-09 16:47:59 +00:00
batch.c s/extension/plug_in/ for Script-Fu procedures to get batch mode working 2003-09-03 09:30:09 +00:00
batch.h added G_SPAWN_CHILD_INHERITS_STDIN to the flags passed to g_spawn_async(). 2003-03-21 16:50:55 +00:00
errors.c app/errors.c (gimp_eek) app/main.c (main) (gimp_text_console_exit) call 2003-10-10 10:02:34 +00:00
errors.h Got rid of the last global variables except the_gimp: 2003-09-09 16:47:59 +00:00
gimp-intl.h Makefile.am removed this header file. 2003-03-25 16:38:19 +00:00
gimp.rc Second batch of Win32 merge. 1999-03-07 12:56:03 +00:00
libgimp_glue.c changed again to take no paramaters and use _gimp_standard_help_func from 2003-05-25 14:23:43 +00:00
libgimp_glue.h changed again to take no paramaters and use _gimp_standard_help_func from 2003-05-25 14:23:43 +00:00
main.c app/Makefile.am app/main.c app/config/Makefile.am app/config/makefile.msc 2003-10-13 22:55:25 +00:00
makefile.msc renamed GimpOrientationType with Compat postfix to avoid name clashing 2003-07-26 17:37:32 +00:00
paint_core.h prototype for an extension that allows gmodules as plugins. Known bug: 2001-02-14 04:55:21 +00:00
paint_options.h prototype for an extension that allows gmodules as plugins. Known bug: 2001-02-14 04:55:21 +00:00
plug_in_cmds.c Garry R. Osgood <grosgood@rcn.com> 2001-03-11 13:15:41 +00:00
transform_core.c prototype for an extension that allows gmodules as plugins. Known bug: 2001-02-14 04:55:21 +00:00
wilber.ico Second batch of Win32 merge. 1999-03-07 12:56:03 +00:00