aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorRadek Doulik <rodo@site>2005-05-05 19:22:50 +0800
committerRadek Doulik <rodo@src.gnome.org>2005-05-05 19:22:50 +0800
commitff85fafd5e7c11b616701818dbeedc677fd2827c (patch)
tree0173ba72862544ccb681139c527312a677de8b55 /composer
parent424085a24832ec53de5ab5a81c66735bafe2b6b8 (diff)
downloadgsoc2013-evolution-ff85fafd5e7c11b616701818dbeedc677fd2827c.tar.gz
gsoc2013-evolution-ff85fafd5e7c11b616701818dbeedc677fd2827c.tar.zst
gsoc2013-evolution-ff85fafd5e7c11b616701818dbeedc677fd2827c.zip
removed old unused function which was using low level gtkhtml APIs
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 svn path=/trunk/; revision=29273
Diffstat (limited to 'composer')
-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;