Re: configure event in children
- From: Krzesimir Nowak <qdlacz gmail com>
- To: Andreas Bauer <baueran rsise anu edu au>
- Cc: gtkmm-list gnome org
- Subject: Re: configure event in children
- Date: Mon, 20 Apr 2009 09:12:46 +0200
On Mon, 2009-04-20 at 15:10 +1000, Andreas Bauer wrote:
> Hi all,
>
> I have a window with a notebook. Each page in turn has a vbox, an
> eventbox and a socket (in that descending order) attached to it.
>
> I'd like to connect a function to a configure_event for any of the
> children of the notebook, or if that's too difficult, at least have it
> connected to the notebook itself.
>
> I tried, in the top-level window:
>
> add_events(Gdk::STRUCTURE_MASK | Gdk::SUBSTRUCTURE_MASK);
>
> to make the window's children receive configure_events, and then added
> to the children (here, to the notebook):
>
> notebook.add_events(Gdk::SUBSTRUCTURE_MASK);
> notebook.signal_configure_event().
> connect_notify(sigc::mem_fun(*this, &EditorWin::on_my_configure_event));
>
> But this somehow doesn't seem to work. The function is never called
> when I resize the window and in turn the notebook. I'm sure I'm just
> not setting the right signals, or something, but I can't seem to work
> it out.
>
> Any ideas on how this is done?
>
> Many thanks,
>
> Andreas.
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
http://gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/sec-xeventsignals.html
I suppose that especially "Signal Handler sequence" is important for
you.
Krzesimir Nowak
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]