From 0429cc6c972a8a6c413468ae252bb3982af1b7cc Mon Sep 17 00:00:00 2001 From: Dan HorĂ¡k Date: Feb 15 2024 11:26:39 +0000 Subject: fix clipboard handling Resolves: https://gitlab.xfce.org/apps/xfce4-terminal/-/issues/299 --- diff --git a/xfce4-terminal-4.1.2-clipboard.patch b/xfce4-terminal-4.1.2-clipboard.patch new file mode 100644 index 0000000..b8120b7 --- /dev/null +++ b/xfce4-terminal-4.1.2-clipboard.patch @@ -0,0 +1,59 @@ +From 177fda86451cdeaaea8ed409e6d711b670699a97 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ga=C3=ABl=20Bonithon?= +Date: Tue, 6 Feb 2024 18:14:04 +0100 +Subject: [PATCH] screen: Fix wrong assert + +It's always been wrong (or has been for a long time) but de3e7aac +revealed it, because now it's no longer disabled by building with +--disable-debug. + +Fixes: de3e7aac72fdcd3e62d69f37ec2570e5d668950a +Closes: #299 +--- + terminal/terminal-screen.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/terminal/terminal-screen.c b/terminal/terminal-screen.c +index 6e48b522..dc931ec7 100644 +--- a/terminal/terminal-screen.c ++++ b/terminal/terminal-screen.c +@@ -1892,7 +1892,7 @@ terminal_screen_paste_unsafe_text (TerminalScreen *screen, + { + GtkWidget *dialog; + +- g_return_if_fail (original_clipboard != GDK_SELECTION_CLIPBOARD && original_clipboard != GDK_SELECTION_PRIMARY); ++ g_return_if_fail (original_clipboard == GDK_SELECTION_CLIPBOARD || original_clipboard == GDK_SELECTION_PRIMARY); + + dialog = terminal_screen_unsafe_paste_dialog_new (screen, text); + gtk_widget_show_all (dialog); +-- +GitLab + +From 71ecd2a721b059394edcfb316a20ac9d46a7b2cd Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ga=C3=ABl=20Bonithon?= +Date: Wed, 7 Feb 2024 16:10:05 +0100 +Subject: [PATCH] prefs-dialog: Fix wrong assert + +Related: #299 +Fixes: de3e7aac72fdcd3e62d69f37ec2570e5d668950a +Closes: #300 +--- + terminal/terminal-preferences-dialog.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/terminal/terminal-preferences-dialog.c b/terminal/terminal-preferences-dialog.c +index 86950b45..a1671400 100644 +--- a/terminal/terminal-preferences-dialog.c ++++ b/terminal/terminal-preferences-dialog.c +@@ -1893,7 +1893,7 @@ terminal_preferences_dialog_presets_changed (TerminalPreferencesDialog *dialog, + GValue src = { 0, }; + GValue dst = { 0, }; + +- g_return_if_fail (TERMINAL_IS_PREFERENCES_DIALOG (widget)); ++ g_return_if_fail (TERMINAL_IS_PREFERENCES_DIALOG (dialog)); + g_return_if_fail (GTK_IS_COMBO_BOX (widget)); + + combobox = GTK_COMBO_BOX (widget); +-- +GitLab + diff --git a/xfce4-terminal.spec b/xfce4-terminal.spec index 0e1a1e2..e832c76 100644 --- a/xfce4-terminal.spec +++ b/xfce4-terminal.spec @@ -10,6 +10,9 @@ License: GPLv2+ URL: http://docs.xfce.org/apps/terminal/start Source0: http://archive.xfce.org/src/apps/xfce4-terminal/%{minorversion}/%{name}-%{version}.tar.bz2 +# https://gitlab.xfce.org/apps/xfce4-terminal/-/commit/177fda86451cdeaaea8ed409e6d711b670699a97 +Patch0: xfce4-terminal-4.1.2-clipboard.patch + BuildRequires: make BuildRequires: gcc-c++ BuildRequires: vte291-devel >= 0.38 @@ -31,7 +34,7 @@ with many advanced features including drop down, tabs, unlimited scrolling, full colors, fonts, transparent backgrounds, and more. %prep -%setup -q +%autosetup -p1 %build %configure