El sáb, 11-06-2005 a las 17:38 +0200, Andrea Spadaccini escribió: > Hi everyone, > I need to write something to a statusbar, but I should do it from > another widget who isn't aware of his existence.. Is there a way to do > it with nested event handlers? I write something only when a button is > clicked in a drawing area!! > > Do I need to make the widget aware of the statusbar? > > Thanks in advance, > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list gnome org > http://mail.gnome.org/mailman/listinfo/gtkmm-list The button knows his parent, the window, the window knows the statusbar. Make a function YourWindow::set_status_bar_text(Glib::ustring), and use get_parent() on the button. It depends on your implementation ... -- ----------------------------------- Diego Fdez. Durán <diego goedi net> Web: http://www.goedi.net GPG ID: 90D266BB -----------------------------------
Attachment:
signature.asc
Description: This is a digitally signed message part