[Bug 265559] x11-toolkits/gtksourceview4: Options for docs and the glade catalog

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 02 Aug 2022 07:05:24 UTC

--- Comment #6 from Sean Champ <lab+bsd@thinkum.space> ---
The Glade catalog files already have a 'book' attribute value, in each.

Perhaps the Glade/Devhelp "Read Documentation" quirk might be difficult to work
around with a simple patch. Glade might be using each widget/group name,
independent of the containing scope? If two widgets with a same name though
installed from separate catalogs are being resolved to one devehelp book, it
might not be very well useful to patch any widget names in either catalog.

Maybe a notice could be added to the pkg-message for either or both of
gtksourceview3 and gtksourceview4 with the added glade option, if the issue
itself is not too complex to explain succinctly? 

With the patches and a catalog file rename during stage in the gtksourceview3
port, the catalog files don't conflict at a file level. 

With both catalog files patched and installed, there is at least this quirk
with regards to how the documentation is resolved from  Glade.

There are some slight differences between the gtksourceview3 and gtksourceview4
catalog files. I'm not certain how it could be reflected in the widget API
environment, if both are installed and then used from any source code. 

I can try testing this in Ruby. Assuming that Gtk::Builder would use the same
catalog resolution algorithm as presented in Glade, perhaps it would break the
code too when both catalogs are installed. I wonder Gtk::Builder might simply
use the first catalog it finds, for some named widget?

Perhaps it may be advisable to simply warn the user to not install both

You are receiving this mail because:
You are the assignee for the bug.