summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2012-03-13 20:29:39 +0100
committerJens Axboe <axboe@kernel.dk>2012-03-13 20:29:39 +0100
commita217ba7de6e2ea26fbd12db663aaf8a5a9f350a7 (patch)
treeb2809199aaf0eb2bc3b99e7fed96fc02dcda6748
parent2c77d831cbe69c88d7cf8c2d9cc83cec35390bd8 (diff)
downloadfio-a217ba7de6e2ea26fbd12db663aaf8a5a9f350a7.tar.gz
fio-a217ba7de6e2ea26fbd12db663aaf8a5a9f350a7.tar.bz2
gfio: fix complaint about unsupported type for recent files
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--gfio.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/gfio.c b/gfio.c
index d491abaf..d0418a45 100644
--- a/gfio.c
+++ b/gfio.c
@@ -2151,7 +2151,16 @@ static void file_close(GtkWidget *w, gpointer data)
static void file_add_recent(struct gui *ui, const gchar *uri)
{
- gtk_recent_manager_add_item(ui->recentmanager, uri);
+ GtkRecentData grd;
+
+ memset(&grd, 0, sizeof(grd));
+ grd.display_name = strdup("gfio");
+ grd.description = strdup("Fio job file");
+ grd.mime_type = strdup(GFIO_MIME);
+ grd.app_name = strdup(g_get_application_name());
+ grd.app_exec = strdup("gfio %f/%u");
+
+ gtk_recent_manager_add_full(ui->recentmanager, uri, &grd);
}
static gchar *get_filename_from_uri(const gchar *uri)