[Gpe-list] Fwd: Patch for gpesummary to start gpecalendar when an alarm occurs
Ryan Pavlik
abiryan at ryand.net
Mon Jun 2 21:33:43 CEST 2008
Graham Cobb wrote:
> Andrew Olmsted has sent me a patch for gpesummary to allow it to monitor for
> alarms and start gpe-calendar when an alarm fires. This would mean it would
> not be necessary to run gpe-calendar all the time (on the Nokia Internet
> Tablets). The patch is also attached to bug 188.
>
> It seems like a good idea to me. I propose we implement this and also remove
> the hack from gpe-calendar which means that it does not exit when the close
> button is pressed. That behaviour is not popular with users. I'm not sure
> if it is feasible to check whether gpesummary is running and display a
> warning if it is not (and some alarms are set).
>
> Any comments?
>
> Note: I have not tested the patch yet, but Andrew reports that it works well
> (see below).
>
> Graham
>
> ---------- Forwarded Message ----------
>
> Subject: [lists] Patch for gpesummary to start gpecalendar when an alarm
> occurs
> Date: Monday 02 June 2008
> From: "Andrew Olmsted" <andrew.olmsted at gmail.com>
> To: g+770 at cobb.uk.net
>
> Graham,
>
> I have written a small patch for gpesummary. The added code monitors
> the alarms for the EventDB in the same manner GPE Calendar itself
> does. When there is an alarm that needs to be fired, it sends a top
> message through the DBUS to launch gpecalendar. This DBUS code is the
> same function that launches calendar on a click of the event portion
> of the applet.
>
> I have tested this patch both with calendar open and closed and it
> works as I expect it to. It was built using
> gpesummary_2.8+maemo+svn20080509-2 as source. I have included in this
> email the files built from dpkg-buildpackage (deb, tar, dsc, changes)
> and a patch file I created that just changes gpesummary.c as I wasn't
> sure which would be most useful.
>
> I hope this proves useful, as with this patch you no longer need to
> leave GPE Calendar open to receive alarm notifications.
>
> Thanks,
> Andrew
>
>
Before integration someone should strace gpesummary, since home applets
that do unneeded activity, even rarely, can seriously negatively impact
battery life - in order to get a reasonable (1 day standby) battery life
on my N800 I had to remove almost all my applets, including the stock FM
Radio one (apparently a new fixed version is on the way). Wouldn't want
to miss alarms because I had to remove gpesummary to be safe.
--
Ryan Pavlik
www.cleardefinition.com
#282 + (442) - [X]
A programmer started to cuss
Because getting to sleep was a fuss
As he lay there in bed
Looping 'round in his head
was: while(!asleep()) sheep++;
More information about the Gpe-list
mailing list