aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2001-09-20 06:30:41 +0800
committerIain Holmes <iain@src.gnome.org>2001-09-20 06:30:41 +0800
commit86061f37b43ef2206b0d995756ae785d0997a9ef (patch)
treece7c269b21abc250113af9d4694b9c4d73dc0171
parent728505319e43258b4cd81b6010f7d3cbfe8606b3 (diff)
downloadgsoc2013-evolution-86061f37b43ef2206b0d995756ae785d0997a9ef.tar
gsoc2013-evolution-86061f37b43ef2206b0d995756ae785d0997a9ef.tar.gz
gsoc2013-evolution-86061f37b43ef2206b0d995756ae785d0997a9ef.tar.bz2
gsoc2013-evolution-86061f37b43ef2206b0d995756ae785d0997a9ef.tar.lz
gsoc2013-evolution-86061f37b43ef2206b0d995756ae785d0997a9ef.tar.xz
gsoc2013-evolution-86061f37b43ef2206b0d995756ae785d0997a9ef.tar.zst
gsoc2013-evolution-86061f37b43ef2206b0d995756ae785d0997a9ef.zip
Display a bell icon if there's an alarm set
svn path=/trunk/; revision=12995
-rw-r--r--my-evolution/ChangeLog5
-rw-r--r--my-evolution/e-summary-calendar.c5
-rw-r--r--my-evolution/e-summary-mail.c2
3 files changed, 9 insertions, 3 deletions
diff --git a/my-evolution/ChangeLog b/my-evolution/ChangeLog
index 782dcf78ef..c0d4f04b82 100644
--- a/my-evolution/ChangeLog
+++ b/my-evolution/ChangeLog
@@ -1,5 +1,10 @@
2001-09-19 Iain Holmes <iain@ximian.com>
+ * e-summary-calendar.c (generate_html): If the appointment has an alarm
+ display a bell icon.
+
+2001-09-19 Iain Holmes <iain@ximian.com>
+
* component-factory.c (create_view): Remove spew.
* e-summary-mail.c (e_summary_mail_reconfigure): Get mail info if we
diff --git a/my-evolution/e-summary-calendar.c b/my-evolution/e-summary-calendar.c
index d06496209b..e869b71d94 100644
--- a/my-evolution/e-summary-calendar.c
+++ b/my-evolution/e-summary-calendar.c
@@ -192,7 +192,7 @@ generate_html (gpointer data)
CalComponentText text;
time_t start_t;
struct tm *start_tm;
- char *start_str;
+ char *start_str, *img;
event = uidarray->pdata[i];
cal_component_get_summary (event->comp, &text);
@@ -206,9 +206,10 @@ generate_html (gpointer data)
strftime (start_str, 19, _("%l:%M %d %B"), start_tm);
}
- tmp = g_strdup_printf ("<img align=\"middle\" src=\"new_appointment.xpm\" "
+ tmp = g_strdup_printf ("<img align=\"middle\" src=\"%s\" "
"alt=\"\" width=\"16\" height=\"16\"> &#160; "
"<font size=\"-1\"><a href=\"calendar:/%s\">%s, %s</a></font><br>",
+ cal_component_has_alarms (event->comp) ? "es-appointments.png" : "new_appointment.xpm",
event->uid, start_str, text.value);
g_free (start_str);
diff --git a/my-evolution/e-summary-mail.c b/my-evolution/e-summary-mail.c
index 0ed54ad407..27a1ff3e53 100644
--- a/my-evolution/e-summary-mail.c
+++ b/my-evolution/e-summary-mail.c
@@ -49,7 +49,7 @@ typedef struct _ESummaryMailFolder {
int count;
int unread;
- gboolean init;
+ gboolean init; /* Has this folder been initialised? */
} ESummaryMailFolder;
const char *