Re: question about packaging



On Tue, 2003-09-30 at 19:27, Chas Owens wrote:
Quoting James Curbo <james teyandei net>:
<snip>
I like the idea of the __DATA__ approach though, especally if you just
have one glade file.  (although there is that multi-data-section module.. 
can't remember what it's called right now though)
</snip>

Inline::Files?  You really don't need multiple glade files though.  The second
argument of Gtk2::GladeXML->new() is the name of the widget to start from.  You
can have many different windows in one file and open each one in it's turn:

$glade1 = Gtk2::GladeXML->new_from_memory($xml, 'main_window');
$glade2 = Gtk2::GladeXML->new_from_memory($xml, 'preferences');
$glade3 = Gtk2::GladeXML->new_from_memory($xml, 'results');

This is true, and very useful. I only mentioned it because I had seen
other programs (not necessarily Perl) use multiple glade files (gnumeric
springs to mind)

James



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]