in reply to Formatting Gtk Pages

Please don't use Gtk for new code. It is unmaintained, has never been complete, and binds a library that is obsolete. Have a look at Gtk2 instead.

What you're trying to do is quite simple with Gtk2::Ex::Simple::List.

my $slist = Gtk2::Ex::Simple::List->new ( 'Setting' => 'bool', 'Configuration' => 'int', 'Name' => 'text', 'Description' => 'text', ); @{$slist->{data}} = ( [ 0, 1, 'Configuration 1', 'Description' ], [ 0, 2, 'Another Configuration', 'Another Description' ], [ 0, 102, 'Third configuration', 'Third description' ], );

Makeshifts last the longest.

Replies are listed 'Best First'.
Re^2: Formatting Gtk Pages
by gnubbs (Beadle) on Feb 20, 2005 at 21:52 UTC
    I agree that using Gtk is not ideal, but unfortunately I have no control over the modules installed on this system and Gtk is the only GUI toolkit installed. I will have to talk to the OS administrator for our systems to see if I can add it during the install of this script. Thanks everyone for the help. gnubbs

      Just to provide some closure to this post...

      I have ended up using Gtk2. It requires my install script for this script to also install perl-glib and perl-gtk2 but that in the end is not as hard as getting this functionality in Gtk (not Gtk2). So, it will be Gtk2 and a list store.

      Thanks again for your help.