@ -1,3 +1,8 @@
|
||||
2007-06-07 Gilles Dartiguelongue <dartigug@esiee.fr>
|
||||
|
||||
* gaimbuddies.c: (get_node_text), (parse_contact): more compilation
|
||||
warnings cleanup, completes bug #437584 fixes
|
||||
|
||||
2007-05-14 Srinivasa Ragavan <sragavan@novell.com>
|
||||
|
||||
** Fix for bug #414195 from Loïc Minier
|
||||
|
||||
@ -365,10 +365,10 @@ static char *
|
||||
get_node_text (xmlNodePtr node)
|
||||
{
|
||||
if (node->children == NULL || node->children->content == NULL ||
|
||||
strcmp ((const char *)node->children->name, "text"))
|
||||
strcmp ((char *)node->children->name, "text"))
|
||||
return NULL;
|
||||
|
||||
return g_strdup (node->children->content);
|
||||
return g_strdup ((char *)node->children->content);
|
||||
}
|
||||
|
||||
static char *
|
||||
@ -410,12 +410,12 @@ parse_contact (xmlNodePtr contact, GList **buddies)
|
||||
|
||||
gb = g_new0 (GaimBuddy, 1);
|
||||
|
||||
gb->proto = e_xml_get_string_prop_by_name (buddy, "proto");
|
||||
gb->proto = e_xml_get_string_prop_by_name (buddy, (const unsigned char *)"proto");
|
||||
|
||||
for (child = buddy->children; child != NULL; child = child->next) {
|
||||
if (! strcmp ((const char *)child->name, "setting")) {
|
||||
char *setting_type;
|
||||
setting_type = e_xml_get_string_prop_by_name (child, "name");
|
||||
setting_type = e_xml_get_string_prop_by_name (child, (const unsigned char *)"name");
|
||||
|
||||
if (! strcmp ((const char *)setting_type, "buddy_icon"))
|
||||
gb->icon = get_buddy_icon_from_setting (child);
|
||||
|
||||
@ -1,3 +1,8 @@
|
||||
2007-06-07 Gilles Dartiguelongue <dartigug@esiee.fr>
|
||||
|
||||
* exchange-mail-send-options.c: (org_gnome_exchange_send_options):
|
||||
more compilation warnings cleanup, completes bug #437584 fixes
|
||||
|
||||
2007-06-11 Milan Crha <mcrha@redhat.com>
|
||||
|
||||
** Fix for bug #325882
|
||||
|
||||
@ -123,8 +123,8 @@ org_gnome_exchange_send_options (EPlugin *ep, EMEventTargetComposer *target)
|
||||
EAccount *account = NULL;
|
||||
char *temp = NULL;
|
||||
|
||||
account = e_msg_composer_get_preferred_account (composer) ;
|
||||
temp = strstr (account->transport->url, "exchange") ;
|
||||
account = e_msg_composer_get_preferred_account (composer);
|
||||
temp = strstr (account->transport->url, "exchange");
|
||||
if (!temp) {
|
||||
return;
|
||||
}
|
||||
@ -134,8 +134,8 @@ org_gnome_exchange_send_options (EPlugin *ep, EMEventTargetComposer *target)
|
||||
g_print ("New dialog\n\n") ;
|
||||
dialog = exchange_sendoptions_dialog_new () ;
|
||||
}
|
||||
exchange_sendoptions_dialog_run (dialog, composer) ;
|
||||
g_signal_connect (dialog, "sod_response", G_CALLBACK (append_to_header), composer);
|
||||
exchange_sendoptions_dialog_run (dialog, GTK_WIDGET (composer));
|
||||
g_signal_connect (dialog, "sod_response", G_CALLBACK (append_to_header), GTK_WIDGET (composer));
|
||||
|
||||
g_signal_connect (GTK_WIDGET (composer), "destroy",
|
||||
G_CALLBACK (send_options_commit), dialog);
|
||||
|
||||
@ -1,3 +1,11 @@
|
||||
2007-06-07 Gilles Dartiguelongue <dartigug@esiee.fr>
|
||||
|
||||
* evolution-ipod-sync.c: (ipod_get_mount):
|
||||
* evolution-ipod-sync.h:
|
||||
* ipod.c: (try_mount), (try_umount): more compilation
|
||||
warnings cleanup, completes bug #437584 fixes. Removes
|
||||
hopefully useless code in headers.
|
||||
|
||||
2007-05-14 Srinivasa Ragavan <sragavan@novell.com>
|
||||
|
||||
** Fix for bug #375234 from Vitaliy Ischenko
|
||||
|
||||
@ -7,13 +7,15 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "evolution-ipod-sync.h"
|
||||
|
||||
#include <gnome.h>
|
||||
#include <glib/gi18n-lib.h>
|
||||
#include <gtk/gtk.h>
|
||||
#include <glade/glade.h>
|
||||
#include <libhal.h>
|
||||
|
||||
char * mount_point = NULL;
|
||||
LibHalContext *ctx;
|
||||
@ -77,7 +79,7 @@ ipod_check_status (gboolean silent)
|
||||
}
|
||||
|
||||
char *
|
||||
ipod_get_mount ()
|
||||
ipod_get_mount (void)
|
||||
{
|
||||
return mount_point;
|
||||
}
|
||||
|
||||
@ -7,37 +7,19 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
#include <dbus/dbus.h>
|
||||
#include <dbus/dbus-glib.h>
|
||||
#include <libhal.h>
|
||||
#include <signal.h>
|
||||
|
||||
#ifdef ENABLE_NLS
|
||||
# include <libintl.h>
|
||||
# define _(String) gettext (String)
|
||||
# ifdef gettext_noop
|
||||
# define N_(String) gettext_noop (String)
|
||||
# else
|
||||
# define N_(String) (String)
|
||||
# endif
|
||||
#else
|
||||
# define _(String)
|
||||
# define N_(String) (String)
|
||||
#endif
|
||||
|
||||
#ifdef EIS_DEBUG
|
||||
# define dbg(fmt,arg...) fprintf(stderr, "%s/%d: " fmt,__FILE__,__LINE__,##arg)
|
||||
#else
|
||||
# define dbg(fmt,arg...) do { } while(0)
|
||||
#endif
|
||||
|
||||
#define warn(fmt,arg...) g_warning("%s/%d: " fmt,__FILE__,__LINE__,##arg)
|
||||
|
||||
|
||||
gboolean check_hal ();
|
||||
gboolean check_hal (void);
|
||||
gboolean ipod_check_status (gboolean silent);
|
||||
gboolean try_umount (char *device);
|
||||
|
||||
char *find_ipod_mount_point (LibHalContext *ctx);
|
||||
gboolean ipod_check_status (gboolean silent);
|
||||
char *ipod_get_mount ();
|
||||
char *ipod_get_mount (void);
|
||||
|
||||
|
||||
|
||||
@ -62,7 +62,7 @@ try_mount (char *device)
|
||||
if (!g_spawn_sync (g_get_home_dir (), argv, NULL, 0, NULL, NULL, NULL,
|
||||
NULL, &exit_status, &err))
|
||||
{
|
||||
warn ("try_mount failed: %s", err->message);
|
||||
g_warning ("try_mount failed: %s", err->message);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@ -88,7 +88,7 @@ try_umount (char *device)
|
||||
if (!g_spawn_sync (g_get_home_dir (), argv, NULL, 0, NULL, NULL, NULL,
|
||||
NULL, &exit_status, &err))
|
||||
{
|
||||
warn ("try_umount failed: %s", err->message);
|
||||
g_warning ("try_umount failed: %s", err->message);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
@ -1,3 +1,8 @@
|
||||
2007-06-07 Gilles Dartiguelongue <dartigug@esiee.fr>
|
||||
|
||||
* mail-notification.c: (org_gnome_mail_new_notify):
|
||||
fix a printf warning
|
||||
|
||||
2007-06-03 Srinivasa Ragavan <sragavan@novell.com>
|
||||
|
||||
** Fix for version removal from Installed files from Gilles Dartiguelongue
|
||||
|
||||
@ -124,7 +124,7 @@ org_gnome_mail_new_notify (EPlugin *ep, EMEventTargetFolder *t)
|
||||
if (gconf_client_get_bool (client, GCONF_KEY_NOTIFICATION, NULL)) {
|
||||
if (!notify_init ("evolution-mail-notification"))
|
||||
fprintf(stderr,"notify init error");
|
||||
printf("creating %d\n", status_icon);
|
||||
printf("creating %p\n", status_icon);
|
||||
|
||||
notify = notify_notification_new (
|
||||
_("New email"),
|
||||
|
||||
@ -1,3 +1,8 @@
|
||||
2007-06-07 Gilles Dartiguelongue <dartigug@esiee.fr>
|
||||
|
||||
* mail-to-meeting.c: (add_attendee_cb): more compilation
|
||||
warnings cleanup, completes bug #437584 fixes
|
||||
|
||||
2007-04-02 Sankar P <psankar@novell.com>
|
||||
|
||||
* Committed on behalf of Gilles Dartiguelongue <dartigug@esiee.fr>
|
||||
|
||||
@ -38,7 +38,7 @@ add_attendee_cb (gpointer key, gpointer value, gpointer user_data)
|
||||
{
|
||||
ECalComponentAttendee *ca;
|
||||
const char *str, *name;
|
||||
GList **attendees = user_data;
|
||||
GSList **attendees = user_data;
|
||||
|
||||
if (!camel_internet_address_get (value, 0, &name, &str))
|
||||
return;
|
||||
@ -48,6 +48,7 @@ add_attendee_cb (gpointer key, gpointer value, gpointer user_data)
|
||||
ca->cn = name;
|
||||
/* FIXME: missing many fields */
|
||||
|
||||
/* FIXME: user prepend and reverse list order (GList) */
|
||||
*attendees = g_slist_append (*attendees, ca);
|
||||
}
|
||||
|
||||
|
||||
@ -1,3 +1,9 @@
|
||||
2007-06-07 Gilles Dartiguelongue <dartigug@esiee.fr>
|
||||
|
||||
* publish-location.c: (migrateURI), (e_publish_uri_from_xml),
|
||||
(e_publish_uri_to_xml): more compilation warnings cleanup,
|
||||
completes bug #437584 fixes
|
||||
|
||||
2007-05-12 Matthew Barnes <mbarnes@redhat.com>
|
||||
|
||||
* Makefile.am: Add "eplug" file to CLEANFILES.
|
||||
@ -5,7 +11,7 @@
|
||||
2007-05-11 Gilles Dartiguelongue <dartigug@esiee.fr>
|
||||
|
||||
* url-editor-dialog.c: (set_from_uri): fixes casts in strcmp,
|
||||
fixes par of bug #437584
|
||||
fixes part of bug #437584
|
||||
|
||||
2007-03-20 Matthew Barnes <mbarnes@redhat.com>
|
||||
|
||||
|
||||
@ -54,40 +54,40 @@ migrateURI (const gchar *xml, xmlDocPtr doc)
|
||||
uri = g_new0 (EPublishUri, 1);
|
||||
|
||||
root = doc->children;
|
||||
location = xmlGetProp (root, "location");
|
||||
enabled = xmlGetProp (root, "enabled");
|
||||
frequency = xmlGetProp (root, "frequency");
|
||||
username = xmlGetProp (root, "username");
|
||||
location = xmlGetProp (root, (const unsigned char *)"location");
|
||||
enabled = xmlGetProp (root, (const unsigned char *)"enabled");
|
||||
frequency = xmlGetProp (root, (const unsigned char *)"frequency");
|
||||
username = xmlGetProp (root, (const unsigned char *)"username");
|
||||
|
||||
vfs_uri = gnome_vfs_uri_new (location);
|
||||
vfs_uri = gnome_vfs_uri_new ((char *)location);
|
||||
|
||||
if (!vfs_uri) {
|
||||
g_warning ("Could not form the uri for %s \n", location);
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
gnome_vfs_uri_set_user_name (vfs_uri, username);
|
||||
gnome_vfs_uri_set_user_name ((GnomeVFSURI *)vfs_uri, (char *)username);
|
||||
temp = gnome_vfs_uri_to_string (vfs_uri, GNOME_VFS_URI_HIDE_TOPLEVEL_METHOD | GNOME_VFS_URI_HIDE_PASSWORD);
|
||||
uri->location = g_strdup_printf ("dav://%s", temp);
|
||||
g_free (temp);
|
||||
gnome_vfs_uri_unref (vfs_uri);
|
||||
|
||||
if (enabled != NULL)
|
||||
uri->enabled = atoi (enabled);
|
||||
uri->enabled = atoi ((char *)enabled);
|
||||
if (frequency != NULL)
|
||||
uri->publish_frequency = atoi (frequency);
|
||||
uri->publish_frequency = atoi ((char *)frequency);
|
||||
uri->publish_format = URI_PUBLISH_AS_FB;
|
||||
|
||||
password = e_passwords_get_password ("Calendar", location);
|
||||
password = e_passwords_get_password ("Calendar", (char *)location);
|
||||
if (password) {
|
||||
e_passwords_forget_password ("Calendar", location);
|
||||
e_passwords_forget_password ("Calendar", (char *)location);
|
||||
e_passwords_add_password (uri->location, password);
|
||||
e_passwords_remember_password ("Calendar", uri->location);
|
||||
}
|
||||
|
||||
for (p = root->children; p != NULL; p = p->next) {
|
||||
xmlChar *uid = xmlGetProp (p, "uid");
|
||||
if (strcmp (p->name, "source") == 0) {
|
||||
xmlChar *uid = xmlGetProp (p, (const unsigned char *)"uid");
|
||||
if (strcmp ((char *)p->name, "source") == 0) {
|
||||
events = g_slist_append (events, uid);
|
||||
} else {
|
||||
g_free (uid);
|
||||
@ -121,15 +121,15 @@ e_publish_uri_from_xml (const gchar *xml)
|
||||
GSList *events = NULL;
|
||||
EPublishUri *uri;
|
||||
|
||||
doc = xmlParseDoc ((char *) xml);
|
||||
doc = xmlParseDoc ((const unsigned char *)xml);
|
||||
if (doc == NULL)
|
||||
return NULL;
|
||||
|
||||
root = doc->children;
|
||||
if (strcmp (root->name, "uri") != 0)
|
||||
if (strcmp ((char *)root->name, "uri") != 0)
|
||||
return NULL;
|
||||
|
||||
if ((username = xmlGetProp (root, "username"))) {
|
||||
if ((username = xmlGetProp (root, (const unsigned char *)"username"))) {
|
||||
xmlFree (username);
|
||||
return migrateURI (xml, doc);
|
||||
|
||||
@ -137,28 +137,28 @@ e_publish_uri_from_xml (const gchar *xml)
|
||||
|
||||
uri = g_new0 (EPublishUri, 1);
|
||||
|
||||
location = xmlGetProp (root, "location");
|
||||
enabled = xmlGetProp (root, "enabled");
|
||||
frequency = xmlGetProp (root, "frequency");
|
||||
format = xmlGetProp (root, "format");
|
||||
publish_time = xmlGetProp (root, "publish_time");
|
||||
location = xmlGetProp (root, (const unsigned char *)"location");
|
||||
enabled = xmlGetProp (root, (const unsigned char *)"enabled");
|
||||
frequency = xmlGetProp (root, (const unsigned char *)"frequency");
|
||||
format = xmlGetProp (root, (const unsigned char *)"format");
|
||||
publish_time = xmlGetProp (root, (const unsigned char *)"publish_time");
|
||||
|
||||
if (location != NULL)
|
||||
uri->location = location;
|
||||
uri->location = (char *)location;
|
||||
if (enabled != NULL)
|
||||
uri->enabled = atoi (enabled);
|
||||
uri->enabled = atoi ((char *)enabled);
|
||||
if (frequency != NULL)
|
||||
uri->publish_frequency = atoi (frequency);
|
||||
uri->publish_frequency = atoi ((char *)frequency);
|
||||
if (format != NULL)
|
||||
uri->publish_format = atoi (format);
|
||||
uri->publish_format = atoi ((char *)format);
|
||||
if (publish_time != NULL)
|
||||
uri->last_pub_time = publish_time;
|
||||
uri->last_pub_time = (char *)publish_time;
|
||||
|
||||
uri->password = g_strdup ("");
|
||||
|
||||
for (p = root->children; p != NULL; p = p->next) {
|
||||
xmlChar *uid = xmlGetProp (p, "uid");
|
||||
if (strcmp (p->name, "event") == 0) {
|
||||
xmlChar *uid = xmlGetProp (p, (const unsigned char *)"uid");
|
||||
if (strcmp ((char *)p->name, "event") == 0) {
|
||||
events = g_slist_append (events, uid);
|
||||
} else {
|
||||
g_free (uid);
|
||||
@ -188,22 +188,22 @@ e_publish_uri_to_xml (EPublishUri *uri)
|
||||
g_return_val_if_fail (uri != NULL, NULL);
|
||||
g_return_val_if_fail (uri->location != NULL, NULL);
|
||||
|
||||
doc = xmlNewDoc ("1.0");
|
||||
doc = xmlNewDoc ((const unsigned char *)"1.0");
|
||||
|
||||
root = xmlNewDocNode (doc, NULL, "uri", NULL);
|
||||
root = xmlNewDocNode (doc, NULL, (const unsigned char *)"uri", NULL);
|
||||
enabled = g_strdup_printf ("%d", uri->enabled);
|
||||
frequency = g_strdup_printf ("%d", uri->publish_frequency);
|
||||
format = g_strdup_printf ("%d", uri->publish_format);
|
||||
xmlSetProp (root, "location", uri->location);
|
||||
xmlSetProp (root, "enabled", enabled);
|
||||
xmlSetProp (root, "frequency", frequency);
|
||||
xmlSetProp (root, "format", format);
|
||||
xmlSetProp (root, "publish_time", uri->last_pub_time);
|
||||
xmlSetProp (root, (const unsigned char *)"location", (unsigned char *)uri->location);
|
||||
xmlSetProp (root, (const unsigned char *)"enabled", (unsigned char *)enabled);
|
||||
xmlSetProp (root, (const unsigned char *)"frequency", (unsigned char *)frequency);
|
||||
xmlSetProp (root, (const unsigned char *)"format", (unsigned char *)format);
|
||||
xmlSetProp (root, (const unsigned char *)"publish_time", (unsigned char *)uri->last_pub_time);
|
||||
|
||||
for (calendars = uri->events; calendars != NULL; calendars = g_slist_next (calendars)) {
|
||||
xmlNodePtr node;
|
||||
node = xmlNewChild (root, NULL, "event", NULL);
|
||||
xmlSetProp (node, "uid", calendars->data);
|
||||
node = xmlNewChild (root, NULL, (const unsigned char *)"event", NULL);
|
||||
xmlSetProp (node, (const unsigned char *)"uid", calendars->data);
|
||||
}
|
||||
xmlDocSetRootElement (doc, root);
|
||||
|
||||
|
||||
@ -1,3 +1,9 @@
|
||||
2007-06-07 Gilles Dartiguelongue <dartigug@esiee.fr>
|
||||
|
||||
* rdf-format.c: (add_nummeric_to_rdf), (add_time_to_rdf),
|
||||
(add_string_to_rdf), (do_save_calendar_rdf):
|
||||
more compilation warnings cleanup, completes bug #437584 fixes
|
||||
|
||||
2007-04-02 Sankar P <psankar@novell.com>
|
||||
|
||||
* Committed on behalf of Gilles Dartiguelongue <dartigug@esiee.fr>
|
||||
|
||||
@ -135,8 +135,8 @@ add_nummeric_to_rdf (xmlNodePtr node, const gchar *tag, gint *nummeric)
|
||||
{
|
||||
if (nummeric) {
|
||||
gchar *value = g_strdup_printf ("%d", *nummeric);
|
||||
xmlNodePtr cur_node = xmlNewChild (node, NULL, tag, value);
|
||||
xmlSetProp (cur_node, "rdf:datatype", "http://www.w3.org/2001/XMLSchema#integer");
|
||||
xmlNodePtr cur_node = xmlNewChild (node, NULL, (unsigned char *)tag, (unsigned char *)value);
|
||||
xmlSetProp (cur_node, (const unsigned char *)"rdf:datatype", (const unsigned char *)"http://www.w3.org/2001/XMLSchema#integer");
|
||||
g_free (value);
|
||||
}
|
||||
}
|
||||
@ -157,12 +157,12 @@ add_time_to_rdf (xmlNodePtr node, const gchar *tag, icaltimetype *time)
|
||||
* */
|
||||
e_utf8_strftime (str, 200, _("%FT%T"), &mytm);
|
||||
|
||||
cur_node = xmlNewChild (node, NULL, tag, str);
|
||||
cur_node = xmlNewChild (node, NULL, (unsigned char *)tag, (unsigned char *)str);
|
||||
|
||||
/* Not sure about this property */
|
||||
timezone = calendar_config_get_timezone ();
|
||||
tmp = g_strdup_printf ("http://www.w3.org/2002/12/cal/tzd/%s#tz", timezone);
|
||||
xmlSetProp (cur_node, "rdf:datatype", tmp);
|
||||
xmlSetProp (cur_node, (const unsigned char *)"rdf:datatype", (unsigned char *)tmp);
|
||||
g_free (tmp);
|
||||
g_free (timezone);
|
||||
g_free (str);
|
||||
@ -175,8 +175,8 @@ add_string_to_rdf (xmlNodePtr node, const gchar *tag, const char *value)
|
||||
{
|
||||
if (value) {
|
||||
xmlNodePtr cur_node = NULL;
|
||||
cur_node = xmlNewChild (node, NULL, tag, value);
|
||||
xmlSetProp (cur_node, "rdf:datatype", "http://www.w3.org/2001/XMLSchema#string");
|
||||
cur_node = xmlNewChild (node, NULL, (unsigned char *)tag, (unsigned char *)value);
|
||||
xmlSetProp (cur_node, (const unsigned char *)"rdf:datatype", (const unsigned char *)"http://www.w3.org/2001/XMLSchema#string");
|
||||
}
|
||||
}
|
||||
|
||||
@ -241,34 +241,34 @@ do_save_calendar_rdf (FormatHandler *handler, EPlugin *ep, ECalPopupTargetSource
|
||||
xmlDocPtr doc = xmlNewDoc((xmlChar *) "1.0");
|
||||
xmlNodePtr fnode = doc->children;
|
||||
|
||||
doc->children = xmlNewDocNode (doc, NULL, "rdf:RDF", NULL);
|
||||
xmlSetProp (doc->children, "xmlns:rdf", "http://www.w3.org/1999/02/22-rdf-syntax-ns#");
|
||||
xmlSetProp (doc->children, "xmlns", "http://www.w3.org/2002/12/cal/ical#");
|
||||
doc->children = xmlNewDocNode (doc, NULL, (const unsigned char *)"rdf:RDF", NULL);
|
||||
xmlSetProp (doc->children, (const unsigned char *)"xmlns:rdf", (const unsigned char *)"http://www.w3.org/1999/02/22-rdf-syntax-ns#");
|
||||
xmlSetProp (doc->children, (const unsigned char *)"xmlns", (const unsigned char *)"http://www.w3.org/2002/12/cal/ical#");
|
||||
|
||||
fnode = xmlNewChild (doc->children, NULL, "Vcalendar", NULL);
|
||||
fnode = xmlNewChild (doc->children, NULL, (const unsigned char *)"Vcalendar", NULL);
|
||||
|
||||
/* Should Evolution publicise these? */
|
||||
xmlSetProp (fnode, "xmlns:x-wr", "http://www.w3.org/2002/12/cal/prod/Apple_Comp_628d9d8459c556fa#");
|
||||
xmlSetProp (fnode, "xmlns:x-lic", "http://www.w3.org/2002/12/cal/prod/Apple_Comp_628d9d8459c556fa#");
|
||||
xmlSetProp (fnode, (const unsigned char *)"xmlns:x-wr", (const unsigned char *)"http://www.w3.org/2002/12/cal/prod/Apple_Comp_628d9d8459c556fa#");
|
||||
xmlSetProp (fnode, (const unsigned char *)"xmlns:x-lic", (const unsigned char *)"http://www.w3.org/2002/12/cal/prod/Apple_Comp_628d9d8459c556fa#");
|
||||
|
||||
/* Not sure if it's correct like this */
|
||||
xmlNewChild (fnode, NULL, "prodid", "-//" PACKAGE_STRING "//iCal 1.0//EN");
|
||||
xmlNewChild (fnode, NULL, (const unsigned char *)"prodid", (const unsigned char *)"-//" PACKAGE_STRING "//iCal 1.0//EN");
|
||||
|
||||
/* Assuming GREGORIAN is the only supported calendar scale */
|
||||
xmlNewChild (fnode, NULL, "calscale", "GREGORIAN");
|
||||
xmlNewChild (fnode, NULL, (const unsigned char *)"calscale", (const unsigned char *)"GREGORIAN");
|
||||
|
||||
temp = calendar_config_get_timezone ();
|
||||
xmlNewChild (fnode, NULL, "x-wr:timezone", temp);
|
||||
xmlNewChild (fnode, NULL, (const unsigned char *)"x-wr:timezone", (unsigned char *)temp);
|
||||
g_free (temp);
|
||||
|
||||
xmlNewChild (fnode, NULL, "method", "PUBLISH");
|
||||
xmlNewChild (fnode, NULL, (const unsigned char *)"method", (const unsigned char *)"PUBLISH");
|
||||
|
||||
xmlNewChild (fnode, NULL, "x-wr:relcalid", e_source_peek_uid (primary_source));
|
||||
xmlNewChild (fnode, NULL, (const unsigned char *)"x-wr:relcalid", (unsigned char *)e_source_peek_uid (primary_source));
|
||||
|
||||
xmlNewChild (fnode, NULL, "x-wr:calname", e_source_peek_name (primary_source));
|
||||
xmlNewChild (fnode, NULL, (const unsigned char *)"x-wr:calname", (unsigned char *)e_source_peek_name (primary_source));
|
||||
|
||||
/* Version of this RDF-format */
|
||||
xmlNewChild (fnode, NULL, "version", "2.0");
|
||||
xmlNewChild (fnode, NULL, (const unsigned char *)"version", (const unsigned char *)"2.0");
|
||||
|
||||
while (objects != NULL) {
|
||||
ECalComponent *comp = objects->data;
|
||||
@ -279,13 +279,13 @@ do_save_calendar_rdf (FormatHandler *handler, EPlugin *ep, ECalPopupTargetSource
|
||||
struct icaltimetype *temp_time;
|
||||
int *temp_int;
|
||||
ECalComponentText temp_comptext;
|
||||
xmlNodePtr c_node = xmlNewChild (fnode, NULL, "component", NULL);
|
||||
xmlNodePtr node = xmlNewChild (c_node, NULL, "Vevent", NULL);
|
||||
xmlNodePtr c_node = xmlNewChild (fnode, NULL, (const unsigned char *)"component", NULL);
|
||||
xmlNodePtr node = xmlNewChild (c_node, NULL, (const unsigned char *)"Vevent", NULL);
|
||||
|
||||
/* Getting the stuff */
|
||||
e_cal_component_get_uid (comp, &temp_constchar);
|
||||
tmp_str = g_strdup_printf ("#%s", temp_constchar);
|
||||
xmlSetProp (node, "about", tmp_str);
|
||||
xmlSetProp (node, (const unsigned char *)"about", (unsigned char *)tmp_str);
|
||||
g_free (tmp_str);
|
||||
add_string_to_rdf (node, "uid",temp_constchar);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user