From: Jens Axboe Date: Fri, 9 Mar 2012 16:24:07 +0000 (+0100) Subject: gfio: make results notebook scrollable too X-Git-Tag: gfio-0.1~197 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=0aa928c49991d100f28aa75116be0036c90ebaa4 gfio: make results notebook scrollable too And also adds menus to both results and job notebook. Signed-off-by: Jens Axboe --- diff --git a/gfio.c b/gfio.c index 3cd6149f..13e3684b 100644 --- a/gfio.c +++ b/gfio.c @@ -876,6 +876,8 @@ static GtkWidget *get_results_window(struct gui_entry *ge) g_signal_connect(win, "destroy", G_CALLBACK(results_window_delete), ge); notebook = gtk_notebook_new(); + gtk_notebook_set_scrollable(GTK_NOTEBOOK(notebook), 1); + gtk_notebook_popup_enable(GTK_NOTEBOOK(notebook)); gtk_container_add(GTK_CONTAINER(win), notebook); ge->results_window = win; @@ -2395,6 +2397,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); gtk_notebook_set_scrollable(GTK_NOTEBOOK(ui->notebook), 1); + gtk_notebook_popup_enable(GTK_NOTEBOOK(ui->notebook)); gtk_container_add(GTK_CONTAINER(ui->vbox), ui->notebook); vbox = new_main_page(ui);