On Sun, 2007-04-01 at 20:00 +0200, Tomeu Vizoso wrote: > 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. >
I think we are going to add better support for this for BTest-3. Focus in/out should work well enough until then though. Marco _______________________________________________ Sugar mailing list [email protected] http://mailman.laptop.org/mailman/listinfo/sugar
