Re: many buttons, one handler with gtkbuilder



Tristan Van Berkom wrote:
On Tue, Jan 20, 2009 at 7:27 AM, Peter F. Patel-Schneider
<pfps verizon net> wrote:
[...]
As I expected, I guess, but it sure would be nice to be able to easily build
objects or handlers that have extra information in them in the form of
integers or strings.  Just being able to initialize the user-data property
to a pointer to a string or integer using glade/gtkbuilder would be very
useful.

Its on my long long todo list, if you want to try your hand at it, I could
tell you exactly what has to be done in GtkBuilder and in Glade and
coach you through getting your patches reviewed correctly etc.

I'm not certain but quite sure Matthias and Johan will not be against
the idea (i.e. the GTK+ and GtkBuilder maintainers)...

It would not make GNOME 2.26 but could be available in dev releases
soon after...

Cheers,
            -Tristan

Hmm. I actually finessed the problem for me by (ab)using tooltip-text to hold the extra data.
Yes, in principle, if I get time available. :-)

I just looked at the glade code and couldn't even figure out where it sets up to have tooltips-text as an specifiable property.

Actually a more general solution would be to allow glade/gtkbuilder to add properties to widget classes. I don't know whether this would fly.

peter




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