Minor code beautification

This commit is contained in:
Gergely Polonkai 2014-09-29 23:27:06 +02:00
parent fc4cd15d59
commit 078a26dc8f
2 changed files with 6 additions and 2 deletions

View File

@ -56,7 +56,8 @@ void ag_icon_view_add_chart(AgIconView *icon_view, AgDbChartSave *chart_save);
GList *ag_icon_view_get_selected_items(AgIconView *icon_view); GList *ag_icon_view_get_selected_items(AgIconView *icon_view);
AgDbChartSave *ag_icon_view_get_chart_save_at_path(AgIconView *icon_view, const GtkTreePath *path); AgDbChartSave *ag_icon_view_get_chart_save_at_path(AgIconView *icon_view,
const GtkTreePath *path);
void ag_icon_view_select_all(AgIconView *icon_view); void ag_icon_view_select_all(AgIconView *icon_view);

View File

@ -1658,7 +1658,10 @@ ag_window_back_action(GSimpleAction *action,
g_debug("Back button pressed"); g_debug("Back button pressed");
if (ag_window_can_close(window, TRUE)) { if (ag_window_can_close(window, TRUE)) {
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(priv->toolbar_aspect), TRUE); gtk_toggle_button_set_active(
GTK_TOGGLE_BUTTON(priv->toolbar_aspect),
TRUE
);
g_clear_object(&(priv->chart)); g_clear_object(&(priv->chart));
ag_db_chart_save_unref(priv->saved_data); ag_db_chart_save_unref(priv->saved_data);
priv->saved_data = NULL; priv->saved_data = NULL;