aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/em-config.c22
-rw-r--r--mail/em-config.h8
2 files changed, 27 insertions, 3 deletions
diff --git a/mail/em-config.c b/mail/em-config.c
index ca8e117d7e..1e025323f4 100644
--- a/mail/em-config.c
+++ b/mail/em-config.c
@@ -33,9 +33,6 @@
#include "em-utils.h"
#include "em-composer-utils.h"
-#include <gconf/gconf.h>
-#include <gconf/gconf-client.h>
-
#include <e-util/e-util.h>
G_DEFINE_TYPE (EMConfig, em_config, E_TYPE_CONFIG)
@@ -52,6 +49,9 @@ em_config_set_target (EConfig *ep,
case EM_CONFIG_TARGET_FOLDER: {
/*EMConfigTargetFolder *s = (EMConfigTargetFolder *)t;*/
break; }
+ case EM_CONFIG_TARGET_PREFS: {
+ /*EMConfigTargetPrefs *s = (EMConfigTargetPrefs *)t;*/
+ break; }
case EM_CONFIG_TARGET_SETTINGS: {
EMConfigTargetSettings *s = (EMConfigTargetSettings *) t;
@@ -75,6 +75,8 @@ em_config_target_free (EConfig *ep,
switch (t->type) {
case EM_CONFIG_TARGET_FOLDER:
break;
+ case EM_CONFIG_TARGET_PREFS:
+ break;
case EM_CONFIG_TARGET_SETTINGS: {
EMConfigTargetSettings *s = (EMConfigTargetSettings *) t;
@@ -90,6 +92,9 @@ em_config_target_free (EConfig *ep,
g_object_unref (s->folder);
break; }
+ case EM_CONFIG_TARGET_PREFS: {
+ /* EMConfigTargetPrefs *s = (EMConfigTargetPrefs *) t; */
+ break; }
case EM_CONFIG_TARGET_SETTINGS: {
EMConfigTargetSettings *s = (EMConfigTargetSettings *) t;
@@ -146,6 +151,17 @@ em_config_target_new_folder (EMConfig *emp,
return t;
}
+EMConfigTargetPrefs *
+em_config_target_new_prefs (EMConfig *emp)
+{
+ EMConfigTargetPrefs *t;
+
+ t = e_config_target_new (
+ &emp->config, EM_CONFIG_TARGET_PREFS, sizeof (*t));
+
+ return t;
+}
+
EMConfigTargetSettings *
em_config_target_new_settings (EMConfig *emp,
const gchar *email_address,
diff --git a/mail/em-config.h b/mail/em-config.h
index 7c23495677..a16100e815 100644
--- a/mail/em-config.h
+++ b/mail/em-config.h
@@ -57,10 +57,12 @@ typedef struct _EMConfigPrivate EMConfigPrivate;
/* Types of popup tagets */
enum _em_config_target_t {
EM_CONFIG_TARGET_FOLDER,
+ EM_CONFIG_TARGET_PREFS,
EM_CONFIG_TARGET_SETTINGS
};
typedef struct _EMConfigTargetFolder EMConfigTargetFolder;
+typedef struct _EMConfigTargetPrefs EMConfigTargetPrefs;
typedef struct _EMConfigTargetSettings EMConfigTargetSettings;
struct _EMConfigTargetFolder {
@@ -69,6 +71,10 @@ struct _EMConfigTargetFolder {
CamelFolder *folder;
};
+struct _EMConfigTargetPrefs {
+ EConfigTarget target;
+};
+
struct _EMConfigTargetSettings {
EConfigTarget target;
@@ -98,6 +104,8 @@ EMConfig * em_config_new (gint type,
EMConfigTargetFolder *
em_config_target_new_folder (EMConfig *emp,
CamelFolder *folder);
+EMConfigTargetPrefs *
+ em_config_target_new_prefs (EMConfig *emp);
EMConfigTargetSettings *
em_config_target_new_settings (EMConfig *emp,
const gchar *email_address,