[gimp/wip/schumaml/menu-entry-bugs-for-version] menus: add a version-specific issues link to the GIMP gitLab issues
- From: Michael Schumacher <schumaml src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/wip/schumaml/menu-entry-bugs-for-version] menus: add a version-specific issues link to the GIMP gitLab issues
- Date: Sat, 13 Feb 2021 17:15:37 +0000 (UTC)
commit 4e5e5956b7009b6083c604808007ad3acc564e2a
Author: Michael Schumacher <schumaml gmx de>
Date: Sat Feb 13 18:09:19 2021 +0100
menus: add a version-specific issues link to the GIMP gitLab issues
The idea is that this may make it easier for users to spot whether an issue the have encountered is
already
known, like the infamous export crash in 2.99.4. That's also why the link being used shows all reports:
open
and closed ones.
The current state would work fine for releases, provided that issues have a correspnding version label.
For
this reason, we should make sure that version labels are not replaced, but added to, unless a specific
issues
is indeed not present in an intermediate release inbetween some others.
The naive approach of simply using (gimp-version) for the label fails for development versions in between
releases, as e.g. we have no issues with a '2.99.5' label.
plug-ins/script-fu/scripts/gimp-online.scm | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
---
diff --git a/plug-ins/script-fu/scripts/gimp-online.scm b/plug-ins/script-fu/scripts/gimp-online.scm
index 8d3569a918..ffd882d055 100644
--- a/plug-ins/script-fu/scripts/gimp-online.scm
+++ b/plug-ins/script-fu/scripts/gimp-online.scm
@@ -181,6 +181,11 @@
(plug-in-web-browser "https://gitlab.gnome.org/GNOME/gimp/issues")
)
+(define (gimp-online-bugs-features-version)
+ (plug-in-web-browser (string-append
"https://gitlab.gnome.org/GNOME/gimp/-/issues?scope=all&state=all&label_name[]="
+ (car (gimp-version))))
+)
+
; (define (gimp-online-plug-in-web-site)
; (plug-in-web-browser "https://registry.gimp.org/")
; )
@@ -250,6 +255,17 @@
(script-fu-menu-register "gimp-online-bugs-features"
"<Image>/Help")
+(script-fu-register "gimp-online-bugs-features-version"
+ (string-append _"_Bug Reports and Feature Requests for " (car (gimp-version)))
+ (string-append _"Bookmark to the bugs and features reported for GIMP " (car (gimp-version)))
+ "Michael Schumacher <schumaml gmx de>"
+ "Michael Schumacher <schumaml gmx de>"
+ "2021"
+ ""
+)
+
+(script-fu-menu-register "gimp-online-bugs-features-version"
+ "<Image>/Help")
(script-fu-register "gimp-online-docs-web-site"
_"_User Manual Web Site"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]