aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/extantz
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-05-05 15:08:55 +1000
committerDavid Walter Seikel2014-05-05 15:08:55 +1000
commit334ba10e01c98b8d0ad2901b9ceafa45071050b9 (patch)
tree3fe60c140f14336ecd314b07d4a528bc7289ba78 /src/extantz
parentPrepare for using GuiLua from extantz, but not going through with it just yet... (diff)
downloadSledjHamr-334ba10e01c98b8d0ad2901b9ceafa45071050b9.zip
SledjHamr-334ba10e01c98b8d0ad2901b9ceafa45071050b9.tar.gz
SledjHamr-334ba10e01c98b8d0ad2901b9ceafa45071050b9.tar.bz2
SledjHamr-334ba10e01c98b8d0ad2901b9ceafa45071050b9.tar.xz
Make logDom a stand alone, plus related fix ups and some clean ups.
Diffstat (limited to 'src/extantz')
-rw-r--r--src/extantz/extantz.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/extantz/extantz.c b/src/extantz/extantz.c
index efe3748..03b2362 100644
--- a/src/extantz/extantz.c
+++ b/src/extantz/extantz.c
@@ -1,6 +1,7 @@
1#include "extantz.h" 1#include "extantz.h"
2 2
3 3
4static int logDom; // Our logging domain.
4globals ourGlobals; 5globals ourGlobals;
5 6
6 7
@@ -404,7 +405,7 @@ EAPI_MAIN int elm_main(int argc, char **argv)
404 fprintf(stdout, "library directory is: %s\n", elm_app_lib_dir_get()); 405 fprintf(stdout, "library directory is: %s\n", elm_app_lib_dir_get());
405 fprintf(stdout, "locale directory is: %s\n", elm_app_locale_dir_get()); 406 fprintf(stdout, "locale directory is: %s\n", elm_app_locale_dir_get());
406 407
407 ourGlobals.logDom = loggingStartup("extantz", ourGlobals.logDom); 408 logDom = loggingStartup("extantz", logDom);
408 409
409 // Don't do this, we need to clean up other stuff to, so set a clean up function below. 410 // Don't do this, we need to clean up other stuff to, so set a clean up function below.
410 //elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED); 411 //elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
@@ -516,10 +517,10 @@ EAPI_MAIN int elm_main(int argc, char **argv)
516 evas_object_del(ourGlobals.win); 517 evas_object_del(ourGlobals.win);
517 } 518 }
518 519
519 if (ourGlobals.logDom >= 0) 520 if (logDom >= 0)
520 { 521 {
521 eina_log_domain_unregister(ourGlobals.logDom); 522 eina_log_domain_unregister(logDom);
522 ourGlobals.logDom = -1; 523 logDom = -1;
523 } 524 }
524 525
525 elm_shutdown(); 526 elm_shutdown();