From c918d68cbf2221785e842fc9e4cda9af8af1cd7f Mon Sep 17 00:00:00 2001 From: Jean Sirmai Date: Tue, 28 May 2024 23:21:23 +0200 Subject: [PATCH] SUCCESS : my RUN/EDIT toggle button is connected --- src/ui/contain.c | 2 +- src/ui/window.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ui/contain.c b/src/ui/contain.c index 8bf510f..bc49bca 100644 --- a/src/ui/contain.c +++ b/src/ui/contain.c @@ -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); diff --git a/src/ui/window.c b/src/ui/window.c index 2245381..5fd831c 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -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;