Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Maemo: Developers

Screenshot as loading screen on Maemo 5

 

 

First page Previous page 1 2 Next page Last page  View All Maemo developers RSS feed   Index | Next | Previous | View Threaded


th.perl at gmail

Oct 13, 2009, 7:58 AM

Post #1 of 50 (2380 views)
Permalink
Screenshot as loading screen on Maemo 5

Hello!

With the latest firmware, the "Settings" window and the Application
Manager both show a fake screenshot when clicking the icon in the menu
and then fade to the "real" window contents after the application has
really started up (look closely at the "Language & region" icon in the
settings dialog when starting it to see what I mean, as the screenshot
contains a different icon than the real application).

For applications that start up longer (e.g. Python applications) this
can be really helpful, and I'd like to do the same for gPodder if
possible.

Is there an "official" way to do this for third party applications (or
how is it done at all)?

Thanks,
Thomas
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


martin.grimme at gmail

Oct 13, 2009, 8:17 AM

Post #2 of 50 (2331 views)
Permalink
Re: Screenshot as loading screen on Maemo 5 [In reply to]

Good find. This would be an Apple-style illusion of quick application
startup. :)

This is interesting because it doesn't seem to be simply a screenshot.
I can see in the app manager that it actually resembles the current
theme.


Cheers,
Martin


2009/10/13, Thomas Perl <th.perl [at] gmail>:
> Hello!
>
> With the latest firmware, the "Settings" window and the Application
> Manager both show a fake screenshot when clicking the icon in the menu
> and then fade to the "real" window contents after the application has
> really started up (look closely at the "Language & region" icon in the
> settings dialog when starting it to see what I mean, as the screenshot
> contains a different icon than the real application).
>
> For applications that start up longer (e.g. Python applications) this
> can be really helpful, and I'd like to do the same for gPodder if
> possible.
>
> Is there an "official" way to do this for third party applications (or
> how is it done at all)?
>
> Thanks,
> Thomas
> _______________________________________________
> maemo-developers mailing list
> maemo-developers [at] maemo
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


bundyo at gmail

Oct 13, 2009, 8:27 AM

Post #3 of 50 (2331 views)
Permalink
Re: Screenshot as loading screen on Maemo 5 [In reply to]

Yes I noticed it too, but it also manages to keep any clicks on the whatever
it is to throw them later to the real app. So it probably isn't just a
screenshot.

P.S. Sorry Martin for the spam :)

Regards:
Bundyo

On Tue, Oct 13, 2009 at 6:17 PM, Martin Grimme <martin.grimme [at] gmail>wrote:

> Good find. This would be an Apple-style illusion of quick application
> startup. :)
>
> This is interesting because it doesn't seem to be simply a screenshot.
> I can see in the app manager that it actually resembles the current
> theme.
>
>
> Cheers,
> Martin
>
>
> 2009/10/13, Thomas Perl <th.perl [at] gmail>:
> > Hello!
> >
> > With the latest firmware, the "Settings" window and the Application
> > Manager both show a fake screenshot when clicking the icon in the menu
> > and then fade to the "real" window contents after the application has
> > really started up (look closely at the "Language & region" icon in the
> > settings dialog when starting it to see what I mean, as the screenshot
> > contains a different icon than the real application).
> >
> > For applications that start up longer (e.g. Python applications) this
> > can be really helpful, and I'd like to do the same for gPodder if
> > possible.
> >
> > Is there an "official" way to do this for third party applications (or
> > how is it done at all)?
> >
> > Thanks,
> > Thomas
> > _______________________________________________
> > maemo-developers mailing list
> > maemo-developers [at] maemo
> > https://lists.maemo.org/mailman/listinfo/maemo-developers
> >
> _______________________________________________
> maemo-developers mailing list
> maemo-developers [at] maemo
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>


andrew at bleb

Oct 13, 2009, 9:09 AM

Post #4 of 50 (2333 views)
Permalink
Re: Screenshot as loading screen on Maemo 5 [In reply to]

On Tue, Oct 13, 2009 at 16:17, Martin Grimme <martin.grimme [at] gmail> wrote:
> Good find. This would be an Apple-style illusion of quick application
> startup. :)

As I described at:

http://www.maemopeople.org/index.php/jaffa/2008/03/08/improving_application_start_up_usability
and http://www.maemopeople.org/index.php/jaffa/2008/03/09/improving_application_start_up_mockup

Presumably there's something in the .desktop? I've certainly noticed
that a window for my apps is opened with the title from the icon with
black content. If the app fails to start, that window is then
destroyed.

Cheers,

Andrew

--
Andrew Flegg -- mailto:andrew [at] bleb | http://www.bleb.org/
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


trippin1 at gmail

Oct 13, 2009, 10:06 AM

Post #5 of 50 (2321 views)
Permalink
Re: Screenshot as loading screen on Maemo 5 [In reply to]

Hiya,

https://stage.maemo.org/viewcvs.cgi/projects/haf/trunk/hildon-control-panel/src/hcp-window.c?root=maemo&r1=19383&r2=19382&pathrev=19383

Best Regards,
Faheem

On Tue, Oct 13, 2009 at 3:58 PM, Thomas Perl <th.perl [at] gmail> wrote:
> Is there an "official" way to do this for third party applications (or
> how is it done at all)?
>
> Thanks,
> Thomas
> _______________________________________________
> maemo-developers mailing list
> maemo-developers [at] maemo
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


andrew at bleb

Oct 13, 2009, 10:45 AM

Post #6 of 50 (2316 views)
Permalink
Re: Screenshot as loading screen on Maemo 5 [In reply to]

Faheem wrote:
>
> https://stage.maemo.org/viewcvs.cgi/projects/haf/trunk/hildon-control-panel/src/hcp-window.c?root=maemo&r1=19383&r2=19382&pathrev=19383

I can confirm that copying an existing entry from /home/user/.cache/launch/ to <dbus-name>.pvr will result in it being launched with that screenshot before fading in the actual window.

Cheers,

Andrew

--
Andrew Flegg -- mailto:andrew [at] bleb  |  http://www.bleb.org/

_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


hald at icandy

Oct 13, 2009, 12:22 PM

Post #7 of 50 (2324 views)
Permalink
Re: Screenshot as loading screen on Maemo 5 [In reply to]

On Tue, 2009-10-13 at 18:45 +0100, Andrew Flegg wrote:
> Faheem wrote:
> >
> > https://stage.maemo.org/viewcvs.cgi/projects/haf/trunk/hildon-control-panel/src/hcp-window.c?root=maemo&r1=19383&r2=19382&pathrev=19383
>
> I can confirm that copying an existing entry from /home/user/.cache/launch/ to <dbus-name>.pvr will result in it being launched with that screenshot before fading in the actual window.

Wow, you guys are great :) So it should be really straight forward to
implement this in our own apps. I'll give it a try tomorrow. Also it
looks like most stock apps are using it now. Notes, Sketch, Xterm,
Calculator and more.

Thanks for that!
Conny


_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


xrcalvar at igalia

Oct 14, 2009, 1:26 AM

Post #8 of 50 (2303 views)
Permalink
Re: Screenshot as loading screen on Maemo 5 [In reply to]

O Mar, 13-10-2009 ás 16:58 +0200, Thomas Perl escribiu:
> With the latest firmware, the "Settings" window and the Application
> Manager both show a fake screenshot when clicking the icon in the menu
> and then fade to the "real" window contents after the application has
> really started up (look closely at the "Language & region" icon in the
> settings dialog when starting it to see what I mean, as the screenshot
> contains a different icon than the real application).
>
> For applications that start up longer (e.g. Python applications) this
> can be really helpful, and I'd like to do the same for gPodder if
> possible.
>
> Is there an "official" way to do this for third party applications (or
> how is it done at all)?

For applications written in C, you have
void hildon_gtk_window_take_screenshot (GtkWindow *window, gboolean
take);

http://maemo.org/api_refs/5.0/5.0-final/hildon/hildon-Additions-to-GTK
+.html#hildon-gtk-window-take-screenshot

This would be the right way of doing this as you could just create the
screenshot when you consider that your screenshot should change, very
useful if you have more than windows that can be shown on startup.

About Python, I couldn't find it at the first glance, but the PyMaemo
guys can explain it better.

Br.

--
Xabier Rodríguez Calvar
Computer Engineer
IGALIA http://www.igalia.com
Attachments: signature.asc (0.19 KB)


slonopotamusorama at gmail

Oct 14, 2009, 1:43 AM

Post #9 of 50 (2306 views)
Permalink
Re: Screenshot as loading screen on Maemo 5 [In reply to]

What's the point looking fast when in practice it is slow? Can't you just
fix your app so it starts up faster?

2009/10/13 Thomas Perl <th.perl [at] gmail>

> Hello!
>
> With the latest firmware, the "Settings" window and the Application
> Manager both show a fake screenshot when clicking the icon in the menu
> and then fade to the "real" window contents after the application has
> really started up (look closely at the "Language & region" icon in the
> settings dialog when starting it to see what I mean, as the screenshot
> contains a different icon than the real application).
>
> For applications that start up longer (e.g. Python applications) this
> can be really helpful, and I'd like to do the same for gPodder if
> possible.
>
> Is there an "official" way to do this for third party applications (or
> how is it done at all)?
>
> Thanks,
> Thomas
> _______________________________________________
> maemo-developers mailing list
> maemo-developers [at] maemo
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>


anidel at gmail

Oct 14, 2009, 1:59 AM

Post #10 of 50 (2312 views)
Permalink
Re: Screenshot as loading screen on Maemo 5 [In reply to]

Every app, when starts up, has to prepare its UI and then show it to the user.
Some of them do that in Python.

This whole process cannot sped up, it's there and takes some time.

I'd be glad if there's a way to optimize it.

Aniello

2009/10/14 Marat Radchenko <slonopotamusorama [at] gmail>:
> What's the point looking fast when in practice it is slow? Can't you just
> fix your app so it starts up faster?
>
> 2009/10/13 Thomas Perl <th.perl [at] gmail>
>>
>> Hello!
>>
>> With the latest firmware, the "Settings" window and the Application
>> Manager both show a fake screenshot when clicking the icon in the menu
>> and then fade to the "real" window contents after the application has
>> really started up (look closely at the "Language & region" icon in the
>> settings dialog when starting it to see what I mean, as the screenshot
>> contains a different icon than the real application).
>>
>> For applications that start up longer (e.g. Python applications) this
>> can be really helpful, and I'd like to do the same for gPodder if
>> possible.
>>
>> Is there an "official" way to do this for third party applications (or
>> how is it done at all)?
>>
>> Thanks,
>> Thomas
>> _______________________________________________
>> maemo-developers mailing list
>> maemo-developers [at] maemo
>> https://lists.maemo.org/mailman/listinfo/maemo-developers
>
>
> _______________________________________________
> maemo-developers mailing list
> maemo-developers [at] maemo
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>
>



--

--
anidel
Sent from London, Eng, United Kingdom
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


anidel at gmail

Oct 14, 2009, 2:00 AM

Post #11 of 50 (2303 views)
Permalink
Re: Screenshot as loading screen on Maemo 5 [In reply to]

2009/10/14 Xabier Rodriguez Calvar <xrcalvar [at] igalia>:
> O Mar, 13-10-2009 ás 16:58 +0200, Thomas Perl escribiu:
>> With the latest firmware, the "Settings" window and the Application
>> Manager both show a fake screenshot when clicking the icon in the menu
>> and then fade to the "real" window contents after the application has
>> really started up (look closely at the "Language & region" icon in the
>> settings dialog when starting it to see what I mean, as the screenshot
>> contains a different icon than the real application).
>>
>> For applications that start up longer (e.g. Python applications) this
>> can be really helpful, and I'd like to do the same for gPodder if
>> possible.
>>
>> Is there an "official" way to do this for third party applications (or
>> how is it done at all)?
>
> For applications written in C, you have
> void hildon_gtk_window_take_screenshot (GtkWindow *window, gboolean
> take);
>
> http://maemo.org/api_refs/5.0/5.0-final/hildon/hildon-Additions-to-GTK
> +.html#hildon-gtk-window-take-screenshot
>
> This would be the right way of doing this as you could just create the
> screenshot when you consider that your screenshot should change, very
> useful if you have more than windows that can be shown on startup.
>

So ones needs to only call it once before destroying the main window
when exiting...

That's so cool.
I'll do it tonight.
Thanks.

--
anidel
Sent from London, Eng, United Kingdom
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


andrew at bleb

Oct 14, 2009, 2:00 AM

Post #12 of 50 (2307 views)
Permalink
Re: Screenshot as loading screen on Maemo 5 [In reply to]

On Wed, Oct 14, 2009 at 09:43, Marat Radchenko
<slonopotamusorama [at] gmail> wrote:
> What's the point looking fast when in practice it is slow? Can't you just
> fix your app so it starts up faster?

Main one: user gets a sense of feedback and completion. It's an
empirical fact that if two actions take the same time, the user
*perceives* it to be faster if there are multiple steps.

Cheers,

Andrew

--
Andrew Flegg -- mailto:andrew [at] bleb | http://www.bleb.org/
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


anidel at gmail

Oct 14, 2009, 2:14 AM

Post #13 of 50 (2303 views)
Permalink
Re: Screenshot as loading screen on Maemo 5 [In reply to]

2009/10/14 Andrew Flegg <andrew [at] bleb>:
> On Wed, Oct 14, 2009 at 09:43, Marat Radchenko
> <slonopotamusorama [at] gmail> wrote:
>> What's the point looking fast when in practice it is slow? Can't you just
>> fix your app so it starts up faster?
>
> Main one: user gets a sense of feedback and completion. It's an
> empirical fact that if two actions take the same time, the user
> *perceives* it to be faster if there are multiple steps.
>
> Cheers,
>
> Andrew
>

That is true, but I remember once we were talking (here or on talk)
about this "feature" on the iPhone and we were calling them "liars".
It turns out, it's really annoying watching an empty dark screen for 2
seconds or even less.

--
anidel
Sent from London, Eng, United Kingdom
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


andrew at bleb

Oct 14, 2009, 2:25 AM

Post #14 of 50 (2303 views)
Permalink
Re: Screenshot as loading screen on Maemo 5 [In reply to]

On Wed, Oct 14, 2009 at 10:14, Aniello Del Sorbo <anidel [at] gmail> wrote:
>
> That is true, but I remember once we were talking (here or on talk)
> about this "feature" on the iPhone and we were calling them "liars".
> It turns out, it's really annoying watching an empty dark screen for 2
> seconds or even less.

Not me, I've seen enough usability labs that I appreciated it as a
nice hack to avoid some of the inevitable delays :-)

It's still a hack, of course, and things should still start as quickly
as possible.

Cheers,

Andrew

--
Andrew Flegg -- mailto:andrew [at] bleb | http://www.bleb.org/
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


trippin1 at gmail

Oct 14, 2009, 2:36 AM

Post #15 of 50 (2308 views)
Permalink
Re: Screenshot as loading screen on Maemo 5 [In reply to]

hildon_gtk_window_take_screenshot() and maemo-launcher FTW. :)

Best Regards,
Faheem

On Wed, Oct 14, 2009 at 10:25 AM, Andrew Flegg <andrew [at] bleb> wrote:
> Not me, I've seen enough usability labs that I appreciated it as a
> nice hack to avoid some of the inevitable delays :-)
>
> It's still a hack, of course, and things should still start as quickly
> as possible.
>
> Cheers,
>
> Andrew
>
> --
> Andrew Flegg -- mailto:andrew [at] bleb  |  http://www.bleb.org/
> _______________________________________________
> maemo-developers mailing list
> maemo-developers [at] maemo
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


anidel at gmail

Oct 14, 2009, 2:39 AM

Post #16 of 50 (2307 views)
Permalink
Re: Screenshot as loading screen on Maemo 5 [In reply to]

2009/10/14 Andrew Flegg <andrew [at] bleb>:
> On Wed, Oct 14, 2009 at 10:14, Aniello Del Sorbo <anidel [at] gmail> wrote:
>>
>> That is true, but I remember once we were talking (here or on talk)
>> about this "feature" on the iPhone and we were calling them "liars".
>> It turns out, it's really annoying watching an empty dark screen for 2
>> seconds or even less.
>
> Not me, I've seen enough usability labs that I appreciated it as a
> nice hack to avoid some of the inevitable delays :-)
>
> It's still a hack, of course, and things should still start as quickly
> as possible.
>
> Cheers,
>
> Andrew
>

Was not talking about you. Just pointing out of funny it is that we
(in general) often complain on Apple 'hacks' to then later follow
their tracks.
Like the capacitive screens, no MMS, screenshots at load time and so on...

--
anidel
Sent from London, Eng, United Kingdom
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


marius at pov

Oct 14, 2009, 2:57 AM

Post #17 of 50 (2301 views)
Permalink
Re: Screenshot as loading screen on Maemo 5 [In reply to]

On Wed, Oct 14, 2009 at 12:43:05PM +0400, Marat Radchenko wrote:
> What's the point looking fast when in practice it is slow? Can't you just
> fix your app so it starts up faster?

No cheating:

1. click an app
2. wait for app to appear
3. app appears
4. look at app screen, decide where you want to click
5. click etc.

Time in step 2 is wasted and frustrating to the user

Cheating:

1. click an app, get cached app screenshot
2a. app starts up in the background
2b. look at app screen, decide where you want to click
3. click etc.
4. wait until app finishes loading and reacts to the click

There is a possible wait in step 4, but it is usually shorter. Win!

Marius Gedminas
--
HOST SYSTEM RESPONDING, PROBABLY UP...
Attachments: signature.asc (0.18 KB)


hald at icandy

Oct 17, 2009, 2:32 AM

Post #18 of 50 (2247 views)
Permalink
Re: Screenshot as loading screen on Maemo 5 [In reply to]

On Tue, 2009-10-13 at 21:22 +0200, Cornelius Hald wrote:
> On Tue, 2009-10-13 at 18:45 +0100, Andrew Flegg wrote:
> > Faheem wrote:
> > >
> > > https://stage.maemo.org/viewcvs.cgi/projects/haf/trunk/hildon-control-panel/src/hcp-window.c?root=maemo&r1=19383&r2=19382&pathrev=19383
> >
> > I can confirm that copying an existing entry from /home/user/.cache/launch/ to <dbus-name>.pvr will result in it being launched with that screenshot before fading in the actual window.
>
> Wow, you guys are great :) So it should be really straight forward to
> implement this in our own apps. I'll give it a try tomorrow. Also it
> looks like most stock apps are using it now. Notes, Sketch, Xterm,
> Calculator and more.

Just a quick update: It is really enough to just call
hildon_gtk_window_take_screenshot() in your code. The next time you
start your application the screenshot will automatically be used. I
first thought you have to use maemo-launcher to make use of this
feature, but it also works without.

Cheers!
Conny


_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


vivainio at gmail

Oct 17, 2009, 2:40 AM

Post #19 of 50 (2242 views)
Permalink
Re: Screenshot as loading screen on Maemo 5 [In reply to]

On Wed, Oct 14, 2009 at 11:59 AM, Aniello Del Sorbo <anidel [at] gmail> wrote:

> Every app, when starts up, has to prepare its UI and then show it to the user.
> Some of them do that in Python.
>
> This whole process cannot sped up, it's there and takes some time.

I wonder if the option of using python-launcher has been explored thoroughly:

http://blogs.gnome.org/johan/2007/01/18/introducing-python-launcher/

--
Ville M. Vainio
http://tinyurl.com/vainio
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


anidel at gmail

Oct 17, 2009, 3:58 AM

Post #20 of 50 (2253 views)
Permalink
Re: Screenshot as loading screen on Maemo 5 [In reply to]

2009/10/17 Cornelius Hald <hald [at] icandy>:
> On Tue, 2009-10-13 at 21:22 +0200, Cornelius Hald wrote:
>> On Tue, 2009-10-13 at 18:45 +0100, Andrew Flegg wrote:
>> > Faheem wrote:
>> > >
>> > > https://stage.maemo.org/viewcvs.cgi/projects/haf/trunk/hildon-control-panel/src/hcp-window.c?root=maemo&r1=19383&r2=19382&pathrev=19383
>> >
>> > I can confirm that copying an existing entry from /home/user/.cache/launch/ to <dbus-name>.pvr will result in it being launched with that screenshot before fading in the actual window.
>>
>> Wow, you guys are great :) So it should be really straight forward to
>> implement this in our own apps. I'll give it a try tomorrow. Also it
>> looks like most stock apps are using it now. Notes, Sketch, Xterm,
>> Calculator and more.
>
> Just a quick update: It is really enough to just call
> hildon_gtk_window_take_screenshot() in your code. The next time you
> start your application the screenshot will automatically be used. I
> first thought you have to use maemo-launcher to make use of this
> feature, but it also works without.
>
> Cheers!
> Conny
>

My program doesn't ask anything when you close it, but it keeps
automatically saving the document in
a temporary file. Thus at every start it loads it up and you're back
where you left.
So I thought I would call the screenshot function at the very end,
while closing down the program.

It didn't work. It didn't save the screenshot of what was there.

So I call it when I receive the expose event (like in the example) and
it does work there.
Why is that?

I still have to investigate it, but I thought the window would be
still available in my Quit function
when called from the destroy event.

Weird.
--
anidel
Sent from London, Eng, United Kingdom
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


hald at icandy

Oct 17, 2009, 4:03 AM

Post #21 of 50 (2244 views)
Permalink
Re: Screenshot as loading screen on Maemo 5 [In reply to]

On Sat, 2009-10-17 at 11:58 +0100, Aniello Del Sorbo wrote:
>
> My program doesn't ask anything when you close it, but it keeps
> automatically saving the document in
> a temporary file. Thus at every start it loads it up and you're back
> where you left.
> So I thought I would call the screenshot function at the very end,
> while closing down the program.
>
> It didn't work. It didn't save the screenshot of what was there.
>
> So I call it when I receive the expose event (like in the example) and
> it does work there.
> Why is that?
>
> I still have to investigate it, but I thought the window would be
> still available in my Quit function
> when called from the destroy event.

I'm also calling it when quitting the application. I'm using the
'delete-event' on my main window. There I call it just before
gtk_main_quit(). It's working for me...

Cheers!
Conny


_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


anidel at gmail

Oct 17, 2009, 4:16 AM

Post #22 of 50 (2246 views)
Permalink
Re: Screenshot as loading screen on Maemo 5 [In reply to]

2009/10/17 Cornelius Hald <hald [at] icandy>:
> On Sat, 2009-10-17 at 11:58 +0100, Aniello Del Sorbo wrote:
>>
>> My program doesn't ask anything when you close it, but it keeps
>> automatically saving the document in
>> a temporary file. Thus at every start it loads it up and you're back
>> where you left.
>> So I thought I would call the screenshot function at the very end,
>> while closing down the program.
>>
>> It didn't work. It didn't save the screenshot of what was there.
>>
>> So I call it when I receive the expose event (like in the example) and
>> it does work there.
>> Why is that?
>>
>> I still have to investigate it, but I thought the window would be
>> still available in my Quit function
>> when called from the destroy event.
>
> I'm also calling it when quitting the application. I'm using the
> 'delete-event' on my main window. There I call it just before
> gtk_main_quit(). It's working for me...
>
> Cheers!
> Conny

I'll give it another shot, thanks!

anidel
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


donaggio at gmail

Oct 22, 2009, 7:57 AM

Post #23 of 50 (2112 views)
Permalink
Re: Screenshot as loading screen on Maemo 5 [In reply to]

On Sat, Oct 17, 2009 at 1:03 PM, Cornelius Hald <hald [at] icandy> wrote:

> On Sat, 2009-10-17 at 11:58 +0100, Aniello Del Sorbo wrote:
> >
> > My program doesn't ask anything when you close it, but it keeps
> > automatically saving the document in
> > a temporary file. Thus at every start it loads it up and you're back
> > where you left.
> > So I thought I would call the screenshot function at the very end,
> > while closing down the program.
> >
> > It didn't work. It didn't save the screenshot of what was there.
> >
> > So I call it when I receive the expose event (like in the example) and
> > it does work there.
> > Why is that?
> >
> > I still have to investigate it, but I thought the window would be
> > still available in my Quit function
> > when called from the destroy event.
>
> I'm also calling it when quitting the application. I'm using the
> 'delete-event' on my main window. There I call it just before
> gtk_main_quit(). It's working for me...
>
> Cheers!
> Conny
>
>
> _______________________________________________
> maemo-developers mailing list
> maemo-developers [at] maemo
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>

I'm resuming an old thread, sorry!

If I call hildon_gtk_window_take_screenshot() within the callback function
for the delete-event of the main app, just before gtk_main_quit(), it seems
that something has already happened to the main window: it complains that it
is not a GtkWindow (which usually is, as HildonWindow derives from it), but
a GdkWindow, and, of course, no screenshot were taken.

Luca Donaggio


anidel at gmail

Oct 22, 2009, 8:06 AM

Post #24 of 50 (2114 views)
Permalink
Re: Screenshot as loading screen on Maemo 5 [In reply to]

2009/10/22 Luca Donaggio <donaggio [at] gmail>:
> On Sat, Oct 17, 2009 at 1:03 PM, Cornelius Hald <hald [at] icandy> wrote:
>>
>> On Sat, 2009-10-17 at 11:58 +0100, Aniello Del Sorbo wrote:
>> >
>> > My program doesn't ask anything when you close it, but it keeps
>> > automatically saving the document in
>> > a temporary file. Thus at every start it loads it up and you're back
>> > where you left.
>> > So I thought I would call the screenshot function at the very end,
>> > while closing down the program.
>> >
>> > It didn't work. It didn't save the screenshot of what was there.
>> >
>> > So I call it when I receive the expose event (like in the example) and
>> > it does work there.
>> > Why is that?
>> >
>> > I still have to investigate it, but I thought the window would be
>> > still available in my Quit function
>> > when called from the destroy event.
>>
>> I'm also calling it when quitting the application. I'm using the
>> 'delete-event' on my main window. There I call it just before
>> gtk_main_quit(). It's working for me...
>>
>> Cheers!
>> Conny
>>
>>
>> _______________________________________________
>> maemo-developers mailing list
>> maemo-developers [at] maemo
>> https://lists.maemo.org/mailman/listinfo/maemo-developers
>
> I'm resuming an old thread, sorry!
>
> If I call hildon_gtk_window_take_screenshot() within the callback function
> for the delete-event of the main app, just before gtk_main_quit(), it seems
> that something has already happened to the main window: it complains that it
> is not a GtkWindow (which usually is, as HildonWindow derives from it), but
> a GdkWindow, and, of course, no screenshot were taken.
>
> Luca Donaggio
>

I am doing the same and works, but then I was thinking that's it's
probably best doing at the
beginning, with a clean UI.

I thought that doing it at the end, before closing it, would then fake
a reload of the app in the state
it was left when closing it.

But this has an issue, which I think deserves thoughts:

1) to really speed up things you should take the screenshot only once.
2) if you do it at the end, before closing, for the reason above, then
you've got to take the screenshot
at every exit. This slows down the exit itself. And this is as much of
an issue as the startup speed.

Thus I thought I'll take the screenshot at the expose event and only
take it if the file is not there already.

--
anidel
Sent from London, Eng, United Kingdom
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


csaavedra at igalia

Oct 22, 2009, 8:11 AM

Post #25 of 50 (2114 views)
Permalink
Re: Screenshot as loading screen on Maemo 5 [In reply to]

El jue, 22-10-2009 a las 16:57 +0200, Luca Donaggio escribió:
>
> I'm resuming an old thread, sorry!
>
> If I call hildon_gtk_window_take_screenshot() within the callback
> function for the delete-event of the main app, just before
> gtk_main_quit(), it seems that something has already happened to the
> main window: it complains that it is not a GtkWindow (which usually
> is, as HildonWindow derives from it), but a GdkWindow, and, of course,
> no screenshot were taken.

Are you sure you are passing the right window to the function?
event->window is not the one (just in case).

Claudio


_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers

First page Previous page 1 2 Next page Last page  View All Maemo developers RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.