PixButton(string label, string pixname): Button()
{
Gtk::Box * b = manage( new Gtk::HBox() );
- Gtk::Label * l = manage( new Gtk::Label(label) );
- Gnome::Pixmap * p = Gtk::wrap( GNOME_PIXMAP( gnome_stock_pixmap_widget(NULL, pixname.c_str()) ) );
+ l = manage( new Gtk::Label(label) );
+ Gnome::Pixmap * p = Gtk::wrap( GNOME_PIXMAP( gnome_stock_pixmap_widget(0, pixname.c_str()) ) );
b->set_spacing(3);
b->children().push_back(Gtk::Box_Helpers::Element(*p, false, false));
guint get_accelkey() { return accelkey_; }
+ void set_text(string const & newlabel) { l->set_text(newlabel); }
+
protected:
guint accelkey_;
+ Gtk::Label * l;
};
}