aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/alarm-notify/alarm-notify-dialog.c
diff options
context:
space:
mode:
authorHans Petter Jansson <hpj@ximian.com>2003-08-29 04:11:57 +0800
committerHans Petter <hansp@src.gnome.org>2003-08-29 04:11:57 +0800
commit2eeec5bdc657477ae623e84aa3036f6cad19515a (patch)
tree12ec026ab049f8fabcfb50bca1dbd2a5aac2c269 /calendar/gui/alarm-notify/alarm-notify-dialog.c
parent39d8d81a90cdaf5f254c9581834f7faebd0f073b (diff)
downloadgsoc2013-evolution-2eeec5bdc657477ae623e84aa3036f6cad19515a.tar.gz
gsoc2013-evolution-2eeec5bdc657477ae623e84aa3036f6cad19515a.tar.zst
gsoc2013-evolution-2eeec5bdc657477ae623e84aa3036f6cad19515a.zip
Added alarm-notify utils.
2003-08-28 Hans Petter Jansson <hpj@ximian.com> * gui/alarm-notify/util.[ch]: Added alarm-notify utils. * gui/alarm-notify/Makefile.am: Added alarm-notify utils. * gui/alarm-notify/alarm-notify-dialog.c (timet_to_str_with_zone): Move to util.c. * gui/alarm-notify/alarm-queue.c (notify_dialog_cb) (on_dialog_removed_cb) (notify_dialog_cb) (tray_icon_destroyed_cb) (tray_icon_clicked_cb) (tray_icon_blink_cb) (display_notification): Add Rodrigo Moya's code for tray icon notification of appointments, with some fixes and blink code by me. Requires HEAD gnome-icon-theme for now. svn path=/trunk/; revision=22406
Diffstat (limited to 'calendar/gui/alarm-notify/alarm-notify-dialog.c')
-rw-r--r--calendar/gui/alarm-notify/alarm-notify-dialog.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/calendar/gui/alarm-notify/alarm-notify-dialog.c b/calendar/gui/alarm-notify/alarm-notify-dialog.c
index 203fa39cb4..3697fc1290 100644
--- a/calendar/gui/alarm-notify/alarm-notify-dialog.c
+++ b/calendar/gui/alarm-notify/alarm-notify-dialog.c
@@ -40,6 +40,7 @@
#include "cal-util/timeutil.h"
#include "alarm-notify-dialog.h"
#include "config-data.h"
+#include "util.h"
GtkWidget *make_html_display (gchar *widget_name, char *s1, char *s2, int scroll, int shadow);
@@ -215,25 +216,6 @@ write_times (GtkHTMLStream *stream, char *start, char *end)
}
-/* Converts a time_t to a string, relative to the specified timezone */
-static char *
-timet_to_str_with_zone (time_t t, icaltimezone *zone)
-{
- struct icaltimetype itt;
- struct tm tm;
- char buf[256];
-
- if (t == -1)
- return g_strdup (_("invalid time"));
-
- itt = icaltime_from_timet_with_zone (t, FALSE, zone);
- tm = icaltimetype_to_tm (&itt);
-
- e_time_format_date_and_time (&tm, config_data_get_24_hour_format (),
- FALSE, FALSE, buf, sizeof (buf));
- return g_strdup (buf);
-}
-
/* Creates a heading for the alarm notification dialog */
static void
write_html_heading (GtkHTMLStream *stream, const char *message,