GtkDialog - How to change tree sizes dynamically?

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
User avatar
MochiMoppel
Posts: 2084
Joined: Wed 26 Jan 2011, 09:06
Location: Japan

GtkDialog - How to change tree sizes dynamically?

#1 Post by MochiMoppel »

Let's start with a simple list, containing 3 items:

Code: Select all

T='<tree>
<item>Tokyo</item>
<item>Port Moresby</item>
<item>Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch</item>
</tree>'
echo "$T" | gtkdialog -s
Is there any way to expand height and width automatically, depending on the number and length of items? I've tried different box constructs and size attributes, none of them would result in a "just right" window size. :cry:

Post Reply