WIP: in windows.c switch(mode) {case EDIT_MODE: (line117)
This commit is contained in:
parent
93c33ed216
commit
3dc26b226d
54
include/ui.h
54
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[] = {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue