[Evolution-hackers] Showing multiple alarm notifications in the same AlarmNotify dialogbox (something usable and better)
- From: Philip Van Hoof <spamfrommailing freax org>
- To: evolution-hackers lists ximian com
- Cc: Rodrigo Moya <rodrigo novell com>, Federico Mena-Quintero <federico ximian com>, JP Rosevear <jpr novell com>, Evolution Patches <evolution-patches lists ximian com>
- Subject: [Evolution-hackers] Showing multiple alarm notifications in the same AlarmNotify dialogbox (something usable and better)
- Date: Sun, 13 Mar 2005 03:42:49 +0100
Hi there,
On our "Evo2.4#Multiple_Alarms" section of our ... (well, JP still has
to announce this so I'll leave it for the #evolution-meeting attendees
to figure out what I mean)
The desire to have a dialogbox that can show multiple alarms is
expressed.
I discussed this with jpr on IRC and showed some glade-screenshots.
After he told me to hack it and see what it would give, I started doing
just that.
I can now say that I'm finished but haven't really tested this. So I'm
not yet finished. But! I do have something thats perhaps usable. I would
be very happy if somebody takes a gook look at it. Tests it. Comments on
it.
http://www.freax.be/files/alarm-notify.glade.png
http://www.freax.be/files/alarm-notify.png
I basically redid most of the alarm-notify-dialog.c and heavily modified
the alarm-queue.c and the glade-file.
I modified alarm-queue.c because the design of all this was to much
crafted for a one-dialog-per-notification situation. So my first
attempts where kinda hackish.
This one is better...
It checks whether a dialog is available. If not it creates one. And it
adds the alarm notification to the dialog (to the treeview in case
there's more then one alarm notification at that moment).
Snoozing removes the alarm notification from the dialog if there's more
then one at that moment. If there was only one, snoozing closes the
dialog.
Closing removes all the alarm notifications (but doesn't snooze them)
and closes the dialog.
Pressing Edit starts a new dialog in which you can edit the currently
selected alarm notification, in case there's multiple alarm
notifications. And in case there's only one alarm notification, it will
start a new dialog to edit that one.
If there's only one alarm notification, the treeview will be hidden. So
for most situations nothing visually changes. Only when while there was
already one alarm-notification up and running, the new ones are added to
a treeview of dialogbox (which will be set visible) rather than new
dialogboxes being created.
You can find the diff for this here:
http://www.freax.be/files/alarm-notify-multiple-notifications-in-one-dialog.diff
--
Philip Van Hoof, Software Developer @ Cronos
home: me at freax dot org
gnome: pvanhoof at gnome dot org
work: philip dot vanhoof at cronos dot be
junk: philip dot vanhoof at gmail dot com
http://www.freax.be, http://www.freax.eu.org
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]