[gtk+] Remove unneeded call of begin/end user action
- From: Paolo Borelli <pborelli src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+] Remove unneeded call of begin/end user action
- Date: Mon, 31 Aug 2009 20:36:17 +0000 (UTC)
commit 0bb51bca9b07a0c407b2de1c415b1d5e51d1e728
Author: Paolo Borelli <pborelli gnome org>
Date: Sun Aug 16 02:36:15 2009 +0200
Remove unneeded call of begin/end user action
delete_interactive already uses them so no need to wrap the call.
gtk/gtktextbuffer.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtktextbuffer.c b/gtk/gtktextbuffer.c
index 83039e3..f82b6d8 100644
--- a/gtk/gtktextbuffer.c
+++ b/gtk/gtktextbuffer.c
@@ -3807,11 +3807,7 @@ gtk_text_buffer_delete_selection (GtkTextBuffer *buffer,
else
{
if (interactive)
- {
- gtk_text_buffer_begin_user_action (buffer);
- gtk_text_buffer_delete_interactive (buffer, &start, &end, default_editable);
- gtk_text_buffer_end_user_action (buffer);
- }
+ gtk_text_buffer_delete_interactive (buffer, &start, &end, default_editable);
else
gtk_text_buffer_delete (buffer, &start, &end);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]