From 8b5f99d5b4eee94e403bd60285a2619fdcac8ab1 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Mon, 11 Aug 2014 22:16:13 +0200 Subject: [PATCH] Rename chart_changed() to ag_window_chart_changed() Just to follow naming conventions --- src/ag-window.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/ag-window.c b/src/ag-window.c index 596b41a..2a3c226 100644 --- a/src/ag-window.c +++ b/src/ag-window.c @@ -834,7 +834,7 @@ ag_window_update_from_chart(AgWindow *window) } static void -chart_changed(AgChart *chart, AgWindow *window) +ag_window_chart_changed(AgChart *chart, AgWindow *window) { ag_window_redraw_chart(window); } @@ -966,7 +966,7 @@ ag_window_recalculate_chart(AgWindow *window) g_signal_connect( priv->chart, "changed", - G_CALLBACK(chart_changed), + G_CALLBACK(ag_window_chart_changed), window ); ag_window_redraw_chart(window); @@ -1664,7 +1664,7 @@ ag_window_set_chart(AgWindow *window, AgChart *chart) if (priv->chart != NULL) { g_signal_handlers_disconnect_by_func( priv->chart, - chart_changed, + ag_window_chart_changed, window ); g_clear_object(&(priv->chart)); @@ -1673,7 +1673,12 @@ ag_window_set_chart(AgWindow *window, AgChart *chart) ag_db_save_data_free(priv->saved_data); priv->chart = chart; - g_signal_connect(priv->chart, "changed", G_CALLBACK(chart_changed), window); + g_signal_connect( + priv->chart, + "changed", + G_CALLBACK(ag_window_chart_changed), + window + ); g_object_ref(chart); priv->saved_data = ag_chart_get_db_save(chart, -1); }