aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config-factory.c
diff options
context:
space:
mode:
authorLarry Ewing <lewing@ximian.com>2002-04-29 15:05:51 +0800
committerLarry Ewing <lewing@src.gnome.org>2002-04-29 15:05:51 +0800
commitc9dcabffdbe3fdb2102855660e285b7dc89e095e (patch)
tree9010b4c6010ecbc28e1bf0cef1bb5e2f7e748c52 /mail/mail-config-factory.c
parentfa6c55ae45e80f123ff36096fa629c7bc9992f6b (diff)
downloadgsoc2013-evolution-c9dcabffdbe3fdb2102855660e285b7dc89e095e.tar
gsoc2013-evolution-c9dcabffdbe3fdb2102855660e285b7dc89e095e.tar.gz
gsoc2013-evolution-c9dcabffdbe3fdb2102855660e285b7dc89e095e.tar.bz2
gsoc2013-evolution-c9dcabffdbe3fdb2102855660e285b7dc89e095e.tar.lz
gsoc2013-evolution-c9dcabffdbe3fdb2102855660e285b7dc89e095e.tar.xz
gsoc2013-evolution-c9dcabffdbe3fdb2102855660e285b7dc89e095e.tar.zst
gsoc2013-evolution-c9dcabffdbe3fdb2102855660e285b7dc89e095e.zip
handle requests for the font manager control.
2002-04-29 Larry Ewing <lewing@ximian.com> * mail-config-factory.c (config_control_factory_cb): handle requests for the font manager control. * mail-config.glade: add fonts tabs and reorder composer options to match the new dialogs from anna. * GNOME_Evolution_Mail.oaf.in: add font manager control definition. * mail-composer-prefs.c (mail_composer_prefs_construct): hook to the gtkhtml propmanager. (mail_composer_prefs_apply): apply propmanager changes. (mail_composer_prefs_finalise): unref the propmanager. * mail-composer-prefs.h: add propmanager member. * mail-font-prefs.c: initialize gui properly. * mail-preferences.c (mail_preferences_construct): hook to gtkhtml's propmanager. (mail_preferences_apply): apply propmanager changes. (mail_preferences_finalise): unref the propmanager. * mail-preferences.h: add propmanager member. * Makefile.am (evolution_mail_SOURCES): add mail-font-prefs.[ch] to the build. svn path=/trunk/; revision=16627
Diffstat (limited to 'mail/mail-config-factory.c')
-rw-r--r--mail/mail-config-factory.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/mail/mail-config-factory.c b/mail/mail-config-factory.c
index 2e825b8b5a..f7ce73fd38 100644
--- a/mail/mail-config-factory.c
+++ b/mail/mail-config-factory.c
@@ -28,6 +28,7 @@
#include "mail-accounts.h"
#include "mail-preferences.h"
#include "mail-composer-prefs.h"
+#include "mail-font-prefs.h"
#include "mail-config-factory.h"
@@ -51,6 +52,7 @@ config_control_destroy_callback (EvolutionConfigControl *config_control, void *u
struct _config_data *data = user_data;
gtk_widget_unref (data->prefs);
+
g_free (data);
}
@@ -62,7 +64,6 @@ config_control_apply_callback (EvolutionConfigControl *config_control, void *use
data->apply (data->prefs);
}
-
static BonoboObject *
config_control_factory_cb (BonoboGenericFactory *factory, const char *component_id, void *user_data)
{
@@ -82,6 +83,9 @@ config_control_factory_cb (BonoboGenericFactory *factory, const char *component_
} else if (!strcmp (component_id, MAIL_COMPOSER_PREFS_CONTROL_ID)) {
prefs = mail_composer_prefs_new ();
data->apply = (ApplyFunc) mail_composer_prefs_apply;
+ } else if (!strcmp (component_id, MAIL_FONT_PREFS_CONTROL_ID)) {
+ prefs = mail_font_prefs_new ();
+ data->apply = (ApplyFunc) mail_font_prefs_apply;
} else {
g_assert_not_reached ();
}
@@ -99,6 +103,8 @@ config_control_factory_cb (BonoboGenericFactory *factory, const char *component_
MAIL_PREFERENCES (prefs)->control = control;
} else if (!strcmp (component_id, MAIL_COMPOSER_PREFS_CONTROL_ID)) {
MAIL_COMPOSER_PREFS (prefs)->control = control;
+ } else if (!strcmp (component_id, MAIL_FONT_PREFS_CONTROL_ID)) {
+ MAIL_FONT_PREFS (prefs)->control = control;
} else {
g_assert_not_reached ();
}