diff --git a/vte291-cntnr-precmd-preexec-scroll.patch b/vte291-cntnr-precmd-preexec-scroll.patch index 7443b38..dbc727f 100644 --- a/vte291-cntnr-precmd-preexec-scroll.patch +++ b/vte291-cntnr-precmd-preexec-scroll.patch @@ -1,4 +1,4 @@ -From 22704d787b39e7f8d583a36d3a323854d43bebda Mon Sep 17 00:00:00 2001 +From 3354db2ca10487dd6ced2c54130b12e3a7bc53f8 Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Wed, 7 Jan 2015 16:01:00 +0100 Subject: [PATCH 01/11] Add sequences and signals for desktop notification @@ -18,13 +18,13 @@ https://phab.enlightenment.org/T1765 https://bugzilla.gnome.org/show_bug.cgi?id=711059 --- src/marshal.list | 1 + - src/vte.cc | 8 ++++++++ + src/vte.cc | 10 ++++++++++ src/vte/vteterminal.h | 4 +++- - src/vtegtk.cc | 21 +++++++++++++++++++++ - src/vtegtk.hh | 1 + - src/vteinternal.hh | 8 ++++++++ - src/vteseq.cc | 32 +++++++++++++++++++++++++++++++- - 7 files changed, 73 insertions(+), 2 deletions(-) + src/vtegtk.cc | 25 +++++++++++++++++++++++++ + src/vtegtk.hh | 3 +++ + src/vteinternal.hh | 14 ++++++++++++++ + src/vteseq.cc | 37 +++++++++++++++++++++++++++++++++++++ + 7 files changed, 93 insertions(+), 1 deletion(-) diff --git a/src/marshal.list b/src/marshal.list index 241128c3..4412cf3d 100644 @@ -36,13 +36,14 @@ index 241128c3..4412cf3d 100644 VOID:STRING,UINT VOID:UINT,UINT diff --git a/src/vte.cc b/src/vte.cc -index 00cd243b..2c4a66b5 100644 +index a8671845..77533d82 100644 --- a/src/vte.cc +++ b/src/vte.cc -@@ -10281,6 +10281,14 @@ Terminal::emit_pending_signals() +@@ -10164,6 +10164,16 @@ Terminal::emit_pending_signals() emit_adjustment_changed(); ++#if _VTE_GTK == 3 + if (m_pending_changes & vte::to_integral(PendingChanges::NOTIFICATION)) { + _vte_debug_print (VTE_DEBUG_SIGNALS, + "Emitting `notification-received'.\n"); @@ -50,21 +51,21 @@ index 00cd243b..2c4a66b5 100644 + m_notification_summary.c_str(), + m_notification_body.c_str()); + } ++#endif + if (m_pending_changes & vte::to_integral(PendingChanges::TITLE)) { if (m_window_title != m_window_title_pending) { m_window_title.swap(m_window_title_pending); diff --git a/src/vte/vteterminal.h b/src/vte/vteterminal.h -index 6f8a7751..0fdfce1e 100644 +index 78176f97..ac762498 100644 --- a/src/vte/vteterminal.h +++ b/src/vte/vteterminal.h -@@ -108,10 +108,12 @@ struct _VteTerminalClass { - +@@ -109,9 +109,11 @@ struct _VteTerminalClass { void (*bell)(VteTerminal* terminal); + #if _VTE_GTK == 3 + void (*notification_received)(VteTerminal* terminal, const gchar *summary, const gchar *body); + - #if _VTE_GTK == 3 /* Compatibility padding due to fedora patches intruding on our ABI */ /*< private >*/ - gpointer _extra_padding[3]; @@ -73,21 +74,24 @@ index 6f8a7751..0fdfce1e 100644 /* Add new vfuncs here, and subtract from the padding below. */ diff --git a/src/vtegtk.cc b/src/vtegtk.cc -index 034c023b..778b69b2 100644 +index 3945ba67..570f8e69 100644 --- a/src/vtegtk.cc +++ b/src/vtegtk.cc -@@ -1274,6 +1274,7 @@ vte_terminal_class_init(VteTerminalClass *klass) +@@ -1251,6 +1251,9 @@ vte_terminal_class_init(VteTerminalClass *klass) klass->child_exited = NULL; klass->encoding_changed = NULL; klass->char_size_changed = NULL; ++#if _VTE_GTK == 3 + klass->notification_received = NULL; ++#endif klass->window_title_changed = NULL; klass->icon_title_changed = NULL; klass->selection_changed = NULL; -@@ -1357,6 +1358,26 @@ vte_terminal_class_init(VteTerminalClass *klass) +@@ -1334,6 +1337,28 @@ vte_terminal_class_init(VteTerminalClass *klass) G_OBJECT_CLASS_TYPE(klass), g_cclosure_marshal_VOID__INTv); ++#if _VTE_GTK == 3 + /** + * VteTerminal::notification-received: + * @vteterminal: the object which received the signal @@ -107,63 +111,73 @@ index 034c023b..778b69b2 100644 + _vte_marshal_VOID__STRING_STRING, + G_TYPE_NONE, + 2, G_TYPE_STRING, G_TYPE_STRING); ++#endif + /** * VteTerminal::window-title-changed: * @vteterminal: the object which received the signal diff --git a/src/vtegtk.hh b/src/vtegtk.hh -index 778b555a..67c456b5 100644 +index 6b7a1ea2..d5379b16 100644 --- a/src/vtegtk.hh +++ b/src/vtegtk.hh -@@ -52,6 +52,7 @@ enum { +@@ -52,6 +52,9 @@ enum { SIGNAL_RESIZE_WINDOW, SIGNAL_RESTORE_WINDOW, SIGNAL_SELECTION_CHANGED, ++#if _VTE_GTK == 3 + SIGNAL_NOTIFICATION_RECEIVED, ++#endif SIGNAL_WINDOW_TITLE_CHANGED, LAST_SIGNAL }; diff --git a/src/vteinternal.hh b/src/vteinternal.hh -index 5037096d..1e8a27f6 100644 +index 0d454649..8dba726c 100644 --- a/src/vteinternal.hh +++ b/src/vteinternal.hh -@@ -688,6 +688,10 @@ public: +@@ -662,6 +662,12 @@ public: gboolean m_cursor_moved_pending; gboolean m_contents_changed_pending; ++#if _VTE_GTK == 3 + /* desktop notification */ + std::string m_notification_summary; + std::string m_notification_body; ++#endif + std::string m_window_title{}; std::string m_current_directory_uri{}; std::string m_current_file_uri{}; -@@ -701,6 +705,7 @@ public: +@@ -675,6 +681,9 @@ public: TITLE = 1u << 0, CWD = 1u << 1, CWF = 1u << 2, ++#if _VTE_GTK == 3 + NOTIFICATION = 1u << 3, ++#endif }; unsigned m_pending_changes{0}; -@@ -1539,6 +1544,9 @@ public: +@@ -1506,6 +1515,11 @@ public: int osc) noexcept; /* OSC handlers */ ++#if _VTE_GTK == 3 + void handle_urxvt_extension(vte::parser::Sequence const& seq, + vte::parser::StringTokeniser::const_iterator& token, + vte::parser::StringTokeniser::const_iterator const& endtoken) noexcept; ++#endif void set_color(vte::parser::Sequence const& seq, vte::parser::StringTokeniser::const_iterator& token, vte::parser::StringTokeniser::const_iterator const& endtoken, diff --git a/src/vteseq.cc b/src/vteseq.cc -index 9efde087..772ba4f3 100644 +index 874d2405..dda487c4 100644 --- a/src/vteseq.cc +++ b/src/vteseq.cc -@@ -1408,6 +1408,33 @@ Terminal::delete_lines(vte::grid::row_t param) +@@ -1376,6 +1376,35 @@ Terminal::delete_lines(vte::grid::row_t param) m_text_deleted_flag = TRUE; } ++#if _VTE_GTK == 3 +void +Terminal::handle_urxvt_extension(vte::parser::Sequence const& seq, + vte::parser::StringTokeniser::const_iterator& token, @@ -190,34 +204,39 @@ index 9efde087..772ba4f3 100644 + return; + } +} ++#endif + bool Terminal::get_osc_color_index(int osc, int value, -@@ -6687,6 +6714,10 @@ Terminal::OSC(vte::parser::Sequence const& seq) +@@ -6541,6 +6570,12 @@ Terminal::OSC(vte::parser::Sequence const& seq) reset_color(VTE_HIGHLIGHT_FG, VTE_COLOR_SOURCE_ESCAPE); break; ++#if _VTE_GTK == 3 + case VTE_OSC_URXVT_EXTENSION: + handle_urxvt_extension(seq, it, cend); + break; ++#endif + case VTE_OSC_XTERM_SET_ICON_TITLE: case VTE_OSC_XTERM_SET_XPROPERTY: case VTE_OSC_XTERM_SET_COLOR_MOUSE_CURSOR_FG: -@@ -6728,7 +6759,6 @@ Terminal::OSC(vte::parser::Sequence const& seq) +@@ -6582,7 +6617,9 @@ Terminal::OSC(vte::parser::Sequence const& seq) case VTE_OSC_URXVT_SET_FONT_BOLD_ITALIC: case VTE_OSC_URXVT_VIEW_UP: case VTE_OSC_URXVT_VIEW_DOWN: -- case VTE_OSC_URXVT_EXTENSION: ++#if _VTE_GTK != 3 + case VTE_OSC_URXVT_EXTENSION: ++#endif case VTE_OSC_YF_RQGWR: default: break; -- -2.37.1 +2.37.3 -From b885c59413ac8f64891ced008767efc180d8d90a Mon Sep 17 00:00:00 2001 +From ca0549eafe1fd03d11a632d07c0fab7fd4b333ac Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Thu, 29 Jan 2015 13:09:17 +0100 Subject: [PATCH 02/11] vte.sh: Emit OSC 777 from PROMPT_COMMAND @@ -250,10 +269,10 @@ index 242d6c42..50242223 100644 } -- -2.37.1 +2.37.3 -From ce224baf4eac101842a05e848874608bda2dd715 Mon Sep 17 00:00:00 2001 +From b281275ed320f9a2f82d6e436a397ad005dafce0 Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Thu, 22 Jan 2015 16:37:10 +0100 Subject: [PATCH 03/11] Test the notification-received signal @@ -263,10 +282,10 @@ Subject: [PATCH 03/11] Test the notification-received signal 1 file changed, 10 insertions(+) diff --git a/src/app/app.cc b/src/app/app.cc -index 9d53f274..3c666816 100644 +index a69d9327..88fe5f2f 100644 --- a/src/app/app.cc +++ b/src/app/app.cc -@@ -2245,6 +2245,14 @@ window_window_title_changed_cb(VteTerminal* terminal, +@@ -2286,6 +2286,14 @@ window_window_title_changed_cb(VteTerminal* terminal, gtk_window_set_title(GTK_WINDOW(window), title && title[0] ? title : "Terminal"); } @@ -281,7 +300,7 @@ index 9d53f274..3c666816 100644 static void window_lower_window_cb(VteTerminal* terminal, VteappWindow* window) -@@ -2541,6 +2549,8 @@ vteapp_window_constructed(GObject *object) +@@ -2582,6 +2590,8 @@ vteapp_window_constructed(GObject *object) if (options.object_notifications) g_signal_connect(window->terminal, "notify", G_CALLBACK(window_notify_cb), window); @@ -291,10 +310,10 @@ index 9d53f274..3c666816 100644 #if VTE_GTK == 3 if (options.no_double_buffer) { -- -2.37.1 +2.37.3 -From 574e63dbad4c0ae09cf9ff4fff2fdc00de49e9a3 Mon Sep 17 00:00:00 2001 +From 2832ac1e0bf8eb3e0147b0803637765a4b5ac832 Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Fri, 13 May 2016 17:53:54 +0200 Subject: [PATCH 04/11] Add a property to configure the scroll speed @@ -304,30 +323,32 @@ moving the buffer by a function of the number of visible rows. https://bugzilla.redhat.com/show_bug.cgi?id=1103380 --- - src/vte.cc | 19 +++++++++++++++- - src/vte/vteterminal.h | 4 ++++ - src/vtegtk.cc | 51 +++++++++++++++++++++++++++++++++++++++++++ - src/vtegtk.hh | 1 + - src/vteinternal.hh | 2 ++ - 5 files changed, 76 insertions(+), 1 deletion(-) + src/vte.cc | 25 ++++++++++++++++++ + src/vte/vteterminal.h | 6 +++++ + src/vtegtk.cc | 59 +++++++++++++++++++++++++++++++++++++++++++ + src/vtegtk.hh | 3 +++ + src/vteinternal.hh | 6 +++++ + 5 files changed, 99 insertions(+) diff --git a/src/vte.cc b/src/vte.cc -index 2c4a66b5..93fc18d2 100644 +index 77533d82..e2723342 100644 --- a/src/vte.cc +++ b/src/vte.cc -@@ -9455,6 +9455,7 @@ vte_cairo_get_clip_region(cairo_t *cr) +@@ -9364,6 +9364,9 @@ vte_cairo_get_clip_region(cairo_t *cr) bool Terminal::widget_mouse_scroll(vte::platform::ScrollEvent const& event) { ++#if _VTE_GTK == 3 + gdouble scroll_speed; ++#endif gdouble v; gint cnt, i; int button; -@@ -9489,7 +9490,13 @@ Terminal::widget_mouse_scroll(vte::platform::ScrollEvent const& event) +@@ -9398,7 +9401,17 @@ Terminal::widget_mouse_scroll(vte::platform::ScrollEvent const& event) return true; } -- v = MAX (1., ceil (m_row_count /* page increment */ / 10.)); ++#if _VTE_GTK == 3 + if (m_scroll_speed == 0) { + scroll_speed = ceil (m_row_count /* page increment */ / 10.); + } else { @@ -335,13 +356,17 @@ index 2c4a66b5..93fc18d2 100644 + } + + v = MAX (1., scroll_speed); ++#else + v = MAX (1., ceil (m_row_count /* page increment */ / 10.)); ++#endif _vte_debug_print(VTE_DEBUG_EVENTS, "Scroll speed is %d lines per non-smooth scroll unit\n", (int) v); -@@ -9799,6 +9806,16 @@ Terminal::decscusr_cursor_shape() const noexcept +@@ -9708,6 +9721,18 @@ Terminal::decscusr_cursor_shape() const noexcept } } ++#if _VTE_GTK == 3 +bool +Terminal::set_scroll_speed(unsigned int scroll_speed) +{ @@ -351,53 +376,61 @@ index 2c4a66b5..93fc18d2 100644 + m_scroll_speed = scroll_speed; + return true; +} ++#endif + bool Terminal::set_scrollback_lines(long lines) { diff --git a/src/vte/vteterminal.h b/src/vte/vteterminal.h -index 0fdfce1e..c1240e8a 100644 +index ac762498..972c4a0c 100644 --- a/src/vte/vteterminal.h +++ b/src/vte/vteterminal.h -@@ -330,6 +330,10 @@ void vte_terminal_set_cursor_shape(VteTerminal *terminal, +@@ -330,6 +330,12 @@ void vte_terminal_set_cursor_shape(VteTerminal *terminal, _VTE_PUBLIC VteCursorShape vte_terminal_get_cursor_shape(VteTerminal *terminal) _VTE_CXX_NOEXCEPT _VTE_GNUC_NONNULL(1); ++#if _VTE_GTK == 3 +_VTE_PUBLIC +void vte_terminal_set_scroll_speed(VteTerminal *terminal, + guint scroll_speed) _VTE_CXX_NOEXCEPT _VTE_GNUC_NONNULL(1); ++#endif + /* Set the number of scrollback lines, above or at an internal minimum. */ _VTE_PUBLIC void vte_terminal_set_scrollback_lines(VteTerminal *terminal, diff --git a/src/vtegtk.cc b/src/vtegtk.cc -index 778b69b2..3992766f 100644 +index 570f8e69..a9f58696 100644 --- a/src/vtegtk.cc +++ b/src/vtegtk.cc -@@ -993,6 +993,9 @@ try +@@ -1002,6 +1002,11 @@ try case PROP_REWRAP_ON_RESIZE: g_value_set_boolean (value, vte_terminal_get_rewrap_on_resize (terminal)); break; ++#if _VTE_GTK == 3 + case PROP_SCROLL_SPEED: + g_value_set_uint (value, impl->m_scroll_speed); + break; ++#endif case PROP_SCROLLBACK_LINES: g_value_set_uint (value, vte_terminal_get_scrollback_lines(terminal)); break; -@@ -1130,6 +1133,9 @@ try +@@ -1123,6 +1128,11 @@ try case PROP_REWRAP_ON_RESIZE: vte_terminal_set_rewrap_on_resize (terminal, g_value_get_boolean (value)); break; ++#if _VTE_GTK == 3 + case PROP_SCROLL_SPEED: + vte_terminal_set_scroll_speed (terminal, g_value_get_uint (value)); + break; ++#endif case PROP_SCROLLBACK_LINES: vte_terminal_set_scrollback_lines (terminal, g_value_get_uint (value)); break; -@@ -2246,6 +2252,21 @@ vte_terminal_class_init(VteTerminalClass *klass) +@@ -2223,6 +2233,23 @@ vte_terminal_class_init(VteTerminalClass *klass) TRUE, (GParamFlags) (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY)); ++#if _VTE_GTK == 3 + /** + * VteTerminal:scroll-speed: + * @@ -412,14 +445,16 @@ index 778b69b2..3992766f 100644 + 0, G_MAXUINT, + 0, + (GParamFlags) (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY)); ++#endif + /** * VteTerminal:scrollback-lines: * -@@ -5851,6 +5872,36 @@ catch (...) +@@ -5958,6 +5985,38 @@ catch (...) return -1; } ++#if _VTE_GTK == 3 +/** + * vte_terminal_set_scroll_speed: + * @terminal: a #VteTerminal @@ -449,90 +484,103 @@ index 778b69b2..3992766f 100644 +{ + vte::log_exception(); +} ++#endif + /** * vte_terminal_set_scrollback_lines: * @terminal: a #VteTerminal diff --git a/src/vtegtk.hh b/src/vtegtk.hh -index 67c456b5..64ff8be8 100644 +index d5379b16..3f1ae86d 100644 --- a/src/vtegtk.hh +++ b/src/vtegtk.hh -@@ -86,6 +86,7 @@ enum { +@@ -88,6 +88,9 @@ enum { PROP_MOUSE_POINTER_AUTOHIDE, PROP_PTY, PROP_REWRAP_ON_RESIZE, ++#if _VTE_GTK == 3 + PROP_SCROLL_SPEED, ++#endif PROP_SCROLLBACK_LINES, PROP_SCROLL_ON_KEYSTROKE, PROP_SCROLL_ON_OUTPUT, diff --git a/src/vteinternal.hh b/src/vteinternal.hh -index 1e8a27f6..0e5a8ace 100644 +index 8dba726c..4629c95f 100644 --- a/src/vteinternal.hh +++ b/src/vteinternal.hh -@@ -439,6 +439,7 @@ public: +@@ -428,6 +428,9 @@ public: bool m_fallback_scrolling{true}; bool m_scroll_on_output{false}; bool m_scroll_on_keystroke{true}; ++#if _VTE_GTK == 3 + guint m_scroll_speed; ++#endif vte::grid::row_t m_scrollback_lines{0}; inline auto scroll_limit_lower() const noexcept -@@ -1412,6 +1413,7 @@ public: +@@ -1385,6 +1388,9 @@ public: bool set_input_enabled(bool enabled); bool set_mouse_autohide(bool autohide); bool set_rewrap_on_resize(bool rewrap); ++#if _VTE_GTK == 3 + bool set_scroll_speed(unsigned int scroll_speed); ++#endif bool set_scrollback_lines(long lines); bool set_fallback_scrolling(bool set); auto fallback_scrolling() const noexcept { return m_fallback_scrolling; } -- -2.37.1 +2.37.3 -From 57e1446aa0085ecb194ef91b6a54a67f6005230c Mon Sep 17 00:00:00 2001 +From 10f3d37fdc465152b805e54d3217a61d69e4c255 Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Fri, 13 May 2016 17:54:57 +0200 Subject: [PATCH 05/11] Test the scroll-speed property https://bugzilla.redhat.com/show_bug.cgi?id=1103380 --- - src/app/app.cc | 4 ++++ - 1 file changed, 4 insertions(+) + src/app/app.cc | 10 ++++++++++ + 1 file changed, 10 insertions(+) diff --git a/src/app/app.cc b/src/app/app.cc -index 3c666816..2c2e8bde 100644 +index 88fe5f2f..49a1689d 100644 --- a/src/app/app.cc +++ b/src/app/app.cc -@@ -119,6 +119,7 @@ public: +@@ -118,6 +118,9 @@ public: int verbosity{0}; double cell_height_scale{1.0}; double cell_width_scale{1.0}; ++#if _VTE_GTK == 3 + unsigned int scroll_speed{0}; ++#endif VteCursorBlinkMode cursor_blink_mode{VTE_CURSOR_BLINK_SYSTEM}; VteCursorShape cursor_shape{VTE_CURSOR_SHAPE_BLOCK}; VteTextBlinkMode text_blink_mode{VTE_TEXT_BLINK_ALWAYS}; -@@ -647,6 +648,8 @@ public: +@@ -700,6 +703,10 @@ public: "Reverse foreground/background colors", nullptr }, { "require-systemd-scope", 0, 0, G_OPTION_ARG_NONE, &require_systemd_scope, "Require use of a systemd user scope", nullptr }, ++#if _VTE_GTK == 3 + { "scroll-speed", 0, 0, G_OPTION_ARG_INT, &scroll_speed, + "Specify the scroll speed", nullptr }, ++#endif { "scroll-unit-is-pixels", 0, 0, G_OPTION_ARG_NONE, &scroll_unit_is_pixels, "Use pixels as scroll unit", nullptr }, { "scrollback-lines", 'n', 0, G_OPTION_ARG_INT, &scrollback_lines, -@@ -2586,6 +2589,7 @@ vteapp_window_constructed(GObject *object) +@@ -2626,6 +2633,9 @@ vteapp_window_constructed(GObject *object) vte_terminal_set_rewrap_on_resize(window->terminal, !options.no_rewrap); vte_terminal_set_scroll_on_output(window->terminal, false); vte_terminal_set_scroll_on_keystroke(window->terminal, true); ++#if _VTE_GTK == 3 + vte_terminal_set_scroll_speed(window->terminal, options.scroll_speed); ++#endif vte_terminal_set_scroll_unit_is_pixels(window->terminal, options.scroll_unit_is_pixels); vte_terminal_set_scrollback_lines(window->terminal, options.scrollback_lines); vte_terminal_set_text_blink_mode(window->terminal, options.text_blink_mode); -- -2.37.1 +2.37.3 -From 6909335767cfbdee9a8e05949eef21f9cedffe20 Mon Sep 17 00:00:00 2001 +From d2f139cc2f440a390bec6438a4292b50213f5818 Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Wed, 7 Jan 2015 16:01:00 +0100 Subject: [PATCH 06/11] Support preexec notifications from an interactive shell @@ -561,22 +609,22 @@ https://bugzilla.gnome.org/show_bug.cgi?id=711060 7 files changed, 34 insertions(+), 3 deletions(-) diff --git a/src/vte.cc b/src/vte.cc -index 93fc18d2..77c50558 100644 +index e2723342..766b7624 100644 --- a/src/vte.cc +++ b/src/vte.cc -@@ -10306,6 +10306,12 @@ Terminal::emit_pending_signals() +@@ -10197,6 +10197,12 @@ Terminal::emit_pending_signals() + m_notification_summary.c_str(), m_notification_body.c_str()); } - ++ + if (m_pending_changes & vte::to_integral(PendingChanges::SHELL_PREEXEC)) { + _vte_debug_print (VTE_DEBUG_SIGNALS, + "Emitting `shell-preexec'.\n"); + g_signal_emit(freezer.get(), signals[SIGNAL_SHELL_PREEXEC], 0); + } -+ + #endif + if (m_pending_changes & vte::to_integral(PendingChanges::TITLE)) { - if (m_window_title != m_window_title_pending) { - m_window_title.swap(m_window_title_pending); diff --git a/src/vte.sh.in b/src/vte.sh.in index 50242223..01b44e23 100644 --- a/src/vte.sh.in @@ -594,16 +642,15 @@ index 50242223..01b44e23 100644 elif [[ -n "${ZSH_VERSION:-}" ]]; then diff --git a/src/vte/vteterminal.h b/src/vte/vteterminal.h -index c1240e8a..eba96927 100644 +index 972c4a0c..8bdd3ccf 100644 --- a/src/vte/vteterminal.h +++ b/src/vte/vteterminal.h -@@ -109,11 +109,12 @@ struct _VteTerminalClass { - void (*bell)(VteTerminal* terminal); +@@ -110,10 +110,11 @@ struct _VteTerminalClass { + #if _VTE_GTK == 3 void (*notification_received)(VteTerminal* terminal, const gchar *summary, const gchar *body); + void (*shell_preexec)(VteTerminal* terminal); - #if _VTE_GTK == 3 /* Compatibility padding due to fedora patches intruding on our ABI */ /*< private >*/ - gpointer _extra_padding[2]; @@ -612,21 +659,22 @@ index c1240e8a..eba96927 100644 /* Add new vfuncs here, and subtract from the padding below. */ diff --git a/src/vtegtk.cc b/src/vtegtk.cc -index 3992766f..4ef646d7 100644 +index a9f58696..797865db 100644 --- a/src/vtegtk.cc +++ b/src/vtegtk.cc -@@ -1281,6 +1281,7 @@ vte_terminal_class_init(VteTerminalClass *klass) - klass->encoding_changed = NULL; +@@ -1263,6 +1263,7 @@ vte_terminal_class_init(VteTerminalClass *klass) klass->char_size_changed = NULL; + #if _VTE_GTK == 3 klass->notification_received = NULL; + klass->shell_preexec = NULL; + #endif klass->window_title_changed = NULL; klass->icon_title_changed = NULL; - klass->selection_changed = NULL; -@@ -1384,6 +1385,23 @@ vte_terminal_class_init(VteTerminalClass *klass) +@@ -1367,6 +1368,23 @@ vte_terminal_class_init(VteTerminalClass *klass) + _vte_marshal_VOID__STRING_STRING, G_TYPE_NONE, 2, G_TYPE_STRING, G_TYPE_STRING); - ++ + /** + * VteTerminal::shell-preexec: + * @vteterminal: the object which received the signal @@ -643,39 +691,38 @@ index 3992766f..4ef646d7 100644 + NULL, + g_cclosure_marshal_VOID__VOID, + G_TYPE_NONE, 0); -+ + #endif + /** - * VteTerminal::window-title-changed: - * @vteterminal: the object which received the signal diff --git a/src/vtegtk.hh b/src/vtegtk.hh -index 64ff8be8..179222a1 100644 +index 3f1ae86d..0c86fb6e 100644 --- a/src/vtegtk.hh +++ b/src/vtegtk.hh -@@ -52,6 +52,7 @@ enum { - SIGNAL_RESIZE_WINDOW, +@@ -53,6 +53,7 @@ enum { SIGNAL_RESTORE_WINDOW, SIGNAL_SELECTION_CHANGED, + #if _VTE_GTK == 3 + SIGNAL_SHELL_PREEXEC, SIGNAL_NOTIFICATION_RECEIVED, + #endif SIGNAL_WINDOW_TITLE_CHANGED, - LAST_SIGNAL diff --git a/src/vteinternal.hh b/src/vteinternal.hh -index 0e5a8ace..11965778 100644 +index 4629c95f..dfa3c0b9 100644 --- a/src/vteinternal.hh +++ b/src/vteinternal.hh -@@ -707,6 +707,7 @@ public: - CWD = 1u << 1, +@@ -686,6 +686,7 @@ public: CWF = 1u << 2, + #if _VTE_GTK == 3 NOTIFICATION = 1u << 3, + SHELL_PREEXEC = 1u << 4, + #endif }; unsigned m_pending_changes{0}; - diff --git a/src/vteseq.cc b/src/vteseq.cc -index 772ba4f3..76b9329e 100644 +index dda487c4..f2c86b2c 100644 --- a/src/vteseq.cc +++ b/src/vteseq.cc -@@ -1433,6 +1433,10 @@ Terminal::handle_urxvt_extension(vte::parser::Sequence const& seq, +@@ -1402,6 +1402,10 @@ Terminal::handle_urxvt_extension(vte::parser::Sequence const& seq, m_notification_body = *token; return; } @@ -684,13 +731,13 @@ index 772ba4f3..76b9329e 100644 + m_pending_changes |= vte::to_integral(PendingChanges::SHELL_PREEXEC); + } } + #endif - bool -- -2.37.1 +2.37.3 -From 39c75a48973425aad1bf25f0181d49600c7d8119 Mon Sep 17 00:00:00 2001 +From 05425620f9e65704eec774cd567e15f5e385f89d Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Fri, 20 Apr 2018 18:21:53 +0200 Subject: [PATCH 07/11] Test the shell-preexec signal @@ -702,10 +749,10 @@ https://bugzilla.gnome.org/show_bug.cgi?id=711060 1 file changed, 7 insertions(+) diff --git a/src/app/app.cc b/src/app/app.cc -index 2c2e8bde..a66b56f0 100644 +index 49a1689d..90b2dfe5 100644 --- a/src/app/app.cc +++ b/src/app/app.cc -@@ -2256,6 +2256,12 @@ notification_received_cb(VteTerminal *terminal, +@@ -2301,6 +2301,12 @@ notification_received_cb(VteTerminal *terminal, g_print("[%s]: %s\n", summary, body); } @@ -718,7 +765,7 @@ index 2c2e8bde..a66b56f0 100644 static void window_lower_window_cb(VteTerminal* terminal, VteappWindow* window) -@@ -2553,6 +2559,7 @@ vteapp_window_constructed(GObject *object) +@@ -2598,6 +2604,7 @@ vteapp_window_constructed(GObject *object) g_signal_connect(window->terminal, "notify", G_CALLBACK(window_notify_cb), window); g_signal_connect(window->terminal, "notification-received", G_CALLBACK(notification_received_cb), NULL); @@ -727,10 +774,10 @@ index 2c2e8bde..a66b56f0 100644 /* Settings */ #if VTE_GTK == 3 -- -2.37.1 +2.37.3 -From bfb447be5a97cda7523719ab901c1ea6b0293a6b Mon Sep 17 00:00:00 2001 +From 57dd88ebfe1b3df1bafe7fd904dd0df7c1094f59 Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Wed, 2 May 2018 17:20:30 +0200 Subject: [PATCH 08/11] Support precmd notifications from an interactive shell @@ -751,30 +798,30 @@ https://bugzilla.gnome.org/show_bug.cgi?id=711060 --- src/vte.cc | 6 ++++++ src/vte.sh.in | 2 +- - src/vte/vteterminal.h | 7 +------ + src/vte/vteterminal.h | 5 +---- src/vtegtk.cc | 18 ++++++++++++++++++ src/vtegtk.hh | 1 + src/vteinternal.hh | 1 + src/vteseq.cc | 4 +++- - 7 files changed, 31 insertions(+), 8 deletions(-) + 7 files changed, 31 insertions(+), 6 deletions(-) diff --git a/src/vte.cc b/src/vte.cc -index 77c50558..604890e3 100644 +index 766b7624..6cef7b17 100644 --- a/src/vte.cc +++ b/src/vte.cc -@@ -10312,6 +10312,12 @@ Terminal::emit_pending_signals() +@@ -10203,6 +10203,12 @@ Terminal::emit_pending_signals() + "Emitting `shell-preexec'.\n"); g_signal_emit(freezer.get(), signals[SIGNAL_SHELL_PREEXEC], 0); } - ++ + if (m_pending_changes & vte::to_integral(PendingChanges::SHELL_PRECMD)) { + _vte_debug_print (VTE_DEBUG_SIGNALS, + "Emitting `shell-precmd'.\n"); + g_signal_emit(freezer.get(), signals[SIGNAL_SHELL_PRECMD], 0); + } -+ + #endif + if (m_pending_changes & vte::to_integral(PendingChanges::TITLE)) { - if (m_window_title != m_window_title_pending) { - m_window_title.swap(m_window_title_pending); diff --git a/src/vte.sh.in b/src/vte.sh.in index 01b44e23..877fe93d 100644 --- a/src/vte.sh.in @@ -789,38 +836,35 @@ index 01b44e23..877fe93d 100644 } diff --git a/src/vte/vteterminal.h b/src/vte/vteterminal.h -index eba96927..c49f217e 100644 +index 8bdd3ccf..31bb3b75 100644 --- a/src/vte/vteterminal.h +++ b/src/vte/vteterminal.h -@@ -109,14 +109,9 @@ struct _VteTerminalClass { - void (*bell)(VteTerminal* terminal); +@@ -110,11 +110,8 @@ struct _VteTerminalClass { + #if _VTE_GTK == 3 void (*notification_received)(VteTerminal* terminal, const gchar *summary, const gchar *body); + void (*shell_precmd)(VteTerminal* terminal); void (*shell_preexec)(VteTerminal* terminal); - --#if _VTE_GTK == 3 +- - /* Compatibility padding due to fedora patches intruding on our ABI */ - /*< private >*/ - gpointer _extra_padding[1]; --#endif /* _VTE_GTK == 3 */ -- - /* Add new vfuncs here, and subtract from the padding below. */ + #endif /* _VTE_GTK == 3 */ - /* Padding for future expansion. */ + /* Add new vfuncs here, and subtract from the padding below. */ diff --git a/src/vtegtk.cc b/src/vtegtk.cc -index 4ef646d7..54ed6fc1 100644 +index 797865db..bd3a8798 100644 --- a/src/vtegtk.cc +++ b/src/vtegtk.cc -@@ -1281,6 +1281,7 @@ vte_terminal_class_init(VteTerminalClass *klass) - klass->encoding_changed = NULL; +@@ -1263,6 +1263,7 @@ vte_terminal_class_init(VteTerminalClass *klass) klass->char_size_changed = NULL; + #if _VTE_GTK == 3 klass->notification_received = NULL; + klass->shell_precmd = NULL; klass->shell_preexec = NULL; + #endif klass->window_title_changed = NULL; - klass->icon_title_changed = NULL; -@@ -1385,6 +1386,23 @@ vte_terminal_class_init(VteTerminalClass *klass) +@@ -1369,6 +1370,23 @@ vte_terminal_class_init(VteTerminalClass *klass) G_TYPE_NONE, 2, G_TYPE_STRING, G_TYPE_STRING); @@ -845,34 +889,34 @@ index 4ef646d7..54ed6fc1 100644 * VteTerminal::shell-preexec: * @vteterminal: the object which received the signal diff --git a/src/vtegtk.hh b/src/vtegtk.hh -index 179222a1..c66aeda2 100644 +index 0c86fb6e..e871b946 100644 --- a/src/vtegtk.hh +++ b/src/vtegtk.hh -@@ -52,6 +52,7 @@ enum { - SIGNAL_RESIZE_WINDOW, +@@ -53,6 +53,7 @@ enum { SIGNAL_RESTORE_WINDOW, SIGNAL_SELECTION_CHANGED, + #if _VTE_GTK == 3 + SIGNAL_SHELL_PRECMD, SIGNAL_SHELL_PREEXEC, SIGNAL_NOTIFICATION_RECEIVED, - SIGNAL_WINDOW_TITLE_CHANGED, + #endif diff --git a/src/vteinternal.hh b/src/vteinternal.hh -index 11965778..d4a10935 100644 +index dfa3c0b9..b8e30d15 100644 --- a/src/vteinternal.hh +++ b/src/vteinternal.hh -@@ -708,6 +708,7 @@ public: - CWF = 1u << 2, +@@ -687,6 +687,7 @@ public: + #if _VTE_GTK == 3 NOTIFICATION = 1u << 3, SHELL_PREEXEC = 1u << 4, + SHELL_PRECMD = 1u << 5, + #endif }; unsigned m_pending_changes{0}; - diff --git a/src/vteseq.cc b/src/vteseq.cc -index 76b9329e..fb958962 100644 +index f2c86b2c..bae18595 100644 --- a/src/vteseq.cc +++ b/src/vteseq.cc -@@ -1434,7 +1434,9 @@ Terminal::handle_urxvt_extension(vte::parser::Sequence const& seq, +@@ -1403,7 +1403,9 @@ Terminal::handle_urxvt_extension(vte::parser::Sequence const& seq, return; } @@ -884,10 +928,10 @@ index 76b9329e..fb958962 100644 } } -- -2.37.1 +2.37.3 -From d84dd319c31ffdcfd73b08750228efba34e226fb Mon Sep 17 00:00:00 2001 +From 089580a09de21160f871875fe960e895bc5b5bc2 Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Wed, 2 May 2018 17:30:48 +0200 Subject: [PATCH 09/11] Test the shell-precmd signal @@ -899,10 +943,10 @@ https://bugzilla.gnome.org/show_bug.cgi?id=711060 1 file changed, 7 insertions(+) diff --git a/src/app/app.cc b/src/app/app.cc -index a66b56f0..9d02499b 100644 +index 90b2dfe5..5c4946c9 100644 --- a/src/app/app.cc +++ b/src/app/app.cc -@@ -2256,6 +2256,12 @@ notification_received_cb(VteTerminal *terminal, +@@ -2301,6 +2301,12 @@ notification_received_cb(VteTerminal *terminal, g_print("[%s]: %s\n", summary, body); } @@ -915,7 +959,7 @@ index a66b56f0..9d02499b 100644 static void shell_preexec_cb(VteTerminal *terminal) { -@@ -2559,6 +2565,7 @@ vteapp_window_constructed(GObject *object) +@@ -2604,6 +2610,7 @@ vteapp_window_constructed(GObject *object) g_signal_connect(window->terminal, "notify", G_CALLBACK(window_notify_cb), window); g_signal_connect(window->terminal, "notification-received", G_CALLBACK(notification_received_cb), NULL); @@ -924,10 +968,10 @@ index a66b56f0..9d02499b 100644 /* Settings */ -- -2.37.1 +2.37.3 -From 691fece42c52662dcf53b4bf5360ca0d48822580 Mon Sep 17 00:00:00 2001 +From 2e940b5a720dea9a06fd47862381f27f765f76dd Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Mon, 10 Jun 2019 20:30:18 +0200 Subject: [PATCH 10/11] Support tracking the active container inside the @@ -961,21 +1005,22 @@ agreed upon across multiple different terminal emulators [1]. [1] https://gitlab.freedesktop.org/terminal-wg/specifications/issues/17 --- src/vte.cc | 8 ++++ - src/vte/vteterminal.h | 4 ++ - src/vtegtk.cc | 77 ++++++++++++++++++++++++++++++++++++++ - src/vtegtk.hh | 2 + - src/vteinternal.hh | 16 ++++++++ - src/vteseq.cc | 86 +++++++++++++++++++++++++++++++++++++++++++ - 6 files changed, 193 insertions(+) + src/vte/vteterminal.h | 6 +++ + src/vtegtk.cc | 83 +++++++++++++++++++++++++++++++++++++++ + src/vtegtk.hh | 4 ++ + src/vteinternal.hh | 20 ++++++++++ + src/vteseq.cc | 90 +++++++++++++++++++++++++++++++++++++++++++ + 6 files changed, 211 insertions(+) diff --git a/src/vte.cc b/src/vte.cc -index 604890e3..fca21ddf 100644 +index 6cef7b17..21823424 100644 --- a/src/vte.cc +++ b/src/vte.cc -@@ -10331,6 +10331,14 @@ Terminal::emit_pending_signals() - m_window_title_pending.clear(); - } - +@@ -10209,6 +10209,14 @@ Terminal::emit_pending_signals() + "Emitting `shell-precmd'.\n"); + g_signal_emit(freezer.get(), signals[SIGNAL_SHELL_PRECMD], 0); + } ++ + if (m_pending_changes & vte::to_integral(PendingChanges::CONTAINERS)) { + _vte_debug_print(VTE_DEBUG_SIGNALS, + "Notifying `current-container-name' and `current-container-runtime'.\n"); @@ -983,46 +1028,50 @@ index 604890e3..fca21ddf 100644 + g_object_notify_by_pspec(freezer.get(), pspecs[PROP_CURRENT_CONTAINER_NAME]); + g_object_notify_by_pspec(freezer.get(), pspecs[PROP_CURRENT_CONTAINER_RUNTIME]); + } -+ - if (m_pending_changes & vte::to_integral(PendingChanges::CWD)) { - if (m_current_directory_uri != m_current_directory_uri_pending) { - m_current_directory_uri.swap(m_current_directory_uri_pending); + #endif + + if (m_pending_changes & vte::to_integral(PendingChanges::TITLE)) { diff --git a/src/vte/vteterminal.h b/src/vte/vteterminal.h -index c49f217e..c490f157 100644 +index 31bb3b75..12ecf181 100644 --- a/src/vte/vteterminal.h +++ b/src/vte/vteterminal.h -@@ -514,6 +514,10 @@ glong vte_terminal_get_column_count(VteTerminal *terminal) _VTE_CXX_NOEXCEPT _VT +@@ -551,6 +551,12 @@ _VTE_PUBLIC + glong vte_terminal_get_column_count(VteTerminal *terminal) _VTE_CXX_NOEXCEPT _VTE_GNUC_NONNULL(1); _VTE_PUBLIC const char *vte_terminal_get_window_title(VteTerminal *terminal) _VTE_CXX_NOEXCEPT _VTE_GNUC_NONNULL(1); - _VTE_PUBLIC ++#if _VTE_GTK == 3 ++_VTE_PUBLIC +const char *vte_terminal_get_current_container_name(VteTerminal *terminal) _VTE_CXX_NOEXCEPT _VTE_GNUC_NONNULL(1); +_VTE_PUBLIC +const char *vte_terminal_get_current_container_runtime(VteTerminal *terminal) _VTE_CXX_NOEXCEPT _VTE_GNUC_NONNULL(1); -+_VTE_PUBLIC ++#endif + _VTE_PUBLIC const char *vte_terminal_get_current_directory_uri(VteTerminal *terminal) _VTE_CXX_NOEXCEPT _VTE_GNUC_NONNULL(1); _VTE_PUBLIC - const char *vte_terminal_get_current_file_uri(VteTerminal *terminal) _VTE_CXX_NOEXCEPT _VTE_GNUC_NONNULL(1); diff --git a/src/vtegtk.cc b/src/vtegtk.cc -index 54ed6fc1..b2ec8f40 100644 +index bd3a8798..0457b2b9 100644 --- a/src/vtegtk.cc +++ b/src/vtegtk.cc -@@ -942,6 +942,12 @@ try +@@ -951,6 +951,14 @@ try case PROP_CURSOR_BLINK_MODE: g_value_set_enum (value, vte_terminal_get_cursor_blink_mode (terminal)); break; ++#if _VTE_GTK == 3 + case PROP_CURRENT_CONTAINER_NAME: + g_value_set_string (value, vte_terminal_get_current_container_name (terminal)); + break; + case PROP_CURRENT_CONTAINER_RUNTIME: + g_value_set_string (value, vte_terminal_get_current_container_runtime (terminal)); + break; ++#endif case PROP_CURRENT_DIRECTORY_URI: g_value_set_string (value, vte_terminal_get_current_directory_uri (terminal)); break; -@@ -2393,6 +2399,27 @@ vte_terminal_class_init(VteTerminalClass *klass) +@@ -2376,6 +2384,29 @@ vte_terminal_class_init(VteTerminalClass *klass) NULL, (GParamFlags) (G_PARAM_READABLE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY)); ++#if _VTE_GTK == 3 + /** + * VteTerminal:current-container-name: + * @@ -1043,14 +1092,16 @@ index 54ed6fc1..b2ec8f40 100644 + g_param_spec_string ("current-container-runtime", NULL, NULL, + NULL, + (GParamFlags) (G_PARAM_READABLE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY)); ++#endif + /** * VteTerminal:current-directory-uri: * -@@ -5022,6 +5049,56 @@ catch (...) +@@ -5129,6 +5160,58 @@ catch (...) return -1; } ++#if _VTE_GTK == 3 +/** + * vte_terminal_get_current_container_name: + * @terminal: a #VteTerminal @@ -1100,39 +1151,45 @@ index 54ed6fc1..b2ec8f40 100644 + vte::log_exception(); + return NULL; +} ++#endif + /** * vte_terminal_get_current_directory_uri: * @terminal: a #VteTerminal diff --git a/src/vtegtk.hh b/src/vtegtk.hh -index c66aeda2..cf572de4 100644 +index e871b946..0a31d205 100644 --- a/src/vtegtk.hh +++ b/src/vtegtk.hh -@@ -72,6 +72,8 @@ enum { +@@ -74,6 +74,10 @@ enum { PROP_CJK_AMBIGUOUS_WIDTH, PROP_CURSOR_BLINK_MODE, PROP_CURSOR_SHAPE, ++#if _VTE_GTK == 3 + PROP_CURRENT_CONTAINER_NAME, + PROP_CURRENT_CONTAINER_RUNTIME, ++#endif PROP_CURRENT_DIRECTORY_URI, PROP_CURRENT_FILE_URI, PROP_DELETE_BINDING, diff --git a/src/vteinternal.hh b/src/vteinternal.hh -index d4a10935..0f219dc6 100644 +index b8e30d15..0c52442b 100644 --- a/src/vteinternal.hh +++ b/src/vteinternal.hh -@@ -59,6 +59,7 @@ +@@ -59,6 +59,9 @@ #include #include #include ++#if _VTE_GTK == 3 +#include ++#endif #include #include #include -@@ -114,6 +115,18 @@ typedef enum _VteCharacterReplacement { +@@ -110,6 +113,20 @@ typedef enum _VteCharacterReplacement { VTE_CHARACTER_REPLACEMENT_LINE_DRAWING } VteCharacterReplacement; ++#if _VTE_GTK == 3 +struct VteContainer { +public: + VteContainer(const std::string &name, const std::string &runtime) : @@ -1144,50 +1201,57 @@ index d4a10935..0f219dc6 100644 + std::string m_name; + std::string m_runtime; +}; ++#endif + typedef struct _VtePaletteColor { struct { vte::color::rgb color; -@@ -689,6 +702,8 @@ public: - gboolean m_cursor_moved_pending; +@@ -666,6 +683,8 @@ public: gboolean m_contents_changed_pending; + #if _VTE_GTK == 3 + std::stack m_containers; + /* desktop notification */ std::string m_notification_summary; std::string m_notification_body; -@@ -709,6 +724,7 @@ public: +@@ -688,6 +707,7 @@ public: NOTIFICATION = 1u << 3, SHELL_PREEXEC = 1u << 4, SHELL_PRECMD = 1u << 5, + CONTAINERS = 1u << 6, + #endif }; unsigned m_pending_changes{0}; - diff --git a/src/vteseq.cc b/src/vteseq.cc -index fb958962..5b36dd9b 100644 +index bae18595..8a7f5b34 100644 --- a/src/vteseq.cc +++ b/src/vteseq.cc -@@ -19,10 +19,14 @@ +@@ -19,6 +19,7 @@ #include "config.h" -+#include + #include #include #include - #include +@@ -39,6 +40,11 @@ + #define ST_C0 _VTE_CAP_ST + + #include ++#if _VTE_GTK == 3 ++#include +#include +#include - #ifdef HAVE_SYS_SYSLIMITS_H - #include - #endif -@@ -1416,6 +1420,88 @@ Terminal::handle_urxvt_extension(vte::parser::Sequence const& seq, ++#endif + + using namespace std::literals; + +@@ -1385,6 +1391,90 @@ Terminal::handle_urxvt_extension(vte::parser::Sequence const& seq, if (token == endtoken) return; ++#if _VTE_GTK == 3 + if (*token == "container") { + ++token; + @@ -1269,15 +1333,16 @@ index fb958962..5b36dd9b 100644 + + return; + } ++#endif + if (*token == "notify") { ++token; -- -2.37.1 +2.37.3 -From 09b7ad967e395ef95f3428982596a2d80a0097e1 Mon Sep 17 00:00:00 2001 +From f15bfe821e0deefcf62d649c27e73b802f5338f0 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Tue, 16 Feb 2021 16:30:44 +0100 Subject: [PATCH 11/11] Revert "widget: Limit select-all to the writable region @@ -1293,10 +1358,10 @@ This reverts commit 73713ec0644e232fb740170e399282be778d97f9. 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/vte.cc b/src/vte.cc -index fca21ddf..eeb29eab 100644 +index 21823424..20767b61 100644 --- a/src/vte.cc +++ b/src/vte.cc -@@ -6566,10 +6566,7 @@ Terminal::maybe_end_selection() +@@ -6525,10 +6525,7 @@ Terminal::maybe_end_selection() /* * Terminal::select_all: * @@ -1308,7 +1373,7 @@ index fca21ddf..eeb29eab 100644 */ void Terminal::select_all() -@@ -6578,8 +6575,8 @@ Terminal::select_all() +@@ -6537,8 +6534,8 @@ Terminal::select_all() m_selecting_had_delta = TRUE; @@ -1320,5 +1385,5 @@ index fca21ddf..eeb29eab 100644 _vte_debug_print(VTE_DEBUG_SELECTION, "Selecting *all* text.\n"); -- -2.37.1 +2.37.3 diff --git a/vte291.spec b/vte291.spec index df8b019..5b48967 100644 --- a/vte291.spec +++ b/vte291.spec @@ -12,7 +12,7 @@ Name: vte291 Version: 0.70.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: GTK+ 3 terminal emulator library # libvte-2.91.so is generated from LGPLv2+ and MIT sources @@ -179,6 +179,9 @@ sed -i -e "/^vte_systemduserunitdir =/s|vte_prefix|'/usr'|" meson.build %{_sysconfdir}/profile.d/vte.sh %changelog +* Mon Sep 26 2022 David King - 0.70.0-2 +- Fix GTK4 ABI padding (#2122922) + * Mon Sep 19 2022 Kalev Lember - 0.70.0-1 - Update to 0.70.0