diff -r 49bc645df8b7 -r 1cc365c34125 ui/gtk/container.c --- a/ui/gtk/container.c Wed Jan 27 20:55:37 2016 +0100 +++ b/ui/gtk/container.c Fri Jan 29 18:48:56 2016 +0100 @@ -194,7 +194,12 @@ } void ui_scrolledwindow_container_add(UiContainer *ct, GtkWidget *widget, UiBool fill) { + // TODO: check if the widget implements GtkScrollable +#ifdef UI_GTK3 gtk_container_add(GTK_CONTAINER(ct->widget), widget); +#else + gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(ct->widget), widget); +#endif ui_reset_layout(ct->layout); ct->current = widget; }