On 10/31/05, Kranz, Willi <[EMAIL PROTECTED]> wrote:
> I have to create ca. 50 Objects in an application.
> Each Object has 2 Eventboxes, 2 Labes and a Pixmap
> and 2 or 3 callback-functions.
>
> Or what is the best way to solve this problem.

If your object is simple, you can just write a function to build one
and call it 50 times.

If it's more complicated, I would write a new compound widget. There's
a chapter in the gtk tutorial about this:

http://gtk.org/tutorial/c2201.html

One of the nice things about gtk (compared to Xt based kits, anyway)
is that it's very easy to subclass widgets to change their behaviour.
_______________________________________________
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