anjuta r3824 - in trunk: . plugins/sourceview
- From: jhs svn gnome org
- To: svn-commits-list gnome org
- Subject: anjuta r3824 - in trunk: . plugins/sourceview
- Date: Mon, 7 Apr 2008 14:19:21 +0100 (BST)
Author: jhs
Date: Mon Apr 7 14:19:21 2008
New Revision: 3824
URL: http://svn.gnome.org/viewvc/anjuta?rev=3824&view=rev
Log:
2008-04-07 Johannes Schmid <jhs gnome org>
* plugins/sourceview/sourceview.c (idocument_cut),
(idocument_copy), (idocument_paste):
Block insert-text signal on cut/copy/paste
Modified:
trunk/ChangeLog
trunk/plugins/sourceview/sourceview.c
Modified: trunk/plugins/sourceview/sourceview.c
==============================================================================
--- trunk/plugins/sourceview/sourceview.c (original)
+++ trunk/plugins/sourceview/sourceview.c Mon Apr 7 14:19:21 2008
@@ -1201,21 +1201,27 @@
idocument_cut(IAnjutaDocument* edit, GError** ee)
{
Sourceview* sv = ANJUTA_SOURCEVIEW(edit);
+ g_signal_handlers_block_by_func (sv->priv->document, on_insert_text, sv);
anjuta_view_cut_clipboard(sv->priv->view);
+ g_signal_handlers_unblock_by_func (sv->priv->document, on_insert_text, sv);
}
static void
idocument_copy(IAnjutaDocument* edit, GError** ee)
{
Sourceview* sv = ANJUTA_SOURCEVIEW(edit);
+ g_signal_handlers_block_by_func (sv->priv->document, on_insert_text, sv);
anjuta_view_copy_clipboard(sv->priv->view);
+ g_signal_handlers_unblock_by_func (sv->priv->document, on_insert_text, sv);
}
static void
idocument_paste(IAnjutaDocument* edit, GError** ee)
{
Sourceview* sv = ANJUTA_SOURCEVIEW(edit);
+ g_signal_handlers_block_by_func (sv->priv->document, on_insert_text, sv);
anjuta_view_paste_clipboard(sv->priv->view);
+ g_signal_handlers_unblock_by_func (sv->priv->document, on_insert_text, sv);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]