diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2016-11-09 01:49:49 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2016-11-09 01:49:49 (GMT) |
commit | 2df715e74d6600ed0a5688a43f6ecd873957326a (patch) | |
tree | feeb09b609a1fea8ae4441a83107767007ccba37 /src/main.c | |
parent | e5808e7df6eb36ff8e150e57e8691a0b05222844 (diff) |
Loaded GTK CSS extensions from files in a given theme directory.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; |