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);