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

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

 



On Sun, Jul 20, 2008 at 12:27 PM, Alexander Jones <alex@xxxxxxxx> 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
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux