From 675fb77510cb8b0e90b0b6b5d6289295a10e8f5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=B6=9B?= Date: Thu, 19 Oct 2023 16:35:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=87=8D=E5=91=BD?= =?UTF-8?q?=E5=90=8D=E5=90=8E=EF=BC=8C=E5=88=87=E6=8D=A2=E8=A7=86=E5=9B=BE?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=EF=BC=8C=E5=86=8D=E6=AC=A1=E9=87=8D=E5=91=BD?= =?UTF-8?q?=E5=90=8D=E6=97=B6=E8=BE=93=E5=85=A5=E6=A1=86=E5=A4=A7=E5=B0=8F?= =?UTF-8?q?=E6=9C=89=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 002-fix-rename-selected-item.patch | 31 ++++++++++++++++++++++++++++++ nemo.spec | 7 ++++++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 002-fix-rename-selected-item.patch diff --git a/002-fix-rename-selected-item.patch b/002-fix-rename-selected-item.patch new file mode 100644 index 0000000..1a60a43 --- /dev/null +++ b/002-fix-rename-selected-item.patch @@ -0,0 +1,31 @@ +From 15d0636e0e0c88d5e7e2c794ebea2793e75a1a50 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?=E5=BC=A0=E6=B6=9B?= +Date: Thu, 19 Oct 2023 13:14:31 +0800 +Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=87=8D=E5=91=BD?= + =?UTF-8?q?=E5=90=8D=E5=90=8E=EF=BC=8C=E5=88=87=E6=8D=A2=E8=A7=86=E5=9B=BE?= + =?UTF-8?q?=E6=A8=A1=E5=BC=8F=EF=BC=8C=E5=86=8D=E6=AC=A1=E9=87=8D=E5=91=BD?= + =?UTF-8?q?=E5=90=8D=E6=97=B6=E8=BE=93=E5=85=A5=E6=A1=86=E5=A4=A7=E5=B0=8F?= + =?UTF-8?q?=E6=9C=89=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98?= +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +--- + libnemo-private/nemo-icon-container.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/libnemo-private/nemo-icon-container.c b/libnemo-private/nemo-icon-container.c +index 64ad45c..eaa3031 100644 +--- a/libnemo-private/nemo-icon-container.c ++++ b/libnemo-private/nemo-icon-container.c +@@ -7016,6 +7016,7 @@ nemo_icon_container_start_renaming_selected_item (NemoIconContainer *container, + + gtk_widget_set_size_request (details->rename_widget, + width, -1); ++ gtk_widget_queue_resize (details->rename_widget); + eel_editable_label_set_text (EEL_EDITABLE_LABEL (details->rename_widget), + editable_text); + if (select_all) { +-- +2.30.2 + diff --git a/nemo.spec b/nemo.spec index 676eea3..968905c 100644 --- a/nemo.spec +++ b/nemo.spec @@ -1,13 +1,14 @@ Name: nemo Summary: File manager and graphical shell for Cinnamon. Version: 4.8.6 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv2+ and LGPLv2+ URL: https://github.com/linuxmint/%{name} Source0: %{name}-%{version}.tar.gz Source1: nemo.lintian-overrides Patch0: 001-fix-icon-text-width-largest.patch +Patch1: 002-fix-rename-selected-item.patch BuildRequires: meson BuildRequires: intltool @@ -153,6 +154,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-3 +- fix: 修复重命名后,切换视图模式,再次重命名时输入框大小有误的问题 +- add patch: 002-fix-rename-selected-item.patch + * Thu Oct 19 2023 张涛 - 4.8.6-2 - fix: 文件名过长时,桌面大图标视图下图标对不齐 - add patch: 001-fix-icon-text-width-largest.patch -- Gitee