Soeren Sandmann wrote:
> Paul Pogonyshev <[EMAIL PROTECTED]> writes:
> > However, it seems that in the new (2.4 and up) toolbar API there is no
> > easy way to add a random widget to a toolbar (well, I could subclass
> > GtkToolItem, but...)
> >
> > Any suggestions?  A different design might solve a problem as well as a
> > simple way of putting widgets in the toolbar...  Note also that my app
> > has to work with all GTK+ version from 2.0 onwards.
>
> If it has to work with gtk+ 2.0, why is the new API relevant at all?

Because I have an internal layer that `#if's and uses the new API when
compiled with 2.4+.  I use this for some things, but not, for instance,
for menus, since GtkItemFactory is completely different from the new
action-based system (which is of course much better, but...)

> Anyway, you can put an arbitrary widget into a GtkToolItem using
> gtk_container_add (tool_item, arbitrary_widget).

Indead, thanks.  I wish there was this note near gtk_toolbar_append_widget().

Paul

_______________________________________________
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