Toggle aspect/antiscion changer on toolbar when going back to list
Fixes #78
This commit is contained in:
parent
24c41fb3dd
commit
8eaf230db6
@ -42,6 +42,7 @@ struct _AgWindowPrivate {
|
|||||||
GtkWidget *timezone;
|
GtkWidget *timezone;
|
||||||
GtkWidget *house_system;
|
GtkWidget *house_system;
|
||||||
GtkWidget *display_theme;
|
GtkWidget *display_theme;
|
||||||
|
GtkWidget *toolbar_aspect;
|
||||||
|
|
||||||
GtkWidget *tab_list;
|
GtkWidget *tab_list;
|
||||||
GtkWidget *tab_chart;
|
GtkWidget *tab_chart;
|
||||||
@ -1619,6 +1620,7 @@ 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);
|
||||||
g_clear_object(&(priv->chart));
|
g_clear_object(&(priv->chart));
|
||||||
ag_db_chart_save_free(priv->saved_data);
|
ag_db_chart_save_free(priv->saved_data);
|
||||||
priv->saved_data = NULL;
|
priv->saved_data = NULL;
|
||||||
@ -2532,6 +2534,11 @@ ag_window_class_init(AgWindowClass *klass)
|
|||||||
AgWindow,
|
AgWindow,
|
||||||
display_theme_model
|
display_theme_model
|
||||||
);
|
);
|
||||||
|
gtk_widget_class_bind_template_child_private(
|
||||||
|
widget_class,
|
||||||
|
AgWindow,
|
||||||
|
toolbar_aspect
|
||||||
|
);
|
||||||
|
|
||||||
gtk_widget_class_bind_template_callback(
|
gtk_widget_class_bind_template_callback(
|
||||||
widget_class,
|
widget_class,
|
||||||
|
Loading…
Reference in New Issue
Block a user