fix deleting of signal callbacks with empty strings for signal or source (they're...
authorrephorm <rephorm>
Tue, 13 Feb 2007 09:58:49 +0000 (09:58 +0000)
committerrephorm <rephorm@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 13 Feb 2007 09:58:49 +0000 (09:58 +0000)
SVN revision: 28344

legacy/edje/src/lib/edje_program.c

index eff9015..d9c3c69 100644 (file)
@@ -93,8 +93,10 @@ edje_object_signal_callback_del(Evas_Object *obj, const char *emission, const ch
        
        escb = l->data;
        if ((escb->func == func) && 
-           (!strcmp(escb->signal, emission)) &&
-           (!strcmp(escb->source, source)))
+           ((!escb->signal && !emission[0]) ||
+             (escb->signal && !strcmp(escb->signal, emission))) &&
+           ((!escb->source && !source[0]) ||
+             (escb->source && !strcmp(escb->source, source))))
          {
             void *data;