Re: How to top a maemo application if it's minimized?

2009-06-21 Thread Zhihai Wang
Great! gtk_window_present works!

Thanks a lot!


 Date: Sat, 20 Jun 2009 14:48:07 +0200
 From: Alberto Garcia agar...@igalia.com
 Subject: Re: How to top a maemo application if it's minimized?
 To: maemo-developers@maemo.org
 Message-ID: 20090620124807.ga25...@maestria.local.igalia.com
 Content-Type: text/plain; charset=us-ascii

 On Sat, Jun 20, 2009 at 08:42:08PM +0800, Zhihai Wang wrote:

  DBus method call will wake up an application and top it if this
  application is not yet started.  But if the application is already
  started and minimized, it won't raise to top.
 
  One way to do this is to call hd_wm_top_service, but this API looks
  more like one for other applications to use than one used in the
  application itself.

 Have you tried with gtk_window_present() ?

 Berto


 --

 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers





-- 
Best Regards,

Zhihai Wang
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


How to top a maemo application if it's minimized?

2009-06-20 Thread Zhihai Wang
Dear All,

DBus method call will wake up an application and top it if this application
is not yet started.
But if the application is already started and minimized, it won't raise to
top.

One way to do this is to call hd_wm_top_service,
but this API looks more like one for other applications to use than one used
in the application itself.

Thanks for any help.

-- 
Best Regards,

Zhihai Wang
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: How to top a maemo application if it's minimized?

2009-06-20 Thread Alberto Garcia
On Sat, Jun 20, 2009 at 08:42:08PM +0800, Zhihai Wang wrote:

 DBus method call will wake up an application and top it if this
 application is not yet started.  But if the application is already
 started and minimized, it won't raise to top.
 
 One way to do this is to call hd_wm_top_service, but this API looks
 more like one for other applications to use than one used in the
 application itself.

Have you tried with gtk_window_present() ?

Berto
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers