From 25723bbb0f82db73dc2712cd517d7aac74321f01 Mon Sep 17 00:00:00 2001 From: Eric House Date: Fri, 5 Aug 2016 12:02:05 -0700 Subject: [PATCH] put main games window in a scrolling container --- xwords4/linux/gtkmain.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xwords4/linux/gtkmain.c b/xwords4/linux/gtkmain.c index 4c39b91be..bbaf5359d 100644 --- a/xwords4/linux/gtkmain.c +++ b/xwords4/linux/gtkmain.c @@ -473,9 +473,13 @@ makeGamesWindow( GtkAppGlobals* apg ) G_CALLBACK(handle_destroy), apg ); setWindowTitle( apg ); + + GtkWidget* swin = gtk_scrolled_window_new( NULL, NULL ); + gtk_container_add( GTK_CONTAINER(window), swin ); + gtk_widget_show( swin ); GtkWidget* vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); - gtk_container_add( GTK_CONTAINER(window), vbox ); + gtk_container_add( GTK_CONTAINER(swin), vbox ); gtk_widget_show( vbox ); GtkWidget* list = init_games_list( apg ); apg->listWidget = list;