Hi, Ok, it seems that this cannot be done directly. Then I'd like to put the question this way: How do I create a ToggleButton in a toolbar that displays either text, an icon, or an icon with text, thus emulating the desired behaviour? Ciao Florian On Fri, 1 Oct 2004 18:35:44 +0200, Florian Schaefer said:
Hi, I've added a ToggleToolButton to a toolbar with the following lines of code (&new_pixmap returns a Gtk2::Image): $tb_item2 = Gtk2::ToggleToolButton->new; $tb_item2->set_label("Spelling"); $spell_widget_icon = &new_pixmap("spellcheck.xpm", $window, $bg); $tb_item2->set_icon_widget($spell_widget_icon); $tb_item2->show; $toolbar->append_widget($tb_item2,"", ""); Now what I want is that the button honors the Gtk2::ToolbarStyle setting (icons, text, both) which I have set for the rest of the toolbar with $toolbar->set_style. How do I do this? Ciao Florian
Attachment:
pgprExIDRwpoq.pgp
Description: PGP signature