Re: map-event, unmap-event on a custom widget



On Sun, Jul 20, 2008 at 12:27 PM, Alexander Jones <alex weej com> wrote:
> I've got a GtkBox-derived widget (RBHeader, for anyone interested) and
> it currently animates 25 times per second. Obviously, I want to
> disable this timeout when it's not visible so I can keep the CPU from
> waking up needlessly.
>
>        g_object_connect (header, "map-event", G_CALLBACK
> (rb_header_map_callback), NULL);
>        g_object_connect (header, "unmap-event", G_CALLBACK
> (rb_header_map_callback), NULL);
>

I think you mean to be using g_signal_connect(), see the api docs for
http://library.gnome.org/devel/gobject/stable/gobject-The-Base-Object-Type.html#g-object-connect.

Cheers,
                        -Tristan


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]