Updated for SWE-GLib 2.0 API

This commit is contained in:
2013-10-04 00:16:55 +02:00
parent d5011879f9
commit 096111684e
3 changed files with 67 additions and 52 deletions

View File

@@ -112,7 +112,12 @@ ag_app_open_chart(AgApp *app, GFile *file)
GError *err = NULL;
gchar *uri;
chart = ag_chart_load_from_file(file, &err);
if ((chart = ag_chart_load_from_file(file, &err)) == NULL) {
g_print("Error: '%s'\n", err->message);
return;
}
window = ag_app_create_window(app);
ag_window_set_chart(AG_WINDOW(window), chart);
ag_window_update_from_chart(AG_WINDOW(window));