summaryrefslogtreecommitdiffstats
path: root/zoomedit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'zoomedit.cpp')
-rw-r--r--zoomedit.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/zoomedit.cpp b/zoomedit.cpp
index 580e224..682127c 100644
--- a/zoomedit.cpp
+++ b/zoomedit.cpp
@@ -2,15 +2,12 @@
#include <gtk/gtkgl.h>
#include <stdlib.h>
#include "Level.h"
-#include "window.h"
+#include "WindowManager.h"
#include "edit.h"
int main(int argc, char *argv[]) {
GdkGLConfig *glconfig;
- GtkWidget *window;
-
- setLevel(new Level());
gtk_init(&argc, &argv);
gtk_gl_init(&argc, &argv);
@@ -22,13 +19,9 @@ int main(int argc, char *argv[]) {
exit (1);
}
- window = createMainWindow(glconfig);
-
- gtk_widget_show(window);
-
- gtk_main();
+ WindowManager window(glconfig);
- delete getLevel();
+ window.run();
return 0;
}