void-packages/srcpkgs/telepathy-mission-control/patches/account-Fix-property-name.patch
Đoàn Trần Công Danh 4f75cf25fd srcpkgs/t*: convert patches to -Np1
```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,^[+-][+-][+-] /dev/null,b
			/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
			s,^[*][*][*] ,&a/,
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s,[.-][Oo][Rr][Ii][Gg]\([	/]\),\1,
				s/[.-][Oo][Rr][Ii][Gg]$//
				s/[.]patched[.]\([^.]\)/.\1/
				h
			}
			/^+++ -/{
				g
				s/^--- a/+++ b/
				b
			}
			s,\(^+++ \)\(./\)*,\1b/,
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
2021-06-20 13:17:29 +07:00

28 lines
1 KiB
Diff

From d8dab08fe8db137c6bbd8bbdc3d9b01d98c48910 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
Date: Thu, 19 Dec 2019 13:37:49 +0100
Subject: [PATCH] account: Fix property name
Spaces are not valid characters in property names, and never were.
Until recently GLib silently fixed up the name by replacing the
space with '-', but now tightened up the validation.
---
src/mcd-account.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git src/mcd-account.c src/mcd-account.c
index 8009110e..de5c61cf 100644
--- a/src/mcd-account.c
+++ b/src/mcd-account.c
@@ -3442,7 +3442,7 @@ mcd_account_class_init (McdAccountClass * klass)
g_object_class_install_property
(object_class, PROP_CONNECTIVITY_MONITOR,
- g_param_spec_object ("connectivity monitor",
+ g_param_spec_object ("connectivity-monitor",
"Connectivity monitor",
"Connectivity monitor",
MCD_TYPE_CONNECTIVITY_MONITOR,
--
2.24.1