summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2017-02-20 23:45:52 +0100
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>2017-02-20 23:45:52 +0100
commit4ef537cbfb83c98f9399af80918e255bedb1775f (patch)
tree27b3167c6bdad49ad3f843136519e62ea4e975f7
parent35bb87529f701f0128a338b2313092c4876c6737 (diff)
luncher: add more verbose outputdevs/bu5hm4n/luncher_verbose
-rw-r--r--src/modules/luncher/bar.c13
-rw-r--r--src/modules/luncher/luncher.h10
-rw-r--r--src/modules/luncher/mod.c4
3 files changed, 27 insertions, 0 deletions
diff --git a/src/modules/luncher/bar.c b/src/modules/luncher/bar.c
index d5d9fa18e..48ef32ed0 100644
--- a/src/modules/luncher/bar.c
+++ b/src/modules/luncher/bar.c
@@ -259,6 +259,8 @@ _bar_instance_watch(void *data, E_Exec_Instance *ex, E_Exec_Watch_Type type)
259static void 259static void
260_bar_icon_del(Instance *inst, Icon *ic) 260_bar_icon_del(Instance *inst, Icon *ic)
261{ 261{
262 L_INF("Delete Icon %p", ic);
263
262 inst->icons = eina_list_remove(inst->icons, ic); 264 inst->icons = eina_list_remove(inst->icons, ic);
263 if (ic->preview) 265 if (ic->preview)
264 _bar_icon_preview_hide(ic); 266 _bar_icon_preview_hide(ic);
@@ -1160,6 +1162,9 @@ _bar_icon_add(Instance *inst, Efreet_Desktop *desktop, E_Client *non_desktop_cli
1160 } 1162 }
1161 elm_layout_sizing_eval(ic->o_layout); 1163 elm_layout_sizing_eval(ic->o_layout);
1162 _bar_aspect(inst); 1164 _bar_aspect(inst);
1165
1166 L_INF("New Icon %p", ic);
1167
1163 return ic; 1168 return ic;
1164} 1169}
1165 1170
@@ -1170,6 +1175,8 @@ _bar_cb_client_remove(void *data EINA_UNUSED, int type EINA_UNUSED, E_Event_Clie
1170 Eina_List *l = NULL; 1175 Eina_List *l = NULL;
1171 char ori[32]; 1176 char ori[32];
1172 1177
1178 L_DBG("Remove client %p", ev);
1179
1173 EINA_LIST_FOREACH(luncher_instances, l, inst) 1180 EINA_LIST_FOREACH(luncher_instances, l, inst)
1174 { 1181 {
1175 Icon *ic = NULL; 1182 Icon *ic = NULL;
@@ -1210,6 +1217,8 @@ _bar_cb_exec_del(void *data EINA_UNUSED, int type EINA_UNUSED, E_Exec_Instance *
1210 E_Client *ec = NULL; 1217 E_Client *ec = NULL;
1211 char ori[32]; 1218 char ori[32];
1212 1219
1220 L_DBG("E_Exec_Instance got deleted %p", ex);
1221
1213 EINA_LIST_FOREACH(ex->clients, l, ec) 1222 EINA_LIST_FOREACH(ex->clients, l, ec)
1214 { 1223 {
1215 if (!ec->netwm.state.skip_taskbar) 1224 if (!ec->netwm.state.skip_taskbar)
@@ -1229,6 +1238,7 @@ _bar_cb_exec_del(void *data EINA_UNUSED, int type EINA_UNUSED, E_Exec_Instance *
1229 } 1238 }
1230 if (ic) 1239 if (ic)
1231 { 1240 {
1241 L_INF("Removing client %p from icon %p", ec, ic);
1232 if (ic->starting) elm_layout_signal_emit(ic->o_layout, "e,state,started", "e"); 1242 if (ic->starting) elm_layout_signal_emit(ic->o_layout, "e,state,started", "e");
1233 ic->starting = EINA_FALSE; 1243 ic->starting = EINA_FALSE;
1234 ic->execs = eina_list_remove(ic->execs, ex); 1244 ic->execs = eina_list_remove(ic->execs, ex);
@@ -1371,6 +1381,8 @@ _bar_cb_exec_new(void *data EINA_UNUSED, int type, E_Exec_Instance *ex)
1371 Eina_List *l = NULL; 1381 Eina_List *l = NULL;
1372 Eina_Bool skip; 1382 Eina_Bool skip;
1373 1383
1384 L_DBG("New E_Exec_Instance %p", ex);
1385
1374 if (type == E_EVENT_EXEC_NEW_CLIENT) 1386 if (type == E_EVENT_EXEC_NEW_CLIENT)
1375 { 1387 {
1376 ec = eina_list_data_get(ex->clients); 1388 ec = eina_list_data_get(ex->clients);
@@ -1398,6 +1410,7 @@ _bar_cb_exec_new(void *data EINA_UNUSED, int type, E_Exec_Instance *ex)
1398 if (ic) 1410 if (ic)
1399 { 1411 {
1400 if (skip) continue; 1412 if (skip) continue;
1413 L_INF("Attaching Client %p to Icon %p", ec, ic);
1401 if (ic->starting) elm_layout_signal_emit(ic->o_layout, "e,state,started", "e"); 1414 if (ic->starting) elm_layout_signal_emit(ic->o_layout, "e,state,started", "e");
1402 ic->starting = EINA_FALSE; 1415 ic->starting = EINA_FALSE;
1403 snprintf(ori, sizeof(ori), "e,state,on,%s", _bar_location_get(inst)); 1416 snprintf(ori, sizeof(ori), "e,state,on,%s", _bar_location_get(inst));
diff --git a/src/modules/luncher/luncher.h b/src/modules/luncher/luncher.h
index cbcd22c07..fe116e62e 100644
--- a/src/modules/luncher/luncher.h
+++ b/src/modules/luncher/luncher.h
@@ -3,6 +3,16 @@
3 3
4#include "e.h" 4#include "e.h"
5 5
6
7extern int luncher_log;
8
9#define L_DBG(...) EINA_LOG_DOM_DBG(luncher_log, __VA_ARGS__)
10#define L_INF(...) EINA_LOG_DOM_INFO(luncher_log, __VA_ARGS__)
11#define L_WRN(...) EINA_LOG_DOM_WARN(luncher_log, __VA_ARGS__)
12#define L_ERR(...) EINA_LOG_DOM_ERR(luncher_log, __VA_ARGS__)
13#define L_CRI(...) EINA_LOG_DOM_CRIT(luncher_log, __VA_ARGS__)
14
15
6E_API extern E_Module_Api e_modapi; 16E_API extern E_Module_Api e_modapi;
7 17
8E_API void *e_modapi_init (E_Module *m); 18E_API void *e_modapi_init (E_Module *m);
diff --git a/src/modules/luncher/mod.c b/src/modules/luncher/mod.c
index fa1922caa..b545aad0f 100644
--- a/src/modules/luncher/mod.c
+++ b/src/modules/luncher/mod.c
@@ -5,9 +5,13 @@ Eina_List *luncher_instances = NULL;
5E_Module *module = NULL; 5E_Module *module = NULL;
6Config *luncher_config = NULL; 6Config *luncher_config = NULL;
7 7
8int luncher_log;
9
8EINTERN void 10EINTERN void
9luncher_init(void) 11luncher_init(void)
10{ 12{
13 luncher_log = eina_log_domain_register("luncher", "cyan");
14
11 conf_item_edd = E_CONFIG_DD_NEW("Luncher_Config_Item", Config_Item); 15 conf_item_edd = E_CONFIG_DD_NEW("Luncher_Config_Item", Config_Item);
12#undef T 16#undef T
13#undef D 17#undef D