SUCCESS : my RUN/EDIT toggle button is connected

This commit is contained in:
Jean Sirmai 2024-05-28 23:21:23 +02:00
parent dfca0b41c0
commit c918d68cbf
Signed by: jean
GPG Key ID: FB3115C340E057E3
2 changed files with 3 additions and 3 deletions

View File

@ -186,7 +186,7 @@ void experimental_activate_00 (GtkApplication *app, GtkWindow *window) {
gtk_button_set_icon_name (GTK_BUTTON (run_edit), "document-edit-symbolic");
gtk_button_set_icon_name (GTK_BUTTON (run_edit), "system-run-symbolic");
// gtk_toggle_button_set_active (run_edit, TRUE);
// gtk_actionable_set_action_name (run_edit, "togglerunedit");
gtk_actionable_set_action_name (run_edit, "app.togglerunedit");
// gtk_actionable_set_action_target_value (GTK_WIDGET (run_edit), "togglerunedit"); // ui_toggle_run_edit() GVariant
gtk_header_bar_pack_start (GTK_HEADER_BAR (my_header_bar), run_edit);
gtk_window_set_titlebar (window, my_header_bar);

View File

@ -179,8 +179,8 @@ void ui_toggle_run_edit()
gtk_menu_button_set_icon_name (GTK_MENU_BUTTON (window->main_button_run_edit), "system-run-symbolic");
gtk_paned_set_position(window->main_paned, 200);
set_run_edit_mode (1); // (EDIT_MODE);
ui_setup_glarea(RUN_MODE, GTK_WIDGET(window->run_glarea_box));
ui_create_tree (GTK_WIDGET (window->run_conditions_tree_box));
// ui_setup_glarea(RUN_MODE, GTK_WIDGET(window->run_glarea_box));
// ui_create_tree (GTK_WIDGET (window->run_conditions_tree_box));
break;
default:
break;