aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/publish-calendar/ChangeLog5
-rw-r--r--plugins/publish-calendar/url-editor-dialog.c8
2 files changed, 11 insertions, 2 deletions
diff --git a/plugins/publish-calendar/ChangeLog b/plugins/publish-calendar/ChangeLog
index cdf0981ad1..bd30d3ccf6 100644
--- a/plugins/publish-calendar/ChangeLog
+++ b/plugins/publish-calendar/ChangeLog
@@ -1,3 +1,8 @@
+2007-02-19 Sankar P <psankar@novell.com>
+
+ * url-editor-dialog.c: (set_from_uri):
+ Fixes some string to int conversion.
+
2006-08-02 Chenthill Palanisamy <pchenthill@novell.com>
Fixes #343991
diff --git a/plugins/publish-calendar/url-editor-dialog.c b/plugins/publish-calendar/url-editor-dialog.c
index 7eed7f796e..352d6eff1e 100644
--- a/plugins/publish-calendar/url-editor-dialog.c
+++ b/plugins/publish-calendar/url-editor-dialog.c
@@ -282,8 +282,12 @@ set_from_uri (UrlEditorDialog *dialog)
if (euri->host)
gtk_entry_set_text (GTK_ENTRY (dialog->server_entry), euri->host);
- if (euri->port)
- gtk_entry_set_text (GTK_ENTRY (dialog->port_entry), euri->port);
+ if (euri->port) {
+ char *port;
+ port = g_strdup_printf ("%d", euri->port);
+ gtk_entry_set_text (GTK_ENTRY (dialog->port_entry), port);
+ g_free (port);
+ }
if (euri->path)
gtk_entry_set_text (GTK_ENTRY (dialog->file_entry), euri->path);