mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-29 06:51:10 +00:00
Bug 549262 – GtkScrolledWindow should not accept focus unless
2008-08-29 Matthias Clasen <mclasen@redhat.com> Bug 549262 – GtkScrolledWindow should not accept focus unless GTK_CAN_FOCUS is set * gtk/gtkscrolledwindow.c (gtk_scrolled_window_focus): only grab the focus, if GTK_WIDGET_CAN_FOCUS() returns TRUE. Patch by Sven Herzberg svn path=/trunk/; revision=21233
This commit is contained in:
parent
9eae7a1d2e
commit
f646e475e7
@ -1,3 +1,12 @@
|
||||
2008-08-29 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
Bug 549262 – GtkScrolledWindow should not accept focus unless
|
||||
GTK_CAN_FOCUS is set
|
||||
|
||||
* gtk/gtkscrolledwindow.c (gtk_scrolled_window_focus): only grab the
|
||||
focus, if GTK_WIDGET_CAN_FOCUS() returns TRUE. Patch by Sven
|
||||
Herzberg
|
||||
|
||||
2008-08-29 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtk.symbols:
|
||||
|
@ -1547,7 +1547,7 @@ gtk_scrolled_window_focus (GtkWidget *widget,
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if (!had_focus_child)
|
||||
if (!had_focus_child && GTK_WIDGET_CAN_FOCUS (widget))
|
||||
{
|
||||
gtk_widget_grab_focus (widget);
|
||||
return TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user