How to resize toolbar when switching toolbar style?
- From: "Dean W. Schumacher" <dean schumacher alcatel com>
- To: gnome-list gnome org
- Subject: How to resize toolbar when switching toolbar style?
- Date: Mon, 15 Apr 2002 09:24:55 -0500
I have an application using a Gnome Application window created in
Glade. The Gnome App window has a GnomeDockItem container with a
GtkToolbar.
GnomeApp
GnomeDock
GnomeDockItem
GtkToolbar
The toolbar style has both icons and text. I added a callback
to allow the user to switch to a text only toolbar by calling:
gtk_toolbar_set_style(widget, GTK_TOOLBAR_TEXT);
This switches the toolbar to text only, but the problem is
that it doesn't compress the height of the toolbar to match
the shorter button size without the icons. However, if I move
things around manually in the GUI, it will resize the toolbar
automatically.
Is there some way I can force the toolbar to be resized
automatically when I set the toolbar style to GTK_TOOLBAR_TEXT?
I've tried a bunch of things, but haven't figured it out.
Thanks for any help.
--
Dean Schumacher Email: dean schumacher alcatel com
Software Engineering Tools Phone: 972.519.3252
Alcatel USA
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]