aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRadek Doulik <rodo@ximian.com>2004-03-19 04:09:11 +0800
committerRadek Doulik <rodo@src.gnome.org>2004-03-19 04:09:11 +0800
commit5f60698e29d2ae281beb3134b8a49e44b5d49a9a (patch)
treef35c985a8ae8c9fe575514cfd0b90548007ec32c
parent35e9d6432d2b01ddcb0953c886fe2e2fd5452c8b (diff)
downloadgsoc2013-evolution-5f60698e29d2ae281beb3134b8a49e44b5d49a9a.tar.gz
gsoc2013-evolution-5f60698e29d2ae281beb3134b8a49e44b5d49a9a.tar.zst
gsoc2013-evolution-5f60698e29d2ae281beb3134b8a49e44b5d49a9a.zip
delete event: if empty paragraph has signature == 1 then set it to 0
2004-03-18 Radek Doulik <rodo@ximian.com> * listener.c (impl_event): delete event: if empty paragraph has signature == 1 then set it to 0 Fixes #55735 (be sure to update gtkhtml as well) svn path=/trunk/; revision=25122
-rw-r--r--composer/ChangeLog7
-rw-r--r--composer/listener.c11
2 files changed, 16 insertions, 2 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index 9131919531..164230c18c 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -1,3 +1,10 @@
+2004-03-18 Radek Doulik <rodo@ximian.com>
+
+ * listener.c (impl_event): delete event: if empty paragraph has
+ signature == 1 then set it to 0
+
+ Fixes #55735 (be sure to update gtkhtml as well)
+
2004-03-17 Bill Zhu <bill.zhu@sun.com>
* e-msg_composer-attachment-bar.c: If we select multi-attachments, the
diff --git a/composer/listener.c b/composer/listener.c
index 0d0dc2f652..7f2f2d7e9a 100644
--- a/composer/listener.c
+++ b/composer/listener.c
@@ -195,9 +195,10 @@ impl_event (PortableServer_Servant _servant,
g_free (url);
}
} else if (!strcmp (name, "delete")) {
- CORBA_char *orig;
-
if (GNOME_GtkHTML_Editor_Engine_isParagraphEmpty (l->composer->editor_engine, ev)) {
+ CORBA_char *orig;
+ CORBA_char *signature;
+
orig = GNOME_GtkHTML_Editor_Engine_getParagraphData (l->composer->editor_engine, "orig", ev);
if (ev->_major == CORBA_NO_EXCEPTION) {
if (orig && *orig == '1') {
@@ -212,6 +213,12 @@ impl_event (PortableServer_Servant _servant,
}
CORBA_free (orig);
}
+ signature = GNOME_GtkHTML_Editor_Engine_getParagraphData (l->composer->editor_engine, "signature", ev);
+ if (ev->_major == CORBA_NO_EXCEPTION) {
+ if (signature && *signature == '1')
+ GNOME_GtkHTML_Editor_Engine_setParagraphData (l->composer->editor_engine, "signature", "0", ev);
+ CORBA_free (signature);
+ }
}
} else if (!strcmp (name, "url_requested")) {
GNOME_GtkHTML_Editor_URLRequestEvent *e;