summaryrefslogtreecommitdiff
path: root/x11-terms/terminator/files
diff options
context:
space:
mode:
authorSimeon Simeonov2023-01-13 08:23:44 +0100
committerSimeon Simeonov2023-01-13 08:23:44 +0100
commit2c863a5548c9a11846b81581a87775f444aeab7b (patch)
treefb12c832233e385aa45d49f09d452383ff5b610e /x11-terms/terminator/files
parenta1d0d1ae62d35ee8f532326baebfcb758a9d128a (diff)
Add x11-terms/terminator yet again since single tab patch was removed from upstream
Diffstat (limited to 'x11-terms/terminator/files')
-rw-r--r--x11-terms/terminator/files/terminator-1.91-desktop.patch12
-rw-r--r--x11-terms/terminator/files/terminator-1.91-without-icon-cache.patch16
-rw-r--r--x11-terms/terminator/files/terminator-1.92-single-tab.patch24
3 files changed, 52 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 @@
1Without this patch, terminator's build script runs gtk-update-icon-cache which
2causes terminator package to claim /usr/share/icons/hicolor/icon-theme.cache as
3its own. To avoid that, gtk-update-icon-cache is run later, as part of
4xdg_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..0535e00
--- /dev/null
+++ b/x11-terms/terminator/files/terminator-1.92-single-tab.patch
@@ -0,0 +1,24 @@
1diff -rupN terminator-2.1.2.old/terminatorlib/terminal.py terminator-2.1.2/terminatorlib/terminal.py
2--- terminator-2.1.2.old/terminatorlib/terminal.py 2022-10-19 16:22:21.000000000 +0200
3+++ terminator-2.1.2/terminatorlib/terminal.py 2023-01-13 08:16:57.109231720 +0100
4@@ -910,6 +910,20 @@ class Terminal(Gtk.VBox):
5 # FIXME: Does keybindings really want to live in Terminator()?
6 mapping = self.terminator.keybindings.lookup(event)
7
8+ # Just propagate tab-swictch events if there is only one tab
9+ if (
10+ mapping and (
11+ mapping.startswith('switch_to_tab')
12+ or 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 if mapping == "hide_window":
23 return False
24