Seth A. Robinson
2006-03-29 23:04:04 UTC
Hmm, my last patch never got applied (see below) so I'm reposting it with
some new GUI fixes/additions:
1. BUGFIX: Fixed the problem of not being able to click/manipulate GUI
items that extended past their parents size. This was apparent in the
GUIWindow example or any app that lets a drop down menu extend farther than
the window it sat on.
(On the GUIWindow app, if you click Components->Listbox you couldn't
highlight options on the part that overhangs off the window, after these
changes, you can)
2. Added new method int get_item(const CL_Point &pt) method to listbox.h to
get an item by X/Y position.
3. Mem leak fixes from below
I highly recommend getting these in before v0.8 is released, people need a
properly working GUI! :)
Thanks,
-Seth (mrfun on irc)
-----Original Message-----
From: Seth A. Robinson [mailto:***@rtsoft.com]
Sent: Saturday, February 18, 2006 1:10 PM
To: clanlib-***@lists.sourceforge.net
Subject: [Clanlib-devel] [PATCH] Mem leak fixes (against rev 792 0.8 on SVN)
Noticed a huge number of mostly GUI related leaks in my program.
To verify, I ran AQTime (memory leak checker) with the GUIWindow example and
it showed around 450KB being leaked in 8000+ leaks (!).
What's in this patch:
* Fixed mem leaks in CL_Directory
* Fixed mem leak in resource_manager_generic.cpp
* Fixed mem leak in menu_node_generic.cpp
* Fixed mem leak in component.cpp by setting delete children to true in
constructors
After doing these changes, it now reports 0 leaks.
Warning: I only tested with the GUIWindow example and my software.
-Seth (mrfun on irc)
some new GUI fixes/additions:
1. BUGFIX: Fixed the problem of not being able to click/manipulate GUI
items that extended past their parents size. This was apparent in the
GUIWindow example or any app that lets a drop down menu extend farther than
the window it sat on.
(On the GUIWindow app, if you click Components->Listbox you couldn't
highlight options on the part that overhangs off the window, after these
changes, you can)
2. Added new method int get_item(const CL_Point &pt) method to listbox.h to
get an item by X/Y position.
3. Mem leak fixes from below
I highly recommend getting these in before v0.8 is released, people need a
properly working GUI! :)
Thanks,
-Seth (mrfun on irc)
-----Original Message-----
From: Seth A. Robinson [mailto:***@rtsoft.com]
Sent: Saturday, February 18, 2006 1:10 PM
To: clanlib-***@lists.sourceforge.net
Subject: [Clanlib-devel] [PATCH] Mem leak fixes (against rev 792 0.8 on SVN)
Noticed a huge number of mostly GUI related leaks in my program.
To verify, I ran AQTime (memory leak checker) with the GUIWindow example and
it showed around 450KB being leaked in 8000+ leaks (!).
What's in this patch:
* Fixed mem leaks in CL_Directory
* Fixed mem leak in resource_manager_generic.cpp
* Fixed mem leak in menu_node_generic.cpp
* Fixed mem leak in component.cpp by setting delete children to true in
constructors
After doing these changes, it now reports 0 leaks.
Warning: I only tested with the GUIWindow example and my software.
-Seth (mrfun on irc)