But it is not difficult to translate the generated C code to Gtk2.pm. The APIs are similar.
The APIs are identical only the calling convention is different, but there is also no point in doing the translation yourself, it misses the point of using Glade, the idea behind Glade is for it to generate code for you
Glade::PerlGenerate
glade2perl - Builds Gtk-Perl sources from a Glade file
glade2perl-2 - Builds Gtk2-Perl sources from a Glade-2 file
Glade2::Widget - Creates a new widget from a .glade file. It accepts the following parameters.
Gtk2::GladeXML - Create user interfaces directly from Glade XML files.
Gtk2::GladeXML::Simple - A clean object-oriented interface to Gtk2::GladeXML
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|