Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report for Bug 11367 on
GitHub or Developer Community if you have new
information to add and do not yet see a matching new report.
If the latest results still closely match this report, you can use the
In special cases on GitHub you might also want the comments:
GitHub Markdown with public comments
Created attachment 3685 [details]
The AccelMap.LookupEntry() method does not return a filled in AccelKey upon successful execution. I have attached an example.
Thank you for your bug report.
I've committed a fix to git master (which targets GTK+ 3):
The key parameter must now be passed as an "out" parameter.
I'm not sure this fix can be applied to the gtk-sharp-2.12 branch, as it causes an API change. On the other hand, the method is mostly useless without that change.
FWIW Mike Kestner used to say that API breakage was only acceptable when the previous wrong API would crash or be useless.
It's not breakage is it? Just addition?
Michael, AFAIU, it's not addition, it's a "fixup" entry that makes a method receive a param as "out" instead of default "in".
Ah. Would it be possible to generate both versions?
Yes, via adding it to the corresponding non-autogenerated partial class.
Okay, I think that would be the way to go, plus an [Obsolete] on the broken one.
Agreed. Ideally putting the broken one in the non-autogenerated part, so 2.x and 3.x are in sync in regards to fixups.
(Oh, 2.12.x branch doesn't use partial classes, so it would be just adding it to a .custom file.)