Re: [gtk-1.0.6] GtkToolbar: THX - now it works !



Damon Chaplin wrote:
> 
> Norbert Bladt wrote:
> >
> > Hi !
> >
> > I did ask two questions on this list how to change a pixmap
> > in a toolbar button.
> > The replies I received gave me some new ideas to try.
> >
> > Thanks a lot for sending this comments. I'll try both and see
> > what happens and if they work.
> >
> > john@giorgio.hart.bbk.ac.uk suggested to take a look at the
> > testgtk notebook part. I did it. It looks promising.
> >
> > Feiguin <feiguin@ifir.ifir.edu.ar> suggested a way to remove from and
> > then add the item, e.g. the button, to the container, again .
> > I'll try this, too.
> 
> I use gtk_pixmap_set() to change the pixmap.
> The only awkward thing is getting the pixmap widget to change.
> 
> The toolbar returns the button when you add the toolbar item.
> The button contains a vbox which has 2 children - the label and the pixmap
> (assuming you are using standard toolbar buttons).
> So you can do something like:

[ example source code removed ]
Yes, exactly !
That did the trick.

Thanks again for all the help from this list.
Now it works.

Regards,

Norbert.

-- 
Norbert Bladt		 Payphone Management System Software Development
ascom Autelca AG
Worbstrasse 201		 CH-3073 Guemligen, Switzerland
abladtn@autelca.ascom.ch VOICE: +41 31 999 6552, FAX: +41 31 999 6575



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