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
> [email protected]
> 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 <[EMAIL PROTECTED]>
Web: http://www.goedi.net
GPG ID: 90D266BB
-----------------------------------

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to