WIP: in windows.c switch(mode) {case EDIT_MODE: (line117)

This commit is contained in:
Jean Sirmai 2024-05-23 23:50:47 +02:00
parent 93c33ed216
commit 3dc26b226d
Signed by: jean
GPG Key ID: FB3115C340E057E3
2 changed files with 13 additions and 45 deletions

View File

@ -63,49 +63,17 @@ void ui_disable_action(const char *name);
// //
// Actions // Actions
// //
void on_about_action(GSimpleAction *action, void on_about_action (GSimpleAction *action, GVariant *parameter, gpointer user_data);
GVariant *parameter, void on_quit_action (GSimpleAction *action, GVariant *parameter, gpointer user_data);
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_quit_action(GSimpleAction *action, void on_editmode_action (GSimpleAction *action, GVariant *parameter, gpointer user_data);
GVariant *parameter, void on_runmode_action (GSimpleAction *action, GVariant *parameter, gpointer user_data);
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_preferences_action(GSimpleAction *action, void on_closefile_action (GSimpleAction *action, GVariant *parameter, gpointer user_data);
GVariant *parameter, void on_savefile_action (GSimpleAction *action, GVariant *parameter, gpointer user_data);
gpointer user_data); void on_toast_close_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[] = { static const GActionEntry app_actions[] = {

View File

@ -114,10 +114,10 @@ void ui_set_stack(int mode)
// Switch on the first letter of the mode, because switch is soooo simple :) // Switch on the first letter of the mode, because switch is soooo simple :)
switch(mode) { switch(mode) {
case EDIT_MODE: case EDIT_MODE:/*
gtk_stack_set_visible_child_full(window->main_stack, gtk_stack_set_visible_child_full(window->main_stack,
"edition", "edition",
GTK_STACK_TRANSITION_TYPE_CROSSFADE); GTK_STACK_TRANSITION_TYPE_CROSSFADE);*/
gtk_stack_set_visible_child_full(window->side_stack, gtk_stack_set_visible_child_full(window->side_stack,
"edition", "edition",
GTK_STACK_TRANSITION_TYPE_CROSSFADE); GTK_STACK_TRANSITION_TYPE_CROSSFADE);