Index: gtk/gtkscrolledwindow.c
===================================================================
--- gtk/gtkscrolledwindow.c	(Revision 21195)
+++ gtk/gtkscrolledwindow.c	(Arbeitskopie)
@@ -1547,7 +1547,7 @@ gtk_scrolled_window_focus (GtkWidget    
 	return TRUE;
     }
 
-  if (!had_focus_child)
+  if (!had_focus_child && GTK_WIDGET_CAN_FOCUS (widget))
     {
       gtk_widget_grab_focus (widget);
       return TRUE;
Index: ChangeLog
===================================================================
--- ChangeLog	(Revision 21195)
+++ ChangeLog	(Arbeitskopie)
@@ -1,3 +1,12 @@
+2008-08-25  Sven Herzberg  <sven@imendio.com>
+
+	Bug 549262 – GtkScrolledWindow should not accept focus unless
+	GTK_CAN_FOCUS is set
+	reviewed by: <delete if not using a buddy>
+
+	* gtk/gtkscrolledwindow.c (gtk_scrolled_window_focus): only grab the
+	focus, if GTK_WIDGET_CAN_FOCUS() returns TRUE
+
 2008-08-25  Gian Mario Tagliaretti  <gianmt@gnome.org>
 
 	Bug 549236 – missing Since 2.14 in gtk_file_chooser_get_file
