systray: allow more than one systray

This commit is contained in:
Marcel Hollerbach 2015-10-14 23:18:56 +02:00
parent 240de1e05a
commit 6107f2fbe0
1 changed files with 0 additions and 10 deletions

View File

@ -7,7 +7,6 @@ static const char _sig_source[] = "e";
static E_Module *systray_mod = NULL; static E_Module *systray_mod = NULL;
static Systray_Context *ctx = 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 */ static char tmpbuf[4096]; /* general purpose buffer, just use immediately */
#define SYSTRAY_MIN_W 16 #define SYSTRAY_MIN_W 16
@ -144,14 +143,6 @@ _gc_init(E_Gadcon *gc, const char *name, const char *id, const char *style)
if (!systray_mod) if (!systray_mod)
return NULL; 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); inst = E_NEW(Instance, 1);
if (!inst) if (!inst)
@ -183,7 +174,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); inst->notifier = systray_notifier_host_new(inst, inst->gcc->gadcon);
instance = inst;
return inst->gcc; return inst->gcc;
} }