[sugar] active activity?
Tomeu Vizoso
tomeu at tomeuvizoso.net
Sun Apr 1 14:00:53 EDT 2007
On Sun, 2007-04-01 at 11:34 -0400, Erik Blankinship wrote:
> Hello
>
> What is the preferred way for an activity to know & be notified if it
> is the "current" / "in the frame" / "top of the stack" activity?
>
> Maybe I should add a GTK listener on my activity (which extends
> activity.Activity)? If so, which one is recommended:
> has-toplevel-focus, is-active?
>
> Does this sound like the correct way to proceed?
Hi Eric, I've been using focus-out-event/focus-in-event on the Activity
(gtk.Window). I think TamTam also uses that for pausing/resuming sound.
HTH,
Tomeu
More information about the Sugar
mailing list