From 4706634146310508c98616d50c4aed0ea61dec7e Mon Sep 17 00:00:00 2001 From: "Stephen M. Cameron" Date: Fri, 24 Feb 2012 08:17:31 +0100 Subject: [PATCH] fio: add job file to gui temporarily Signed-off-by: Stephen M. Cameron Signed-off-by: Jens Axboe --- gfio.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/gfio.c b/gfio.c index 84d42697..4183b689 100644 --- a/gfio.c +++ b/gfio.c @@ -60,6 +60,9 @@ struct gui { GtkWidget *port_label; GtkWidget *port_entry; GtkWidget *hostname_combo_box; /* ipv4, ipv6 or socket */ + GtkWidget *jobfile_hbox; + GtkWidget *jobfile_label; + GtkWidget *jobfile_entry; pthread_t t; } ui; @@ -230,6 +233,16 @@ static void init_ui(int *argc, char **argv[], struct gui *ui) gtk_container_add(GTK_CONTAINER (ui->hostname_hbox), ui->hostname_combo_box); gtk_container_add(GTK_CONTAINER (ui->vbox), ui->hostname_hbox); + /* + * Set up jobfile text entry (temporary until gui really works) + */ + ui->jobfile_hbox = gtk_hbox_new(FALSE, 0); + ui->jobfile_label = gtk_label_new("Job file:"); + ui->jobfile_entry = gtk_entry_new(); + gtk_container_add(GTK_CONTAINER (ui->jobfile_hbox), ui->jobfile_label); + gtk_container_add(GTK_CONTAINER (ui->jobfile_hbox), ui->jobfile_entry); + gtk_container_add(GTK_CONTAINER (ui->vbox), ui->jobfile_hbox); + /* * Set up thread status progress bar */ -- 2.25.1