From f89165a298a9a6c16dea585e64ccd0f0692a7c3c Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Fri, 22 Aug 2014 15:45:09 +0200 Subject: [PATCH] Redraw chart when changing to the chart tab Fixes #59 --- src/ag-window.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ag-window.c b/src/ag-window.c index 0457985..fcb342f 100644 --- a/src/ag-window.c +++ b/src/ag-window.c @@ -394,6 +394,12 @@ ag_window_redraw_aspect_table(AgWindow *window) gtk_widget_show_all(priv->aspect_table); } +/** + * ag_window_redraw_chart: + * @window: the #AgWindow to operate on + * + * Redraw the chart on the chart view. + */ void ag_window_redraw_chart(AgWindow *window) { @@ -1052,6 +1058,7 @@ ag_window_tab_changed_cb(GtkStack *stack, GParamSpec *pspec, AgWindow *window) // not the real active one! if (priv->current_tab == priv->tab_edit) { ag_window_recalculate_chart(window, FALSE); + ag_window_redraw_chart(window); } }