fio: add job file to gui temporarily
authorStephen M. Cameron <stephenmcameron@gmail.com>
Fri, 24 Feb 2012 07:17:31 +0000 (08:17 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 24 Feb 2012 07:17:31 +0000 (08:17 +0100)
Signed-off-by: Stephen M. Cameron <stephenmcameron@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
gfio.c

diff --git a/gfio.c b/gfio.c
index 84d426972a0176b8571aeafdd88d7b70550090c0..4183b68943e42da2d7a9e96233fbc4d49811e607 100644 (file)
--- 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
         */