");
- if (icon)
+
+ if (im_service) {
+ g_string_append_printf (gstr, "", im_service, value);
+ }
+ else if (icon) {
g_string_append_printf (gstr, " ", icon);
+ }
+
g_string_append_printf (gstr, " | %s: | %s |
", label, value);
g_free (value);
@@ -237,14 +306,14 @@
static void
-accum_attribute (GString *gstr, EContact *contact, const char *html_label, EContactField field, const char *icon, unsigned int html_flags)
+accum_attribute (GString *gstr, EContact *contact, const char *html_label, EContactField field, const char *icon, const char *im_service, unsigned int html_flags)
{
const char *str;
str = e_contact_get_const (contact, field);
if (str && *str) {
- accum_name_value (gstr, html_label, str, icon, html_flags);
+ accum_name_value (gstr, html_label, str, icon, im_service, html_flags);
}
}
@@ -330,12 +399,12 @@
g_string_assign (accum, "");
- accum_attribute (accum, contact, _("AIM"), E_CONTACT_IM_AIM_HOME_1, AIM_ICON, 0);
- accum_attribute (accum, contact, _("GroupWise"), E_CONTACT_IM_GROUPWISE_HOME_1, GROUPWISE_ICON, 0);
- accum_attribute (accum, contact, _("ICQ"), E_CONTACT_IM_ICQ_HOME_1, ICQ_ICON, 0);
- accum_attribute (accum, contact, _("Jabber"), E_CONTACT_IM_JABBER_HOME_1, JABBER_ICON, 0);
- accum_attribute (accum, contact, _("MSN"), E_CONTACT_IM_MSN_HOME_1, MSN_ICON, 0);
- accum_attribute (accum, contact, _("Yahoo"), E_CONTACT_IM_YAHOO_HOME_1, YAHOO_ICON, 0);
+ accum_attribute (accum, contact, _("AIM"), E_CONTACT_IM_AIM_HOME_1, AIM_ICON, GALAGO_SERVICE_ID_AIM, 0);
+ accum_attribute (accum, contact, _("GroupWise"), E_CONTACT_IM_GROUPWISE_HOME_1, GROUPWISE_ICON, GALAGO_SERVICE_ID_GROUPWISE, 0);
+ accum_attribute (accum, contact, _("ICQ"), E_CONTACT_IM_ICQ_HOME_1, ICQ_ICON, GALAGO_SERVICE_ID_ICQ, 0);
+ accum_attribute (accum, contact, _("Jabber"), E_CONTACT_IM_JABBER_HOME_1, JABBER_ICON, GALAGO_SERVICE_ID_JABBER, 0);
+ accum_attribute (accum, contact, _("MSN"), E_CONTACT_IM_MSN_HOME_1, MSN_ICON, GALAGO_SERVICE_ID_MSN, 0);
+ accum_attribute (accum, contact, _("Yahoo"), E_CONTACT_IM_YAHOO_HOME_1, YAHOO_ICON, GALAGO_SERVICE_ID_YAHOO, 0);
if (accum->len > 0)
gtk_html_stream_printf (html_stream, accum->str);
@@ -344,11 +413,11 @@
g_string_assign (accum, "");
- accum_attribute (accum, contact, _("Organization"), E_CONTACT_ORG, NULL, 0);
- accum_attribute (accum, contact, _("Position"), E_CONTACT_TITLE, NULL, 0);
- accum_attribute (accum, contact, _("Video Conferencing"), E_CONTACT_VIDEO_URL, VIDEOCONF_ICON, E_TEXT_TO_HTML_CONVERT_URLS);
- accum_attribute (accum, contact, _("Phone"), E_CONTACT_PHONE_BUSINESS, NULL, 0);
- accum_attribute (accum, contact, _("Fax"), E_CONTACT_PHONE_BUSINESS_FAX, NULL, 0);
+ accum_attribute (accum, contact, _("Organization"), E_CONTACT_ORG, NULL, NULL, 0);
+ accum_attribute (accum, contact, _("Position"), E_CONTACT_TITLE, NULL, NULL, 0);
+ accum_attribute (accum, contact, _("Video Conferencing"), E_CONTACT_VIDEO_URL, VIDEOCONF_ICON, NULL, E_TEXT_TO_HTML_CONVERT_URLS);
+ accum_attribute (accum, contact, _("Phone"), E_CONTACT_PHONE_BUSINESS, NULL, NULL, 0);
+ accum_attribute (accum, contact, _("Fax"), E_CONTACT_PHONE_BUSINESS_FAX, NULL, NULL, 0);
accum_address (accum, contact, _("Address"), E_CONTACT_ADDRESS_WORK, E_CONTACT_ADDRESS_LABEL_WORK);
if (accum->len > 0) {
@@ -359,11 +428,11 @@
g_string_assign (accum, "");
- accum_attribute (accum, contact, _("WWW"), E_CONTACT_HOMEPAGE_URL, NULL, E_TEXT_TO_HTML_CONVERT_URLS);
- accum_attribute (accum, contact, _("Blog"), E_CONTACT_BLOG_URL, NULL, E_TEXT_TO_HTML_CONVERT_URLS);
+ accum_attribute (accum, contact, _("WWW"), E_CONTACT_HOMEPAGE_URL, NULL, NULL, E_TEXT_TO_HTML_CONVERT_URLS);
+ accum_attribute (accum, contact, _("Blog"), E_CONTACT_BLOG_URL, NULL, NULL, E_TEXT_TO_HTML_CONVERT_URLS);
- accum_attribute (accum, contact, _("Phone"), E_CONTACT_PHONE_HOME, NULL, 0);
- accum_attribute (accum, contact, _("Mobile Phone"), E_CONTACT_PHONE_MOBILE, NULL, 0);
+ accum_attribute (accum, contact, _("Phone"), E_CONTACT_PHONE_HOME, NULL, NULL, 0);
+ accum_attribute (accum, contact, _("Mobile Phone"), E_CONTACT_PHONE_MOBILE, NULL, NULL, 0);
accum_address (accum, contact, _("Address"), E_CONTACT_ADDRESS_HOME, E_CONTACT_ADDRESS_LABEL_HOME);
if (accum->len > 0) {
@@ -623,11 +692,11 @@
g_signal_connect (display, "link_clicked",
G_CALLBACK (on_link_clicked),
display);
-#if 0
g_signal_connect (display, "object_requested",
G_CALLBACK (on_object_requested),
- mail_display);
- g_signal_connect (display, "button_press_event",
+ display);
+#if 0
+ g_signal_connect (display->priv->html, "button_press_event",
G_CALLBACK (html_button_press_event), mail_display);
g_signal_connect (display, "motion_notify_event",
G_CALLBACK (html_motion_notify_event), mail_display);
Index: e-util/Makefile.am
===================================================================
RCS file: /cvs/gnome/evolution/e-util/Makefile.am,v
retrieving revision 1.119
diff -u -r1.119 Makefile.am
--- e-util/Makefile.am 20 Sep 2004 05:59:54 -0000 1.119
+++ e-util/Makefile.am 14 Oct 2004 06:59:46 -0000
@@ -33,6 +33,7 @@
e-event.h \
e-folder-map.h \
e-fsutils.h \
+ e-galago.h \
e-gtk-utils.h \
e-gui-utils.h \
e-host-utils.h \
@@ -77,6 +78,7 @@
e-event.c \
e-folder-map.c \
e-fsutils.c \
+ e-galago.c \
e-gtk-utils.c \
e-gui-utils.c \
e-host-utils.c \
Index: e-util/e-galago.c
===================================================================
RCS file: e-util/e-galago.c
diff -N e-util/e-galago.c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ e-util/e-galago.c 14 Oct 2004 06:59:46 -0000
@@ -0,0 +1,139 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
+
+/*
+ * e-galago.c
+ *
+ * Copyright (C) 2001 Ximian, Inc.
+ *
+ * Developed by Christian Hammond