X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=gfio.c;h=274dea8f59998045bf6965936091351e1bfb1fe3;hb=bd10a0694df75c5ae0257ac2f6c8b51061859321;hp=cf6b5090e26c9e945eb8f6e8ab7b5959237b14c0;hpb=b98ab718031a25ecfd3fa64df3f9992baa83b5ac;p=fio.git diff --git a/gfio.c b/gfio.c index cf6b5090..274dea8f 100644 --- a/gfio.c +++ b/gfio.c @@ -810,6 +810,12 @@ static int do_file_open(struct gui_entry *ge, const gchar *uri) client = fio_client_add_explicit(&gfio_client_ops, ge->host, ge->type, ge->port); if (client) { + char *label = strdup(uri); + + basename(label); + gtk_label_set_text(GTK_LABEL(ge->page_label), basename(label)); + free(label); + gfio_client_added(ge, client); file_add_recent(ge->ui, uri); return 0; @@ -1383,7 +1389,7 @@ static GtkWidget *new_client_page(struct gui_entry *ge) gtk_container_add(GTK_CONTAINER(bottom_align), ge->buttonbox); gtk_box_pack_start(GTK_BOX(main_vbox), bottom_align, FALSE, FALSE, 0); - add_buttons(ge, buttonspeclist, ARRAYSIZE(buttonspeclist)); + add_buttons(ge, buttonspeclist, ARRAY_SIZE(buttonspeclist)); /* * Set up thread status progress bar