summaryrefslogtreecommitdiff
path: root/x11-terms/sakura/files
diff options
context:
space:
mode:
Diffstat (limited to 'x11-terms/sakura/files')
-rw-r--r--x11-terms/sakura/files/sakura-3.7.0-gentoo.patch23
-rw-r--r--x11-terms/sakura/files/sakura-3.7.0-single-tab.patch13
2 files changed, 36 insertions, 0 deletions
diff --git a/x11-terms/sakura/files/sakura-3.7.0-gentoo.patch b/x11-terms/sakura/files/sakura-3.7.0-gentoo.patch
new file mode 100644
index 0000000..ab1d8be
--- /dev/null
+++ b/x11-terms/sakura/files/sakura-3.7.0-gentoo.patch
@@ -0,0 +1,23 @@
1--- a/CMakeLists.txt
2+++ b/CMakeLists.txt
3@@ -38,12 +38,6 @@
4 ADD_DEFINITIONS (-DDATADIR="${CMAKE_INSTALL_PREFIX}/share")
5 ADD_DEFINITIONS (-DBUILDTYPE="${CMAKE_BUILD_TYPE}")
6
7-IF (${CMAKE_BUILD_TYPE} MATCHES "Debug")
8- SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
9-ELSE (${CMAKE_BUILD_TYPE} NOT MATCHES "Debug")
10- SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2 -Wno-deprecated-declarations")
11-ENDIF (${CMAKE_BUILD_TYPE} MATCHES "Debug")
12-
13 INCLUDE_DIRECTORIES (. ${GTK_INCLUDE_DIRS} ${VTE_INCLUDE_DIRS})
14 LINK_DIRECTORIES (${GTK_LIBRARY_DIRS} ${VTE_LIBRARY_DIRS} ${X11_LIBRARY_DIRS})
15 LINK_LIBRARIES (${GTK_LIBRARIES} ${VTE_LIBRARIES} ${X11_LIBRARIES} m)
16@@ -57,7 +51,6 @@
17 IF (POD2MAN)
18 INSTALL (FILES ${sakura_BINARY_DIR}/sakura.1 DESTINATION share/man/man1)
19 ENDIF (POD2MAN)
20-INSTALL (FILES INSTALL DESTINATION share/doc/sakura)
21
22 FILE (GLOB MO_FILES po/*.mo)
23
diff --git a/x11-terms/sakura/files/sakura-3.7.0-single-tab.patch b/x11-terms/sakura/files/sakura-3.7.0-single-tab.patch
new file mode 100644
index 0000000..ddd0cec
--- /dev/null
+++ b/x11-terms/sakura/files/sakura-3.7.0-single-tab.patch
@@ -0,0 +1,13 @@
1diff -rupN sakura-3.7.0.old/src/sakura.c sakura-3.7.0/src/sakura.c
2--- sakura-3.7.0.old/src/sakura.c 2019-08-12 23:13:08.000000000 +0200
3+++ sakura-3.7.0/src/sakura.c 2019-12-01 20:21:29.067142517 +0100
4@@ -511,6 +511,9 @@ sakura_key_press (GtkWidget *widget, Gdk
5 if ( ((event->state & sakura.switch_tab_accelerator) == sakura.switch_tab_accelerator) &&
6 ((event->state & sakura.move_tab_accelerator) != sakura.move_tab_accelerator) ) {
7
8+ /* Just propagate the event if there is only one tab */
9+ if(npages < 2) return FALSE;
10+
11 if ((keycode>=sakura_tokeycode(GDK_KEY_1)) && (keycode<=sakura_tokeycode( GDK_KEY_9))) {
12
13 /* User has explicitly disabled this branch, make sure to propagate the event */