diff options
author | Larry Ewing <lewing@ximian.com> | 2002-04-29 15:05:51 +0800 |
---|---|---|
committer | Larry Ewing <lewing@src.gnome.org> | 2002-04-29 15:05:51 +0800 |
commit | c9dcabffdbe3fdb2102855660e285b7dc89e095e (patch) | |
tree | 9010b4c6010ecbc28e1bf0cef1bb5e2f7e748c52 /mail/mail-composer-prefs.c | |
parent | fa6c55ae45e80f123ff36096fa629c7bc9992f6b (diff) | |
download | gsoc2013-evolution-c9dcabffdbe3fdb2102855660e285b7dc89e095e.tar.gz 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-composer-prefs.c')
-rw-r--r-- | mail/mail-composer-prefs.c | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/mail/mail-composer-prefs.c b/mail/mail-composer-prefs.c index c114999bf4..44bd0a08c8 100644 --- a/mail/mail-composer-prefs.c +++ b/mail/mail-composer-prefs.c @@ -94,7 +94,8 @@ mail_composer_prefs_finalise (GtkObject *obj) MailComposerPrefs *prefs = (MailComposerPrefs *) obj; gtk_object_unref (GTK_OBJECT (prefs->gui)); - + gtk_object_unref (GTK_OBJECT (prefs->pman)); + ((GtkObjectClass *)(parent_class))->finalize (obj); } @@ -104,13 +105,18 @@ mail_composer_prefs_destroy (GtkObject *obj) MailComposerPrefs *prefs = (MailComposerPrefs *) obj; mail_config_signature_unregister_client ((MailConfigSignatureClient) sig_event_client, prefs); + + if (GTK_OBJECT_CLASS (parent_class)) + (* GTK_OBJECT_CLASS (parent_class)->destroy) (obj); } +#if 0 static void colorpicker_set_color (GnomeColorPicker *color, guint32 rgb) { gnome_color_picker_set_i8 (color, (rgb & 0xff0000) >> 16, (rgb & 0xff00) >> 8, rgb & 0xff, 0xff); } +#endif static guint32 colorpicker_get_color (GnomeColorPicker *color) @@ -549,10 +555,24 @@ mail_composer_prefs_construct (MailComposerPrefs *prefs) /* Spell Checking */ /* FIXME: do stuff with these */ - prefs->spell_check = GTK_TOGGLE_BUTTON (glade_xml_get_widget (gui, "chkEnableSpellChecking")); + { + char *names[][2] = {{"live_spell_check", "chkEnableSpellChecking"}, + {"gtk_html_prop_keymap_option", "omenuShortcutsType"}, + {NULL, NULL}}; + + prefs->pman = GTK_HTML_PROPMANAGER (gtk_html_propmanager_new (NULL)); + gtk_object_ref (GTK_OBJECT (prefs->pman)); + gtk_object_sink (GTK_OBJECT (prefs->pman)); + + gtk_html_propmanager_set_names (prefs->pman, names); + gtk_html_propmanager_set_gui (prefs->pman, gui, NULL); + gtk_signal_connect (GTK_OBJECT (prefs->pman), "changed", toggle_button_toggled, prefs); + } + /* prefs->colour = GNOME_COLOR_PICKER (glade_xml_get_widget (gui, "colorpickerSpellCheckColor")); prefs->language = GTK_COMBO (glade_xml_get_widget (gui, "cmboSpellCheckLanguage")); - + */ + /* Forwards and Replies */ prefs->forward_style = GTK_OPTION_MENU (glade_xml_get_widget (gui, "omenuForwardStyle")); gtk_option_menu_set_history (prefs->forward_style, mail_config_get_default_forward_style ()); @@ -667,6 +687,7 @@ mail_composer_prefs_apply (MailComposerPrefs *prefs) /* Spell Checking */ /* FIXME: implement me */ + gtk_html_propmanager_apply (prefs->pman); /* Forwards and Replies */ menu = gtk_option_menu_get_menu (prefs->forward_style); |