SUCCESS : my RUN/EDIT toggle button is connected
This commit is contained in:
parent
dfca0b41c0
commit
c918d68cbf
|
@ -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), "document-edit-symbolic");
|
||||||
gtk_button_set_icon_name (GTK_BUTTON (run_edit), "system-run-symbolic");
|
gtk_button_set_icon_name (GTK_BUTTON (run_edit), "system-run-symbolic");
|
||||||
// gtk_toggle_button_set_active (run_edit, TRUE);
|
// 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_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_header_bar_pack_start (GTK_HEADER_BAR (my_header_bar), run_edit);
|
||||||
gtk_window_set_titlebar (window, my_header_bar);
|
gtk_window_set_titlebar (window, my_header_bar);
|
||||||
|
|
|
@ -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_menu_button_set_icon_name (GTK_MENU_BUTTON (window->main_button_run_edit), "system-run-symbolic");
|
||||||
gtk_paned_set_position(window->main_paned, 200);
|
gtk_paned_set_position(window->main_paned, 200);
|
||||||
set_run_edit_mode (1); // (EDIT_MODE);
|
set_run_edit_mode (1); // (EDIT_MODE);
|
||||||
ui_setup_glarea(RUN_MODE, GTK_WIDGET(window->run_glarea_box));
|
// ui_setup_glarea(RUN_MODE, GTK_WIDGET(window->run_glarea_box));
|
||||||
ui_create_tree (GTK_WIDGET (window->run_conditions_tree_box));
|
// ui_create_tree (GTK_WIDGET (window->run_conditions_tree_box));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue