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:
Matthias Clasen 2008-08-29 04:26:19 +00:00 committed by Matthias Clasen
parent 9eae7a1d2e
commit f646e475e7
2 changed files with 10 additions and 1 deletions

View File

@ -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:

View File

@ -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;