aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/comp-editor.c
diff options
context:
space:
mode:
authorHarish Krishnaswamy <kharish@src.gnome.org>2005-01-10 19:09:07 +0800
committerHarish Krishnaswamy <kharish@src.gnome.org>2005-01-10 19:09:07 +0800
commit25f5e0831b30fd2aa55a3cedcc444cdeb9b37889 (patch)
treed0a981b42e6ca37b980f629d6a12045ab7f9e86b /calendar/gui/dialogs/comp-editor.c
parent25364488bb4d8ecb5313025e4b915dbc1de10ffa (diff)
downloadgsoc2013-evolution-25f5e0831b30fd2aa55a3cedcc444cdeb9b37889.tar
gsoc2013-evolution-25f5e0831b30fd2aa55a3cedcc444cdeb9b37889.tar.gz
gsoc2013-evolution-25f5e0831b30fd2aa55a3cedcc444cdeb9b37889.tar.bz2
gsoc2013-evolution-25f5e0831b30fd2aa55a3cedcc444cdeb9b37889.tar.lz
gsoc2013-evolution-25f5e0831b30fd2aa55a3cedcc444cdeb9b37889.tar.xz
gsoc2013-evolution-25f5e0831b30fd2aa55a3cedcc444cdeb9b37889.tar.zst
gsoc2013-evolution-25f5e0831b30fd2aa55a3cedcc444cdeb9b37889.zip
Modified cal-attachment-bar to allow the path to the local attachment
* gui/dialogs/cal-attachment-bar.[ch]: (destroy), (init), (cal_attachment_bar_set_local_attachment_store), (cal_attachment_bar_get_attachment_list), (cal_attachment_bar_get_nth_attachment_filename), (cal_attachment_bar_set_attachment_list): Modified cal-attachment-bar to allow the path to the local attachment store be set externally, thereby hiding the storage policy of different backends from it. * gui/dialogs/comp-editor.c: * (real_edit_comp): set the local attachment store after obtaining it from the calendar. svn path=/trunk/; revision=28311
Diffstat (limited to 'calendar/gui/dialogs/comp-editor.c')
-rw-r--r--calendar/gui/dialogs/comp-editor.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c
index 401ea63b9b..012ccecd35 100644
--- a/calendar/gui/dialogs/comp-editor.c
+++ b/calendar/gui/dialogs/comp-editor.c
@@ -1241,7 +1241,6 @@ static void
real_edit_comp (CompEditor *editor, ECalComponent *comp)
{
CompEditorPrivate *priv;
- char *source_url;
const char *uid;
g_return_if_fail (editor != NULL);
@@ -1264,10 +1263,8 @@ real_edit_comp (CompEditor *editor, ECalComponent *comp)
set_title_from_comp (editor);
set_icon_from_comp (editor);
e_cal_component_get_uid (comp, &uid);
- source_url = g_strconcat (e_cal_get_uri (priv->client), "/", NULL);
- /* The source_url and uid will be preserved by the callee and freed when
- * the latter gets destroyed */
- cal_attachment_bar_set_source_url (priv->attachment_bar, source_url);
+ cal_attachment_bar_set_local_attachment_store (priv->attachment_bar,
+ e_cal_get_local_attachment_store (priv->client));
cal_attachment_bar_set_comp_uid (priv->attachment_bar, g_strdup (uid));
fill_widgets (editor);