aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-config.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-11-29 21:16:55 +0800
committerMilan Crha <mcrha@redhat.com>2011-11-29 21:16:55 +0800
commitf2b9a4b609b13d51ec1925e7c297e87e17026e33 (patch)
tree8ad0454f8ec9cbead4e0ca4de92bcc8652f02e93 /mail/em-config.c
parentb16c24615186a2a46a052d57f3e494b54d1d3300 (diff)
downloadgsoc2013-evolution-f2b9a4b609b13d51ec1925e7c297e87e17026e33.tar.gz
gsoc2013-evolution-f2b9a4b609b13d51ec1925e7c297e87e17026e33.tar.zst
gsoc2013-evolution-f2b9a4b609b13d51ec1925e7c297e87e17026e33.zip
Bug #665103 - Blank composer/mail/network preferences windows
Diffstat (limited to 'mail/em-config.c')
-rw-r--r--mail/em-config.c22
1 files changed, 19 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,