From 4e0c35255b6d1787f571a4f525f020fe6d7c7a3e Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Fri, 8 Apr 2005 13:56:28 +0000 Subject: block gtkhtml's selection so that we don't set primary X selection 2005-04-06 Radek Doulik * e-msg-composer.c (delete_old_signature): block gtkhtml's selection so that we don't set primary X selection Fixes #36972 svn path=/trunk/; revision=29192 --- composer/ChangeLog | 7 +++++++ composer/e-msg-composer.c | 2 ++ 2 files changed, 9 insertions(+) diff --git a/composer/ChangeLog b/composer/ChangeLog index 45eff247c2..e75e362317 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,10 @@ +2005-04-06 Radek Doulik + + * e-msg-composer.c (delete_old_signature): block gtkhtml's + selection so that we don't set primary X selection + + Fixes #36972 + 2005-04-05 ERDI Gergo * e-msg-composer.c: implement read-receipt functionality. diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 818f4c5f2b..dc516800ff 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -4830,6 +4830,7 @@ delete_old_signature (EMsgComposer *composer) /* printf ("delete_old_signature\n"); */ CORBA_exception_init (&ev); + GNOME_GtkHTML_Editor_Engine_runCommand (composer->editor_engine, "block-selection", &ev); GNOME_GtkHTML_Editor_Engine_runCommand (composer->editor_engine, "cursor-bod", &ev); if (GNOME_GtkHTML_Editor_Engine_searchByData (composer->editor_engine, 1, "ClueFlow", "signature", "1", &ev)) { /* printf ("found\n"); */ @@ -4841,6 +4842,7 @@ delete_old_signature (EMsgComposer *composer) GNOME_GtkHTML_Editor_Engine_setParagraphData (composer->editor_engine, "signature", "0", &ev); GNOME_GtkHTML_Editor_Engine_runCommand (composer->editor_engine, "delete-back", &ev); } + GNOME_GtkHTML_Editor_Engine_runCommand (composer->editor_engine, "unblock-selection", &ev); CORBA_exception_free (&ev); } -- cgit v1.2.3