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

_______________________________________________
Sugar mailing list
[email protected]
http://mailman.laptop.org/mailman/listinfo/sugar

Reply via email to