lxterminal/lxterminal-0.1.8-fix_alt-key_after_tab_delete.patch

25 lines
973 B
Diff
Raw Normal View History

From 86fbd89e295dfd7dfdc3a4ac838e3aca524dd02c Mon Sep 17 00:00:00 2001
From: Marty Jack <martyj@linux.local>
Date: Wed, 28 Jul 2010 17:30:47 -0400
Subject: [PATCH] Fix Alt-key assignment after tab deleted (Bug3036189; Patch3036253, Ideal Shang)
---
src/lxterminal.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/lxterminal.c b/src/lxterminal.c
index a263150..9f89bb4 100644
--- a/src/lxterminal.c
+++ b/src/lxterminal.c
@@ -737,6 +737,9 @@ static void terminal_child_exited_event(VteTerminal * vte, Term * term)
{
Term * t = g_ptr_array_index(terminal->terms, i);
t->index -= 1;
+ if ((GTK_IS_ACCEL_GROUP(t->parent->accel_group)) && (t->closure != NULL))
+ gtk_accel_group_disconnect(t->parent->accel_group, t->closure);
+ terminal_set_disable_alt(t, t->parent->setting->disable_alt);
}
/* Delete the tab and free the Term structure. */
--
1.6.3