Re: design advise needed/toolbar question
- From: Paul Pogonyshev <pogonyshev gmx net>
- To: Soeren Sandmann <sandmann daimi au dk>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: design advise needed/toolbar question
- Date: Sat, 9 Jul 2005 14:03:08 +0300
Soeren Sandmann wrote:
Paul Pogonyshev <pogonyshev gmx net> 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]