diff options
author | Dan Winship <danw@src.gnome.org> | 2000-12-28 00:50:37 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-12-28 00:50:37 +0800 |
commit | 8422b87e2dbe202b3630fd8e547cd8c72c2edf9d (patch) | |
tree | 22d999156caef8c2337e3cb6115be643acc8f0cc /mail/subscribe-dialog.c | |
parent | 7389045ccc98be99f19c36c2f2c446ab69d04895 (diff) | |
download | gsoc2013-evolution-8422b87e2dbe202b3630fd8e547cd8c72c2edf9d.tar gsoc2013-evolution-8422b87e2dbe202b3630fd8e547cd8c72c2edf9d.tar.gz gsoc2013-evolution-8422b87e2dbe202b3630fd8e547cd8c72c2edf9d.tar.bz2 gsoc2013-evolution-8422b87e2dbe202b3630fd8e547cd8c72c2edf9d.tar.lz gsoc2013-evolution-8422b87e2dbe202b3630fd8e547cd8c72c2edf9d.tar.xz gsoc2013-evolution-8422b87e2dbe202b3630fd8e547cd8c72c2edf9d.tar.zst gsoc2013-evolution-8422b87e2dbe202b3630fd8e547cd8c72c2edf9d.zip |
({setup,do,cleanup}_subscribe_folder): Update previous fix: Jeff
had changed it to use ->full_name instead of ->name because that's
what camel_store_subscribe_folder needed. So we need to have
*both* names available, one for Camel, one for the shell.
svn path=/trunk/; revision=7181
Diffstat (limited to 'mail/subscribe-dialog.c')
-rw-r--r-- | mail/subscribe-dialog.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mail/subscribe-dialog.c b/mail/subscribe-dialog.c index becb6f5bc6..1c2573cf09 100644 --- a/mail/subscribe-dialog.c +++ b/mail/subscribe-dialog.c @@ -268,6 +268,7 @@ typedef struct subscribe_folder_input_s { typedef struct subscribe_folder_data_s { char *path; char *name; + char *full_name; char *url; } subscribe_folder_data_t; @@ -303,6 +304,7 @@ setup_subscribe_folder (gpointer in_data, gpointer op_data, CamelException *ex) data->path = storage_tree_path (input->info); data->name = g_strdup (input->info->name); + data->full_name = g_strdup (input->info->full_name); data->url = g_strdup (input->info->url); camel_object_ref (CAMEL_OBJECT (input->store)); @@ -317,9 +319,9 @@ do_subscribe_folder (gpointer in_data, gpointer op_data, CamelException *ex) mail_tool_camel_lock_up (); if (input->subscribe) - camel_store_subscribe_folder (input->store, data->name, ex); + camel_store_subscribe_folder (input->store, data->full_name, ex); else - camel_store_unsubscribe_folder (input->store, data->name, ex); + camel_store_unsubscribe_folder (input->store, data->full_name, ex); mail_tool_camel_lock_down (); } @@ -347,6 +349,7 @@ cleanup_subscribe_folder (gpointer in_data, gpointer op_data, g_free (data->path); g_free (data->name); + g_free (data->full_name); g_free (data->url); camel_object_unref (CAMEL_OBJECT (input->store)); |