gfio: make notebooks scrollable if there are too many
authorJens Axboe <axboe@kernel.dk>
Fri, 9 Mar 2012 16:22:01 +0000 (17:22 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 9 Mar 2012 16:22:01 +0000 (17:22 +0100)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
gfio.c

diff --git a/gfio.c b/gfio.c
index 52389beffae70df40f074b2b81491850ff33f672..3cd6149fafbbeb36c7e126abf1a27be3984b4387 100644 (file)
--- a/gfio.c
+++ b/gfio.c
@@ -2394,6 +2394,7 @@ static void init_ui(int *argc, char **argv[], struct gui *ui)
 
        ui->notebook = gtk_notebook_new();
        g_signal_connect(ui->notebook, "switch-page", G_CALLBACK(notebook_switch_page), ui);
 
        ui->notebook = gtk_notebook_new();
        g_signal_connect(ui->notebook, "switch-page", G_CALLBACK(notebook_switch_page), ui);
+       gtk_notebook_set_scrollable(GTK_NOTEBOOK(ui->notebook), 1);
        gtk_container_add(GTK_CONTAINER(ui->vbox), ui->notebook);
 
        vbox = new_main_page(ui);
        gtk_container_add(GTK_CONTAINER(ui->vbox), ui->notebook);
 
        vbox = new_main_page(ui);