[tekui-devel] tekui: Window: foreign elements are now longer getting hilited d...
Timm S. Mueller
tmueller at neoscientists.org
Tue Apr 8 23:42:28 CEST 2008
details: http://hg.teklib.org/tekui/rev/feecbaad7831
changeset: 409:feecbaad7831
user: Timm S. Mueller <tmueller at neoscientists.org>
date: Mon Apr 07 22:41:07 2008 +0200
description:
Window: foreign elements are now longer getting hilited during move of
handles; Group: refresh problem in tab groups solved
diffs (74 lines):
diff -r c62c9c5f67d7 -r feecbaad7831 TODO
--- a/TODO Mon Apr 07 15:49:00 2008 +0200
+++ b/TODO Mon Apr 07 22:41:07 2008 +0200
@@ -31,11 +31,11 @@
=== Bugs ===
- * tabbed Group refresh
+ * tabbed Group refresh [ok]
* overlong group headings
* potential memory leak in visual.drawimage()
- * Foreign elements are getting hilited during move
+ * Foreign elements are getting hilited during move [ok]
* Antialiased fonts not supported with Composite Extension
* Initial Window refresh problem: layout/rendered twice
- * Initial Window refresh problem: not layout/rendered at all
+ * Initial Window refresh problem: not layout/rendered at all [ok]
* Memory leak in visual/lua
diff -r c62c9c5f67d7 -r feecbaad7831 tek/class/ui/group.lua
--- a/tek/class/ui/group.lua Mon Apr 07 15:49:00 2008 +0200
+++ b/tek/class/ui/group.lua Mon Apr 07 22:41:07 2008 +0200
@@ -20,7 +20,7 @@ local unpack = unpack
local unpack = unpack
module("tek.class.ui.group", tek.class.ui.gadget)
-_VERSION = "Group 4.0"
+_VERSION = "Group 4.1"
local Group = _M
-------------------------------------------------------------------------------
@@ -381,10 +381,10 @@ end
-------------------------------------------------------------------------------
function Group:refresh()
+ Gadget.refresh(self)
if self.TabElement then
self.TabElement:refresh()
else
- Gadget.refresh(self)
for _, c in ipairs(self.Children) do
c:refresh()
end
diff -r c62c9c5f67d7 -r feecbaad7831 tek/class/ui/window.lua
--- a/tek/class/ui/window.lua Mon Apr 07 15:49:00 2008 +0200
+++ b/tek/class/ui/window.lua Mon Apr 07 22:41:07 2008 +0200
@@ -24,7 +24,7 @@ local insert, remove, sort = table.inser
local insert, remove, sort = table.insert, table.remove, table.sort
module("tek.class.ui.window", tek.class.ui.group)
-_VERSION = "Window 1.30"
+_VERSION = "Window 1.31"
-------------------------------------------------------------------------------
-- Constants & Class data:
@@ -622,13 +622,12 @@ function Window:handleMouseMoveMsg(msg)
self.MouseMoveMsg = msg
self.MouseX, self.MouseY = msg[4], msg[5]
local ae = self.ActiveElement
- if ae then
- if self.ActiveElementCanMove then
- local fmsg = self:filterInput(msg, ae)
- ae:doMove(fmsg[4], fmsg[5])
- end
- end
- self:setHoverElement(self:getHiliteByXY(msg[4], msg[5]))
+ if ae and self.ActiveElementCanMove then
+ local fmsg = self:filterInput(msg, ae)
+ ae:doMove(fmsg[4], fmsg[5])
+ else
+ self:setHoverElement(self:getHiliteByXY(msg[4], msg[5]))
+ end
return msg
end
More information about the tekui-devel
mailing list