Re: gnome_app_create_menu hack
- From: muppet <scott asofyet org>
- To: Chas Owens <alas widomaker com>
- Cc: gtk-perl mailing list <gtk-perl-list gnome org>
- Subject: Re: gnome_app_create_menu hack
- Date: 17 Apr 2003 19:01:39 -0400
On Thu, 2003-04-17 at 17:18, Chas Owens wrote:
Being my lazy self I have hacked together a quick Perl
based replacement for Gnome2::App->create_menus(). It
doesn't handle images yet and there seems to be something
wrong with the mnemonic (it underlines, but does work),
but at least I can test some more of Gtk2-Perl-XS.
This does raise a point though: should we implement this
(and possibly other things) in XS when when we can just
as easily do them in Perl?
something like the UI helpers is a very compelling case for this; you
could use plain old perl hashes, in fact a list of hashes, instead of
the GnomeUIInfo structure and avoid a little mess of C code.
on the other hand, you've wound up reimplementing some of libgnomeui in
perl. granted this is unavoidable in some cases (i've had to do that
for various variadic convenience functions), but personally i'd like to
steer away from it wherever i can, mostly to avoid maintaining code
that's already written by somebody else, and also because the less perl
you have to parse when loading the module, the faster it will load (and
this is a big module).
also, even if it's really simple, if it's something that will go in a
loop, you can save runtime by doing it in XS.
--
muppet <scott asofyet org>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]