aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--composer/ChangeLog5
-rw-r--r--composer/e-msg-composer.c71
2 files changed, 5 insertions, 71 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index e75e362317..9a75beaea5 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -1,3 +1,8 @@
+2005-05-05 Radek Doulik <rodo@site>
+
+ * e-msg-composer.c (e_msg_composer_ignore): removed old unused
+ function which was using low level gtkhtml APIs
+
2005-04-06 Radek Doulik <rodo@novell.com>
* e-msg-composer.c (delete_old_signature): block gtkhtml's
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index dc516800ff..a3f6e037b6 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -82,8 +82,6 @@
#include <libgnomevfs/gnome-vfs.h>
-#include <gtkhtml/htmlselection.h>
-
#include <glade/glade.h>
#include <libedataserver/e-iconv.h>
@@ -5636,75 +5634,6 @@ e_msg_composer_is_autosaved (EMsgComposer *composer)
}
void
-e_msg_composer_set_enable_autosave (EMsgComposer *composer, gboolean enabled)
-{
- g_return_if_fail (E_IS_MSG_COMPOSER (composer));
-
- composer->enable_autosave = enabled;
-}
-
-static char *
-next_word (const char *s, const char **sr)
-{
- if (!s || !*s)
- return NULL;
- else {
- const char *begin;
- gunichar uc;
- gboolean cited;
-
- do {
- begin = s;
- cited = FALSE;
- uc = g_utf8_get_char (s);
- if (uc == 0)
- return NULL;
- s = g_utf8_next_char (s);
- } while (!html_selection_spell_word (uc, &cited) && !cited && s);
-
- /* we are at beginning of word */
- if (s && *s) {
- gboolean cited_end;
-
- cited_end = FALSE;
- uc = g_utf8_get_char (s);
-
- /* go to end of word */
- while (html_selection_spell_word (uc, &cited_end) || (!cited && cited_end)) {
- cited_end = FALSE;
- s = g_utf8_next_char (s);
- uc = g_utf8_get_char (s);
- if (uc == 0)
- break;
- }
- *sr = s;
- return s ? g_strndup (begin, s - begin) : g_strdup (begin);
- } else
- return NULL;
- }
-}
-
-
-void
-e_msg_composer_ignore (EMsgComposer *composer, const char *str)
-{
- CORBA_Environment ev;
- char *word;
-
- if (!str)
- return;
-
- CORBA_exception_init (&ev);
- while ((word = next_word (str, &str))) {
- /* printf ("ignore word %s\n", word); */
- GNOME_GtkHTML_Editor_Engine_ignoreWord (composer->editor_engine, word, &ev);
- g_free (word);
- }
- CORBA_exception_free (&ev);
-}
-
-
-void
e_msg_composer_drop_editor_undo (EMsgComposer *composer)
{
CORBA_Environment ev;