switch off fullscreen mode on Escape key press events only. The shell

2003-12-11  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-callbacks.c (gimp_display_shell_events):
	switch off fullscreen mode on Escape key press events only. The shell
	should not react on the key release event it gets when a dialog is
	closed using the Escape key.
This commit is contained in:
Sven Neumann 2003-12-11 12:43:48 +00:00 committed by Sven Neumann
parent f5af3d3a66
commit 1bc30847cc
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2003-12-11 Sven Neumann <sven@gimp.org>
* app/display/gimpdisplayshell-callbacks.c (gimp_display_shell_events):
switch off fullscreen mode on Escape key press events only. The shell
should not react on the key release event it gets when a dialog is
closed using the Escape key.
2003-12-09 DindinX <david@dindinx.org> 2003-12-09 DindinX <david@dindinx.org>
* libgimp/gimpmiscui.c: * libgimp/gimpmiscui.c:

View File

@ -168,6 +168,7 @@ gimp_display_shell_events (GtkWidget *widget,
break; break;
case GDK_Escape: case GDK_Escape:
if (event->type == GDK_KEY_PRESS)
gimp_display_shell_set_fullscreen (shell, FALSE); gimp_display_shell_set_fullscreen (shell, FALSE);
break; break;