Bug 220331
| Summary: | Gobject-introspection record name="_ContextMenu" gives redefinition errors | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Stefan Salewski <mail> |
| Component: | WebKitGTK | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | bugs-noreply, webkit-bug-importer |
| Priority: | P2 | ||
| Version: | Other | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
Stefan Salewski
I am getting two redefinition errors for webkitgtk-2.30.3.
```
salewski@nuc ~/gintrotest/tests $ grep -A12 "_ContextMenu" /usr/share/gir-1.0/WebKit2WebExtension-4.0.gir
<record name="_ContextMenu" c:type="_WebKitContextMenu">
<source-position filename="webkitgtk-2.30.3/Source/WebKit/UIProcess/API/gtk/WebKitContextMenu.h"
line="48"/>
<field name="parent" writable="1">
<type name="GObject.Object" c:type="GObject"/>
</field>
<field name="priv" writable="1">
<type name="ContextMenuPrivate" c:type="WebKitContextMenuPrivate*"/>
</field>
</record>
<record name="_ContextMenuItem" c:type="_WebKitContextMenuItem">
<source-position filename="webkitgtk-2.30.3/Source/WebKit/UIProcess/API/gtk3/WebKitContextMenuItem.h"
line="49"/>
<field name="parent" writable="1">
<type name="GObject.InitiallyUnowned" c:type="GInitiallyUnowned"/>
</field>
<field name="priv" writable="1">
<type name="ContextMenuItemPrivate"
c:type="WebKitContextMenuItemPrivate*"/>
</field>
</record>
</namespace>
</repository>
salewski@nuc ~/gintrotest/tests $ grep "class name=\"ContextMenu" /usr/share/gir-1.0/WebKit2WebExtension-4.0.gir
<class name="ContextMenu"
<class name="ContextMenuItem"
```
Comment of ebassi Emmanuele Bassi Foundation Staff:
```
Yes, it should be reported to the WebKitGTK issue tracker; the records should be named
ContextMenu and ContextMenuItem, respectively, even though they are just records—opaque
structures for the instance structure of their respective classes. The class is what matters.
```
See
https://discourse.gnome.org/t/webkit2webextension-4-0-gir-contains-record-name-contextmenu/5252
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |