From d26f9f5d8bf258ea2e588cc0081340941eff31d1 Mon Sep 17 00:00:00 2001 From: "Gergely POLONKAI (W00d5t0ck)" Date: Wed, 18 Sep 2013 10:40:17 +0200 Subject: [PATCH] ag_app_open_chart() now saves the URI of the opened chart to the created window --- src/ag-app.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ag-app.c b/src/ag-app.c index 1ab89eb..84eb597 100644 --- a/src/ag-app.c +++ b/src/ag-app.c @@ -110,11 +110,15 @@ ag_app_open_chart(AgApp *app, GFile *file) GtkWidget *window; AgChart *chart; GError *err = NULL; + gchar *uri; chart = ag_chart_load_from_file(file, &err); window = ag_app_create_window(app); ag_window_set_chart(AG_WINDOW(window), chart); ag_window_update_from_chart(AG_WINDOW(window)); + uri = g_file_get_uri(file); + ag_window_set_uri(AG_WINDOW(window), uri); + g_free(uri); } static void