diff --git a/004-fix-desktop-pop-up-context-menu.patch b/004-fix-desktop-pop-up-context-menu.patch new file mode 100644 index 0000000000000000000000000000000000000000..89c7ab1842d6d4254b1f766cf704ff8cec8b3c4a --- /dev/null +++ b/004-fix-desktop-pop-up-context-menu.patch @@ -0,0 +1,47 @@ +From 04a237fe28742bb48b974af5e20067e28a6f19a4 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?=E5=BC=A0=E6=B6=9B?= +Date: Thu, 19 Oct 2023 13:27:13 +0800 +Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=B3=BB=E7=BB=9F=E5=AD=97?= + =?UTF-8?q?=E4=BD=93=E7=94=B1=E5=A4=A7=E5=8F=98=E5=B0=8F=E5=90=8E=EF=BC=8C?= + =?UTF-8?q?=E6=A1=8C=E9=9D=A2=E5=8F=B3=E9=94=AE=E8=8F=9C=E5=8D=95=E4=B8=8B?= + =?UTF-8?q?=E6=96=B9=E5=87=BA=E7=8E=B0=E5=A4=A7=E9=87=8F=E7=A9=BA=E7=99=BD?= +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +--- + eel/eel-gtk-extensions.c | 18 +++++++----------- + 1 file changed, 7 insertions(+), 11 deletions(-) + +diff --git a/eel/eel-gtk-extensions.c b/eel/eel-gtk-extensions.c +index 0987966..2386df0 100644 +--- a/eel/eel-gtk-extensions.c ++++ b/eel/eel-gtk-extensions.c +@@ -285,17 +285,13 @@ eel_pop_up_context_menu (GtkMenu *menu, + button = 0; + } + +- if (button > 0) { +- gtk_menu_popup_at_pointer (menu, (GdkEvent *) event); +- } else { +- gtk_menu_popup (menu, /* menu */ +- NULL, /* parent_menu_shell */ +- NULL, /* parent_menu_item */ +- NULL, /* popup_position_func */ +- NULL, /* popup_position_data */ +- button, /* button */ +- event ? event->time : gtk_get_current_event_time ()); /* activate_time */ +- } ++ gtk_menu_popup (menu, /* menu */ ++ NULL, /* parent_menu_shell */ ++ NULL, /* parent_menu_item */ ++ NULL, /* popup_position_func */ ++ NULL, /* popup_position_data */ ++ button, /* button */ ++ event ? event->time : gtk_get_current_event_time ()); /* activate_time */ + + g_object_ref_sink (menu); + g_object_unref (menu); +-- +2.30.2 + diff --git a/nemo.spec b/nemo.spec index 3225d8d55013eabf2709ba0bed43bc3601a0e64f..26f961ff59e55e041c1d0fd4812df2f0b4098e01 100644 --- a/nemo.spec +++ b/nemo.spec @@ -1,7 +1,7 @@ Name: nemo Summary: File manager and graphical shell for Cinnamon. Version: 4.8.6 -Release: 4%{?dist} +Release: 5%{?dist} License: GPLv2+ and LGPLv2+ URL: https://github.com/linuxmint/%{name} Source0: %{name}-%{version}.tar.gz @@ -10,6 +10,7 @@ Source1: nemo.lintian-overrides Patch0: 001-fix-icon-text-width-largest.patch Patch1: 002-fix-rename-selected-item.patch Patch2: 003-fix-query-editor-changed.patch +Patch3: 004-fix-desktop-pop-up-context-menu.patch BuildRequires: meson BuildRequires: intltool @@ -155,6 +156,10 @@ install -m 644 data/nemo.conf %{buildroot}%{_sysconfdir}/rsyslog.d/nemo.conf #/usr/share/python3/runtime.d/nemo-data.rtupdate %changelog +* Thu Oct 19 2023 张涛 - 4.8.6-5 +- fix: 修复系统字体由大变小后,桌面右键菜单下方出现大量空白 +- add patch: 004-fix-desktop-pop-up-context-menu.patch + * Thu Oct 19 2023 张涛 - 4.8.6-4 - fix: 修复任何条件下,第一次搜索都查不出结果的问题 - add patch: 003-fix-query-editor-changed.patch