Now setting chart name based on edit form

This commit is contained in:
Gergely Polonkai 2013-09-18 00:45:00 +02:00
parent 707e7395b0
commit 25914141c2

View File

@ -135,6 +135,7 @@ recalculate_chart(AgWindow *window)
if (priv->chart == NULL) {
// TODO: make house system configurable
priv->chart = ag_chart_new_full(priv->timestamp, longitude, latitude, 380.0, GSWE_HOUSE_SYSTEM_PLACIDUS);
ag_chart_set_name(priv->chart, gtk_entry_get_text(GTK_ENTRY(priv->name)));
g_signal_connect(priv->chart, "changed", G_CALLBACK(chart_changed), window);
ag_window_update_from_chart(window);
} else {