44 lines
2.1 KiB
C
44 lines
2.1 KiB
C
#include <stdio.h>
|
|
#include <gtk-4.0/gtk/gtk.h>
|
|
|
|
#include "hot.h"
|
|
#include "display.h"
|
|
#include "contain.h"
|
|
#include "texts.h"
|
|
|
|
void ui_toggle_run_edit()
|
|
{
|
|
if (!get_run_edit_mode()) {g_printerr("Can't find self->main_button_run_edit !\n"); return;}
|
|
printf("window.ui_toggle_run_edit() >>> mode = %d", get_run_edit_mode ());
|
|
if (get_run_edit_mode()) {
|
|
gtk_button_set_icon_name (GTK_BUTTON (get_btt_run_xor_edit()), "system-run-symbolic");
|
|
set_run_edit_mode (0);
|
|
} else {
|
|
gtk_button_set_icon_name (GTK_BUTTON (get_btt_run_xor_edit()), "document-edit-symbolic");
|
|
set_run_edit_mode (1);
|
|
}
|
|
printf(" > %d\n", get_run_edit_mode ());
|
|
}
|
|
|
|
void on_togglerunedit_action (GSimpleAction *action, GVariant *parameter, gpointer user_data) {
|
|
// GemGraphClientApplication *self = user_data;
|
|
// g_assert (GEM_GRAPH_CLIENT_IS_APPLICATION(self));
|
|
printf("| >>> callback.on_togglerunedit_action() >>> ");
|
|
ui_toggle_run_edit ();
|
|
}
|
|
|
|
void on_quit_action (GSimpleAction *action, GVariant *parameter, gpointer user_data) {}
|
|
void on_about_action (GSimpleAction *action, GVariant *parameter, gpointer user_data) {}
|
|
void on_preferences_action (GSimpleAction *action, GVariant *parameter, gpointer user_data) {}
|
|
void on_togglerunstop_action (GSimpleAction *action, GVariant *parameter, gpointer user_data) {}
|
|
void on_togglesidebar_action (GSimpleAction *action, GVariant *parameter, gpointer user_data) {}
|
|
void on_editmode_action (GSimpleAction *action, GVariant *parameter, gpointer user_data) {}
|
|
void on_runmode_action (GSimpleAction *action, GVariant *parameter, gpointer user_data) {}
|
|
void on_presentmode_action (GSimpleAction *action, GVariant *parameter, gpointer user_data) {}
|
|
void on_openfile_action (GSimpleAction *action, GVariant *parameter, gpointer user_data) {}
|
|
void on_closefile_action (GSimpleAction *action, GVariant *parameter, gpointer user_data) {}
|
|
void on_savefile_action (GSimpleAction *action, GVariant *parameter, gpointer user_data) {}
|
|
void on_toast_close_action (GSimpleAction *action, GVariant *parameter, gpointer user_data) {}
|
|
|
|
|