If you're creating a composite child for the Button using glade, then using
set_label() will remove it, and place a Gtk::Label in the Button instead.

For just changing the label, you would need to access the actual Gtk::Label
you placed in yourself, and use Gtk::Label::set_text() or
Gtk::Label::set_markup() on it.

-- Milosz

2008/6/12 johnmb <[EMAIL PROTECTED]>:

>
> I am using glade to place a button with label and icon and loading the gui
> using libglademm.  It all looks fine at first, but I am implementing
> multiple languages so I need to change the button label text at run time
> using button->set_label();  the moment I do this, the icon vanishes.
>
> What am I doing wrong ?
> --
> View this message in context:
> http://www.nabble.com/libglademm-and-disappearing-button-icons-tp17796815p17796815.html
> Sent from the Gtkmm mailing list archive at Nabble.com.
>
> _______________________________________________
> gtkmm-list mailing list
> [email protected]
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to