On Sun, Jul 20, 2008 at 12:27 PM, Alexander Jones <[EMAIL PROTECTED]> 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
_______________________________________________
gtk-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to