I am not a GTK specialist, but it seems that TRUE has to be returned
from the accelerator callback functions. Here is a patch which fixes the
problem:

diff -ru lxterminal-0.1.11.orig/src/lxterminal.c 
lxterminal-0.1.11/src/lxterminal.c
--- lxterminal-0.1.11.orig/src/lxterminal.c     2011-07-27 23:07:54.000000000 
+0200
+++ lxterminal-0.1.11/src/lxterminal.c  2012-05-18 17:58:40.483588501 +0200
@@ -77,9 +77,9 @@
 static void terminal_close_tab_activate_event(GtkAction * action, LXTerminal * 
terminal);
 static void terminal_close_tab_accelerator(LXTerminal * terminal, guint 
action, GtkWidget * item);
 static void terminal_copy_activate_event(GtkAction * action, LXTerminal * 
terminal);
-static void terminal_copy_accelerator(LXTerminal * terminal, guint action, 
GtkWidget * item);
+static gboolean terminal_copy_accelerator(LXTerminal * terminal, guint action, 
GtkWidget * item);
 static void terminal_paste_activate_event(GtkAction * action, LXTerminal * 
terminal);
-static void terminal_paste_accelerator(LXTerminal * terminal, guint action, 
GtkWidget * item);
+static gboolean terminal_paste_accelerator(LXTerminal * terminal, guint 
action, GtkWidget * item);
 static void terminal_name_tab_response_event(GtkWidget * dialog, gint 
response, LXTerminal * terminal);
 static void terminal_name_tab_activate_event(GtkAction * action, LXTerminal * 
terminal);
 static void terminal_name_tab_accelerator(LXTerminal * terminal, guint action, 
GtkWidget * item);
@@ -433,9 +433,10 @@
 }
 
 /* Handler for accelerator <CTRL><SHIFT> C.  Copy to the clipboard. */
-static void terminal_copy_accelerator(LXTerminal * terminal, guint action, 
GtkWidget * item)
+static gboolean terminal_copy_accelerator(LXTerminal * terminal, guint action, 
GtkWidget * item)
 {
     terminal_copy_activate_event(NULL, terminal);
+    return TRUE;
 }
 
 /* Handler for "activate" signal on Edit/Paste menu item.
@@ -447,9 +448,10 @@
 }
 
 /* Handler for accelerator <CTRL><SHIFT> V.  Paste from the clipboard. */
-static void terminal_paste_accelerator(LXTerminal * terminal, guint action, 
GtkWidget * item)
+static gboolean terminal_paste_accelerator(LXTerminal * terminal, guint 
action, GtkWidget * item)
 {
     terminal_paste_activate_event(NULL, terminal);
+    return TRUE;
 }
 
 /* Handler for "response" signal on Name Tab dialog. */


** Patch added: "Fix Shift-Ctrl-C sending Ctrl-C and Shift-Ctrl-V sending 
Ctrl-V to terminal"
   
https://bugs.launchpad.net/ubuntu/+source/lxterminal/+bug/971918/+attachment/3152389/+files/fix-copy-paste-accel.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/971918

Title:
  Ctrl-Shift-C issues a Break command

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxterminal/+bug/971918/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to