This really appears to be a Gtk+ bug, where the shadow type for a GtkScrolledWindow should really be reflected in the viewport that may be created there (with gtk_scrolled_window_add_with_viewport).