summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index 5d0e587..14fa1b4 100644
--- a/src/main.c
+++ b/src/main.c
@@ -35,7 +35,6 @@
#include "core/params.h"
#include "glibext/delayed.h"
#include "glibext/gbinportion.h"
-#include "gtkext/theme.h"
#include "gui/editor.h"
#include "gui/core/core.h"
#include "gui/core/global.h"
@@ -122,9 +121,6 @@ int main(int argc, char **argv)
setlocale (LC_ALL, "");
gtk_init(&argc, &argv);
- if (!load_extra_gtk_theme())
- return EXIT_FAILURE;
-
/* Initialisation du programme */
if (!load_all_basic_components())
return EXIT_FAILURE;
@@ -170,6 +166,8 @@ int main(int argc, char **argv)
editor = create_editor();
+ if (editor == NULL) goto failed_to_load_editor;
+
gtk_widget_show_now(editor);
init_work_queue(get_global_status());
@@ -237,6 +235,8 @@ int main(int argc, char **argv)
//gtk_widget_destroy(editor);
+ failed_to_load_editor:
+
unload_all_basic_components();
return result;