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 | |
| parent | d6adfb5477c8172991833262bdefab30992a7a52 (diff) | |
Add x11-terms/terminator
Diffstat (limited to 'x11-terms/terminator/files')
3 files changed, 53 insertions, 0 deletions
diff --git a/x11-terms/terminator/files/terminator-1.91-desktop.patch b/x11-terms/terminator/files/terminator-1.91-desktop.patch new file mode 100644 index 0000000..4cbbfa4 --- /dev/null +++ b/x11-terms/terminator/files/terminator-1.91-desktop.patch | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | --- a/data/terminator.desktop.in | ||
| 2 | +++ b/data/terminator.desktop.in | ||
| 3 | @@ -9,8 +9,8 @@ | ||
| 4 | StartupNotify=true | ||
| 5 | X-Ubuntu-Gettext-Domain=terminator | ||
| 6 | X-Ayatana-Desktop-Shortcuts=NewWindow; | ||
| 7 | Keywords=terminal;shell;prompt;command;commandline; | ||
| 8 | -[NewWindow Shortcut Group] | ||
| 9 | +[X-NewWindow Shortcut Group] | ||
| 10 | Name=Open a New Window | ||
| 11 | Exec=terminator | ||
| 12 | TargetEnvironment=Unity | ||
diff --git a/x11-terms/terminator/files/terminator-1.91-without-icon-cache.patch b/x11-terms/terminator/files/terminator-1.91-without-icon-cache.patch new file mode 100644 index 0000000..c924de3 --- /dev/null +++ b/x11-terms/terminator/files/terminator-1.91-without-icon-cache.patch | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | Without this patch, terminator's build script runs gtk-update-icon-cache which | ||
| 2 | causes terminator package to claim /usr/share/icons/hicolor/icon-theme.cache as | ||
| 3 | its own. To avoid that, gtk-update-icon-cache is run later, as part of | ||
| 4 | xdg_pkg_postinst in the ebuild. | ||
| 5 | |||
| 6 | --- a/setup.py 2009-08-12 22:22:53.000000000 -0400 | ||
| 7 | +++ b/setup.py 2009-08-12 22:22:57.000000000 -0400 | ||
| 8 | @@ -25,7 +25,7 @@ | ||
| 9 | |||
| 10 | def __init__ (self, *args): | ||
| 11 | self.without_gettext = False | ||
| 12 | - self.without_icon_cache = False | ||
| 13 | + self.without_icon_cache = True | ||
| 14 | Distribution.__init__(self, *args) | ||
| 15 | |||
| 16 | |||
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 | |||
