Follow Up on Yesterday’s Genlist and Frame Example

Yesterday I provided a dirty tutorial on how to make a genlist work correctly with a frame and auto-collapse.  Today, I will show you a cleaner way to make it work.

While auto-collapse on a frame is a convenient feature, it can make sizing a frame difficult because you can’t set a frame to expand and have it auto-collapse.  The following code, which has comments for explanation, shows you how to manage a genlist in a frame using a collapse callback.  This allows you to size your frame using evas_object_size_hints and thus doing away with the need for dirty resize callbacks.  Please comment if you have any questions!



One thought on “Follow Up on Yesterday’s Genlist and Frame Example

Leave a Reply

Your email address will not be published. Required fields are marked *