[tekui-devel] tekui: removed unneeded notification

Timm S. Mueller tmueller at neoscientists.org
Fri Apr 25 00:10:44 CEST 2008


details:   http://hg.teklib.org/tekui/rev/b8850a6b669f
changeset: 449:b8850a6b669f
user:      Timm S. Mueller <tmueller at neoscientists.org>
date:      Thu Apr 24 23:15:58 2008 +0200
description:
removed unneeded notification

diffs (37 lines):

diff -r 023787202473 -r b8850a6b669f tek/class/ui/group.lua
--- a/tek/class/ui/group.lua	Thu Apr 24 22:22:20 2008 +0200
+++ b/tek/class/ui/group.lua	Thu Apr 24 23:15:58 2008 +0200
@@ -21,7 +21,7 @@ local unpack = unpack
 local unpack = unpack
 
 module("tek.class.ui.group", tek.class.ui.gadget)
-_VERSION = "Group 6.2"
+_VERSION = "Group 6.3"
 local Group = _M
 
 -------------------------------------------------------------------------------
@@ -46,8 +46,6 @@ local DEF_BORDERSTYLE_MENUBAR = "group"
 local DEF_BORDERSTYLE_MENUBAR = "group"
 local DEF_BORDER_MENUBAR = { 0, 0, 0, 1 }
 local DEF_BACKPEN_MENUBAR = ui.PEN_MENUBACK
-
-local NOTIFY_DISABLE = { ui.NOTIFY_SELF, "setDisabled", ui.NOTIFY_VALUE }
 
 -------------------------------------------------------------------------------
 --	Class implementation:
@@ -208,7 +206,6 @@ end
 
 function Group:connectGlobal(app, window)
 	Gadget.connectGlobal(self, app, window)
-	self:addNotify("Disabled", ui.NOTIFY_ALWAYS, NOTIFY_DISABLE)
 	for _, c in ipairs(self.Children) do
 		c:connectGlobal(app, window)
 	end
@@ -218,7 +215,6 @@ function Group:disconnectGlobal()
 	for _, c in ipairs(self.Children) do
 		c:disconnectGlobal()
 	end
-	self:remNotify("Disabled", ui.NOTIFY_ALWAYS, NOTIFY_DISABLE)
 	Gadget.disconnectGlobal(self)
 end
 


More information about the tekui-devel mailing list