void-packages/srcpkgs/libindicator/patches/gtk+3.patch
Đoàn Trần Công Danh 861ac185a6 srcpkgs/l*: 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

11 lines
377 B
Diff

--- a/libindicator/indicator-image-helper.c.bck 2017-06-14 03:46:33.174214553 -0400
+++ b/libindicator/indicator-image-helper.c 2017-06-14 03:47:00.594494305 -0400
@@ -69,7 +69,7 @@
GdkPixbuf * pixbuf = gdk_pixbuf_new_from_file(icon_filename, &error);
if (icon_info != NULL) {
- gtk_icon_info_free(icon_info);
+ g_object_unref(icon_info);
}
if (pixbuf == NULL) {