Commit 7a8abc28 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

move the focus to the canvas on button-press events.

2008-05-08  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-callbacks.c
	(gimp_display_shell_events): move the focus to the canvas on
	button-press events.

	* app/widgets/gimpwindow.c (gimp_window_key_press_event): 
removed
	a use of G_UNLIKELY() that is somewhat bogus here.


svn path=/trunk/; revision=25587
parent 62fdd17b
2008-05-08 Sven Neumann <sven@gimp.org>
* app/display/gimpdisplayshell-callbacks.c
(gimp_display_shell_events): move the focus to the canvas on
button-press events.
* app/widgets/gimpwindow.c (gimp_window_key_press_event): removed
a G_UNLIKELY() statement that is somewhat bogus here.
2008-05-08 Sven Neumann <sven@gimp.org>
* app/widgets/gimpfiledialog.[ch]: added infrastructure to access
......
......@@ -193,6 +193,9 @@ gimp_display_shell_events (GtkWidget *widget,
}
case GDK_BUTTON_PRESS:
gtk_widget_grab_focus (widget);
/* fall through */
case GDK_SCROLL:
set_display = TRUE;
break;
......
......@@ -60,7 +60,7 @@ gimp_window_key_press_event (GtkWidget *widget,
*/
/* text widgets get all key events first */
if (G_UNLIKELY (GTK_IS_EDITABLE (focus) || GTK_IS_TEXT_VIEW (focus)))
if (GTK_IS_EDITABLE (focus) || GTK_IS_TEXT_VIEW (focus))
handled = gtk_window_propagate_key_event (window, event);
/* invoke control/alt accelerators */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment