[evolution] EMConfigTargetFolder: Remove URI member.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] EMConfigTargetFolder: Remove URI member.
- Date: Thu, 12 May 2011 17:45:55 +0000 (UTC)
commit e263f69b469fc0627e10d1a5499aaacdb6ba4bbe
Author: Matthew Barnes <mbarnes redhat com>
Date: Thu May 12 13:21:54 2011 -0400
EMConfigTargetFolder: Remove URI member.
Use e_mail_folder_uri_from_folder() if you really need a folder URI for
the target's CamelFolder.
mail/em-config.c | 5 +----
mail/em-config.h | 4 +---
mail/em-folder-properties.c | 5 +----
3 files changed, 3 insertions(+), 11 deletions(-)
---
diff --git a/mail/em-config.c b/mail/em-config.c
index a5ddb7a..bad3d92 100644
--- a/mail/em-config.c
+++ b/mail/em-config.c
@@ -118,7 +118,6 @@ em_config_target_free (EConfig *ep,
case EM_CONFIG_TARGET_FOLDER: {
EMConfigTargetFolder *s = (EMConfigTargetFolder *) t;
- g_free (s->uri);
g_object_unref (s->folder);
break; }
case EM_CONFIG_TARGET_PREFS: {
@@ -175,15 +174,13 @@ em_config_new (gint type,
EMConfigTargetFolder *
em_config_target_new_folder (EMConfig *emp,
- CamelFolder *folder,
- const gchar *uri)
+ CamelFolder *folder)
{
EMConfigTargetFolder *t;
t = e_config_target_new (
&emp->config, EM_CONFIG_TARGET_FOLDER, sizeof (*t));
- t->uri = g_strdup (uri);
t->folder = g_object_ref (folder);
return t;
diff --git a/mail/em-config.h b/mail/em-config.h
index f52dcf8..24b062c 100644
--- a/mail/em-config.h
+++ b/mail/em-config.h
@@ -51,7 +51,6 @@ struct _EMConfigTargetFolder {
EConfigTarget target;
CamelFolder *folder;
- gchar *uri;
};
struct _EMConfigTargetPrefs {
@@ -84,8 +83,7 @@ EMConfig * em_config_new (gint type,
const gchar *menuid);
EMConfigTargetFolder *
em_config_target_new_folder (EMConfig *emp,
- CamelFolder *folder,
- const gchar *uri);
+ CamelFolder *folder);
EMConfigTargetPrefs *
em_config_target_new_prefs (EMConfig *emp,
GConfClient *gconf);
diff --git a/mail/em-folder-properties.c b/mail/em-folder-properties.c
index e8137a5..abc1e21 100644
--- a/mail/em-folder-properties.c
+++ b/mail/em-folder-properties.c
@@ -249,7 +249,6 @@ emfp_dialog_run (AsyncContext *context)
CamelStore *parent_store;
gboolean hide_deleted;
GConfClient *client;
- gchar *folder_uri;
const gchar *name;
const gchar *key;
@@ -334,9 +333,7 @@ emfp_dialog_run (AsyncContext *context)
l = g_slist_prepend (l, &emfp_items[i]);
e_config_add_items ((EConfig *) ec, l, NULL, NULL, emfp_free, context);
- folder_uri = e_mail_folder_uri_from_folder (context->folder);
- target = em_config_target_new_folder (ec, context->folder, folder_uri);
- g_free (folder_uri);
+ target = em_config_target_new_folder (ec, context->folder);
e_config_set_target ((EConfig *) ec, (EConfigTarget *) target);
w = e_config_create_widget ((EConfig *) ec);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]