From 3dc26b226d3c4ed19a52211beac4a6b689f6fd95 Mon Sep 17 00:00:00 2001 From: Jean Sirmai Date: Thu, 23 May 2024 23:50:47 +0200 Subject: [PATCH] WIP: in windows.c switch(mode) {case EDIT_MODE: (line117) --- include/ui.h | 54 ++++++++++--------------------------------------- src/ui/window.c | 4 ++-- 2 files changed, 13 insertions(+), 45 deletions(-) diff --git a/include/ui.h b/include/ui.h index 60da546..0591830 100644 --- a/include/ui.h +++ b/include/ui.h @@ -63,49 +63,17 @@ void ui_disable_action(const char *name); // // Actions // -void on_about_action(GSimpleAction *action, - GVariant *parameter, - gpointer user_data); - -void on_quit_action(GSimpleAction *action, - GVariant *parameter, - gpointer user_data); - -void on_preferences_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); +void on_about_action (GSimpleAction *action, GVariant *parameter, gpointer user_data); +void on_quit_action (GSimpleAction *action, GVariant *parameter, gpointer user_data); +void on_preferences_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); static const GActionEntry app_actions[] = { diff --git a/src/ui/window.c b/src/ui/window.c index dc325dd..8ed986c 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -114,10 +114,10 @@ void ui_set_stack(int mode) // Switch on the first letter of the mode, because switch is soooo simple :) switch(mode) { - case EDIT_MODE: + case EDIT_MODE:/* gtk_stack_set_visible_child_full(window->main_stack, "edition", - GTK_STACK_TRANSITION_TYPE_CROSSFADE); + GTK_STACK_TRANSITION_TYPE_CROSSFADE);*/ gtk_stack_set_visible_child_full(window->side_stack, "edition", GTK_STACK_TRANSITION_TYPE_CROSSFADE);