From 6107f2fbe0890267120db59380250470552228b1 Mon Sep 17 00:00:00 2001 From: Marcel Hollerbach Date: Wed, 14 Oct 2015 23:18:56 +0200 Subject: [PATCH] systray: allow more than one systray --- src/modules/systray/e_mod_main.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/modules/systray/e_mod_main.c b/src/modules/systray/e_mod_main.c index 4f4636ab8..81f15cfd6 100644 --- a/src/modules/systray/e_mod_main.c +++ b/src/modules/systray/e_mod_main.c @@ -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 @@ -144,14 +143,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) @@ -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); - instance = inst; return inst->gcc; }