aboutsummaryrefslogtreecommitdiffstats
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
parente mixer module - run pulseaudio if connect fails (diff)
downloadenlightenment-devs/bu5hm4n/luncher_verbose.tar.gz
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)
static void
_bar_icon_del(Instance *inst, Icon *ic)
{
+ L_INF("Delete Icon %p", ic);
+
inst->icons = eina_list_remove(inst->icons, ic);
if (ic->preview)
_bar_icon_preview_hide(ic);
@@ -1160,6 +1162,9 @@ _bar_icon_add(Instance *inst, Efreet_Desktop *desktop, E_Client *non_desktop_cli
}
elm_layout_sizing_eval(ic->o_layout);
_bar_aspect(inst);
+
+ L_INF("New Icon %p", ic);
+
return ic;
}
@@ -1170,6 +1175,8 @@ _bar_cb_client_remove(void *data EINA_UNUSED, int type EINA_UNUSED, E_Event_Clie
Eina_List *l = NULL;
char ori[32];
+ L_DBG("Remove client %p", ev);
+
EINA_LIST_FOREACH(luncher_instances, l, inst)
{
Icon *ic = NULL;
@@ -1210,6 +1217,8 @@ _bar_cb_exec_del(void *data EINA_UNUSED, int type EINA_UNUSED, E_Exec_Instance *
E_Client *ec = NULL;
char ori[32];
+ L_DBG("E_Exec_Instance got deleted %p", ex);
+
EINA_LIST_FOREACH(ex->clients, l, ec)
{
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 *
}
if (ic)
{
+ L_INF("Removing client %p from icon %p", ec, ic);
if (ic->starting) elm_layout_signal_emit(ic->o_layout, "e,state,started", "e");
ic->starting = EINA_FALSE;
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)
Eina_List *l = NULL;
Eina_Bool skip;
+ L_DBG("New E_Exec_Instance %p", ex);
+
if (type == E_EVENT_EXEC_NEW_CLIENT)
{
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)
if (ic)
{
if (skip) continue;
+ L_INF("Attaching Client %p to Icon %p", ec, ic);
if (ic->starting) elm_layout_signal_emit(ic->o_layout, "e,state,started", "e");
ic->starting = EINA_FALSE;
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 @@
#include "e.h"
+
+extern int luncher_log;
+
+#define L_DBG(...) EINA_LOG_DOM_DBG(luncher_log, __VA_ARGS__)
+#define L_INF(...) EINA_LOG_DOM_INFO(luncher_log, __VA_ARGS__)
+#define L_WRN(...) EINA_LOG_DOM_WARN(luncher_log, __VA_ARGS__)
+#define L_ERR(...) EINA_LOG_DOM_ERR(luncher_log, __VA_ARGS__)
+#define L_CRI(...) EINA_LOG_DOM_CRIT(luncher_log, __VA_ARGS__)
+
+
E_API extern E_Module_Api e_modapi;
E_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;
E_Module *module = NULL;
Config *luncher_config = NULL;
+int luncher_log;
+
EINTERN void
luncher_init(void)
{
+ luncher_log = eina_log_domain_register("luncher", "cyan");
+
conf_item_edd = E_CONFIG_DD_NEW("Luncher_Config_Item", Config_Item);
#undef T
#undef D