On Mon, Jan 19, 2009 at 6:25 PM, Peter F. Patel-Schneider
<p...@verizon.net> wrote:
> Hi:
>
> I have an application where I have many buttons (20-30) that all do the
> almost "same" thing.  I would like to have this done without having to have
> different handlers for each button.
>
> It seems to me that the easiest way to do this is to have "user-data" on
> each button widget that differentiates between the different buttons.
>  However, I can't figure out how to do this easily, even when
> post-processing the .ui file.
>
> Does anyone know how to get gtkbuilder (and/or glade) to put such
> differentiating data into button widgets?  It seems like such an obvious
> thing to do.

Currently glade/libglade/gtkbuilder all only let you set an object as
user data, otherwise, in my experience I usually avoid using
the autoconnect feature all together, and setup signal connections
after loading the glade file (liblade offered a convenient
glade_xml_signal_connect (), which
would be easy to duplicate around gtkbuilder calls).

Cheers,
              -Tristan
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to