systray - allow multiple

now we no longer have xmbed, allow multiple instances.

fixes T8370
This commit is contained in:
Carsten Haitzler 2019-10-14 10:21:11 +01:00
parent fca53bbd3f
commit b3e7009d65
1 changed files with 0 additions and 13 deletions

View File

@ -7,7 +7,6 @@ static const char _sig_source[] = "e";
static E_Module *systray_mod = NULL;
static Systray_Context *ctx = NULL;
EINTERN Instance *instance = NULL; /* only one systray ever possible */
static char tmpbuf[4096]; /* general purpose buffer, just use immediately */
#define SYSTRAY_MIN_W 16
@ -213,14 +212,6 @@ _gc_init(E_Gadcon *gc, const char *name, const char *id, const char *style)
if (!systray_mod)
return NULL;
if ((!id) || (instance))
{
e_util_dialog_internal
(_("Another systray exists"),
_("There can be only one systray gadget and "
"another one already exists."));
return NULL;
}
inst = E_NEW(Instance, 1);
if (!inst)
@ -254,7 +245,6 @@ _gc_init(E_Gadcon *gc, const char *name, const char *id, const char *style)
inst->notifier = systray_notifier_host_new(inst, inst->gcc->gadcon);
instance = inst;
return inst->gcc;
}
@ -273,9 +263,6 @@ _gc_shutdown(E_Gadcon_Client *gcc)
evas_object_del(inst->ui.gadget);
if (instance == inst)
instance = NULL;
if (inst->job.size_apply)
ecore_job_del(inst->job.size_apply);