aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorTor Lillqvist <tml@novell.com>2005-11-25 21:14:19 +0800
committerTor Lillqvist <tml@src.gnome.org>2005-11-25 21:14:19 +0800
commit6002658d1c8a44f389263f77b3e430472b1a9828 (patch)
treeceef4998b5e2e8de28330d3d3da189d74e4fd5ff /calendar/gui
parent717d3a2eed4efcd1fb0923b2a743a0daa17d2810 (diff)
downloadgsoc2013-evolution-6002658d1c8a44f389263f77b3e430472b1a9828.tar.gz
gsoc2013-evolution-6002658d1c8a44f389263f77b3e430472b1a9828.tar.zst
gsoc2013-evolution-6002658d1c8a44f389263f77b3e430472b1a9828.zip
Use g_filename_to_uri() instead of just prefixing "file://" for Win32
2005-11-25 Tor Lillqvist <tml@novell.com> * gui/calendar-component.c (ensure_sources): Use g_filename_to_uri() instead of just prefixing "file://" for Win32 portability. svn path=/trunk/; revision=30668
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/calendar-component.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/calendar/gui/calendar-component.c b/calendar/gui/calendar-component.c
index ba48b577bd..38c6e978af 100644
--- a/calendar/gui/calendar-component.c
+++ b/calendar/gui/calendar-component.c
@@ -152,10 +152,10 @@ ensure_sources (CalendarComponent *component)
}
base_uri = g_build_filename (calendar_component_peek_base_directory (component),
- "/calendar/local/",
+ "calendar", "local",
NULL);
- base_uri_proto = g_strconcat ("file://", base_uri, NULL);
+ base_uri_proto = g_filename_to_uri (base_uri, NULL, NULL);
groups = e_source_list_peek_groups (source_list);
if (groups) {
@@ -1155,7 +1155,7 @@ setup_create_ecal (CalendarComponent *calendar_component, CalendarComponentView
dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL,
GTK_MESSAGE_WARNING, GTK_BUTTONS_OK,
_("Unable to open the calendar '%s' for creating events and meetings"),
- e_source_peek_name (source));
+ e_source_peek_name (source));
gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog);