projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b98ab71
)
gfio: set notebook label to base filename
author
Jens Axboe
<axboe@kernel.dk>
Wed, 21 Mar 2012 11:55:49 +0000
(12:55 +0100)
committer
Jens Axboe
<axboe@kernel.dk>
Wed, 21 Mar 2012 11:55:49 +0000
(12:55 +0100)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
gfio.c
patch
|
blob
|
blame
|
history
diff --git
a/gfio.c
b/gfio.c
index cf6b5090e26c9e945eb8f6e8ab7b5959237b14c0..e4d1f218890fe7283eaeb97ff0fd1eb3578563a1 100644
(file)
--- 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;