diff options
| author | Simeon Simeonov | 2020-05-04 09:57:42 +0200 |
|---|---|---|
| committer | Simeon Simeonov | 2020-05-04 09:57:42 +0200 |
| commit | 1227bee3d2916a208a995430db2e5e0288354f43 (patch) | |
| tree | 668e0e23a495048de167c2b35068e3b1e4187887 /x11-terms/terminator/files/terminator-1.92-single-tab.patch | |
| parent | d6adfb5477c8172991833262bdefab30992a7a52 (diff) | |
Add x11-terms/terminator
Diffstat (limited to 'x11-terms/terminator/files/terminator-1.92-single-tab.patch')
| -rw-r--r-- | x11-terms/terminator/files/terminator-1.92-single-tab.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/x11-terms/terminator/files/terminator-1.92-single-tab.patch b/x11-terms/terminator/files/terminator-1.92-single-tab.patch new file mode 100644 index 0000000..1ad215a --- /dev/null +++ b/x11-terms/terminator/files/terminator-1.92-single-tab.patch | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | diff -rupN terminator-1.92.old/terminatorlib/terminal.py terminator-1.92/terminatorlib/terminal.py | ||
| 2 | --- terminator-1.92.old/terminatorlib/terminal.py 2020-04-18 12:36:56.385817800 +0200 | ||
| 3 | +++ terminator-1.92/terminatorlib/terminal.py 2020-05-04 09:45:38.714358482 +0200 | ||
| 4 | @@ -887,6 +887,21 @@ class Terminal(Gtk.VBox): | ||
| 5 | # FIXME: Does keybindings really want to live in Terminator()? | ||
| 6 | mapping = self.terminator.keybindings.lookup(event) | ||
| 7 | |||
| 8 | + # sgs patch | ||
| 9 | + if ( | ||
| 10 | + mapping and ( | ||
| 11 | + mapping.startswith('switch_to_tab') or | ||
| 12 | + mapping in ('next_tab', 'prev_tab') | ||
| 13 | + ) | ||
| 14 | + ): | ||
| 15 | + window = self.get_toplevel() | ||
| 16 | + child = window.get_children()[0] | ||
| 17 | + if isinstance(child, Terminal): | ||
| 18 | + # not a Notebook instance => a single tab is used | ||
| 19 | + # .get_n_pages() can not be used | ||
| 20 | + return(False) | ||
| 21 | + # | ||
| 22 | + | ||
| 23 | if mapping == "hide_window": | ||
| 24 | return(False) | ||
| 25 | |||
