Re: [gtk2-perl-xs] GladeXML example



Quoting Ross McFarland <rwmcfa1 neces com>:

On Fri, 2003-05-23 at 09:01, René Seindal wrote:

Another thing I noted was that Gtk::GladeXML->new_from_memory() has
become Gtk2::GladeXML->new_from_buffer and it takes an extra
argument
which is the length of the buffer.  That wasn't in the old interface
and
it is probably redundant in a perl context, where the length of
strings
is readily available.

hadn't looked at that function yet. it's now implemented as you
suggest,
pretty much how gtk-perl did it. to get the changes cvs up.

UPS
I just updated from CVS and I can see there are some changes.  The
new_from_buffer issue is still there, though.

hopefully the updates you got addressed your issues with signals.

that only outstanding issue on the signal handling front is when
signal_connect_object is used. i'm not sure how to handle those
situations since signal_connect_object isn't in Glib, and maybe
rightfully so. it's going to take some thinking, which i'm not in the
mood to do at the moment.

other than that there's the custom widget stuff that seems to be
halfway
implemented in gtk-perl. there's some code in it in xs, but i'm not
sure
that it makes it through to perl in any usable way. anyone with
thoughts
on this please share them. does anyone use glade2 with custom widgets?
should custom widget stuff even be attempted? 

-rm

I wrote an SQL editor that heavily uses Gtk::GladeXML (including custom
widgets).  Unfortunatly I don't have access to a Linux box (my laptop is dead
and I am currently forced to use Lose95 at work) so I can't updated it use Gtk2.
 As far as I know the only changes are as folows

1.  Change Gtk:: to Gtk2::
2.  Port the Gtk::Text references to Gtk2::TextView references
3.  Port the Gtk::CListModel references to Gtk2::ListModel and
    Gtk2::TreeView references
4.  Possibly fiddle with some of the Gtk2::GladeXML code 

Number 3 would be eased if somebody would tie Gtk2::ListModel to a Perl array. 
I was working on this when my laptop became unusable.  

If anyone wants to give it a shot the code is located at
http://prdownloads.sourceforge.net/gsqleditor/gnome-sql-editor-0.5.2.tar.gz?download



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