aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-01-14 22:44:31 +0000
committerBoris Faure <billiob@gmail.com>2019-01-14 22:45:32 +0000
commitb37a3eefb6f951ddef5f22f74a492555b3198855 (patch)
treef02a9b603e5dd04a791be85c0ba7427ff6c6ff17 /src
parenttermptyesc: extract CBT handler to its own function + tests (diff)
downloadterminology-b37a3eefb6f951ddef5f22f74a492555b3198855.tar.gz
terminology: move log dom registering
the log domain should be registered when there is a new window, not when there is a new term. A windows can exist before a term can exist. Further more, win_new function is using this log domain so it should be inited.
Diffstat (limited to 'src')
-rw-r--r--src/bin/win.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/bin/win.c b/src/bin/win.c
index a53efd0..30b4b59 100644
--- a/src/bin/win.c
+++ b/src/bin/win.c
@@ -1628,6 +1628,13 @@ win_new(const char *name, const char *role, const char *title,
return NULL;
}
+ if (_win_log_dom < 0)
+ {
+ _win_log_dom = eina_log_domain_register("win", NULL);
+ if (_win_log_dom < 0)
+ EINA_LOG_CRIT("Could not create logging domain '%s'.", "win");
+ }
+
tc = (Term_Container*) wn;
tc->term_next = _win_term_next;
tc->term_prev = _win_term_prev;
@@ -5598,13 +5605,6 @@ term_new(Win *wn, Config *config, const char *cmd,
if (!config) abort();
- /* TODO: clean up that */
- if (_win_log_dom < 0)
- {
- _win_log_dom = eina_log_domain_register("win", NULL);
- if (_win_log_dom < 0)
- EINA_LOG_CRIT("Could not create logging domain '%s'.", "win");
- }
termpty_init();
miniview_init();
gravatar_init();