2024-05-31 22:34:15 +02:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <gtk-4.0/gtk/gtk.h>
|
|
|
|
|
|
|
|
#include "hot.h"
|
|
|
|
#include "display.h"
|
|
|
|
#include "contain.h"
|
|
|
|
#include "texts.h"
|
|
|
|
|
2024-06-02 05:45:50 +02:00
|
|
|
void ui_toggle_run_edit (GtkWidget *btt_run_xor_edit, gpointer data)
|
2024-05-31 22:34:15 +02:00
|
|
|
{
|
|
|
|
printf("window.ui_toggle_run_edit() >>> mode = %d", get_run_edit_mode ());
|
|
|
|
if (get_run_edit_mode()) {
|
2024-06-02 05:45:50 +02:00
|
|
|
gtk_button_set_icon_name (GTK_BUTTON (btt_run_xor_edit), "system-run-symbolic");
|
2024-05-31 22:34:15 +02:00
|
|
|
set_run_edit_mode (0);
|
|
|
|
} else {
|
2024-06-02 05:45:50 +02:00
|
|
|
gtk_button_set_icon_name (GTK_BUTTON (btt_run_xor_edit), "document-edit-symbolic");
|
2024-05-31 22:34:15 +02:00
|
|
|
set_run_edit_mode (1);
|
|
|
|
}
|
|
|
|
printf(" > %d\n", get_run_edit_mode ());
|
|
|
|
}
|
|
|
|
|