diff --git a/include/ui.h b/include/ui.h index fc19f48..ffa33d8 100644 --- a/include/ui.h +++ b/include/ui.h @@ -28,6 +28,8 @@ #include "../include/base.h" +#define COMMUTE 0 + #define W 1920 #define H 960 #define W_IMAGE W - 320 diff --git a/src/ui/application.c b/src/ui/application.c index 81f32ba..4a9cef2 100644 --- a/src/ui/application.c +++ b/src/ui/application.c @@ -61,34 +61,29 @@ void ui_disable_action(const char *name) { */ static void gem_graph_client_application_activate(GApplication *app) { - int commute_XML_ui_based_window = 1; - - if (commute_XML_ui_based_window) { + if (COMMUTE) { GtkWindow *window; - g_assert(GEM_GRAPH_CLIENT_IS_APPLICATION(app)); + g_assert(GEM_GRAPH_CLIENT_IS_APPLICATION (app)); - window = gtk_application_get_active_window(GTK_APPLICATION (app)); + window = gtk_application_get_active_window (GTK_APPLICATION (app)); if (window == NULL) - window = g_object_new(GEM_GRAPH_CLIENT_TYPE_WINDOW, + window = g_object_new (GEM_GRAPH_CLIENT_TYPE_WINDOW, "application", app, NULL); // Launch with sidebar off ui_toggle_sidebar(); - ui_set_stack(HOME_MODE); + ui_set_stack (HOME_MODE); ui_debug_model_loading (window, "data/models/dimers random walk.xml"); - gtk_window_present(window); + gtk_window_present (window); } else { char *user_data = NULL; - experimental_activate (app, user_data); - // in experimental_activate () are : - // window = GTK_WINDOW (gtk_application_window_new (GTK_APPLICATION (app))); and - // gtk_window_present(window); + experimental_activate (app, user_data); // see > contain.c } }