Revert "chore(deps): pin puregotk nil-signal fix"
This reverts commit a161e348e2093172038390b0906448f0ae979a0d.
- commit
- 40378d5e4fd2372d054e49168ab2a6f67aedd0fd
- author
- brice · · 2026-07-14 17:59 UTC
- parent
- 8d647bb
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
905 files · +25263 -27842
M go.mod +1 -1
| @@ -11,7 +11,7 @@ require ( | |||
| 11 | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | |
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | |
| 14 | + | github.com/bnema/puregotk v0.7.0 | |
| 15 | 15 | github.com/charmbracelet/bubbles v1.0.0 | |
| 16 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 17 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -11,7 +11,7 @@ require ( | |||||
| 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | ||
| 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | ||
| 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | ||
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | 14 | + | github.com/bnema/puregotk v0.7.0 |
| 15 | github.com/charmbracelet/bubbles v1.0.0 | 15 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 16 | github.com/charmbracelet/bubbletea v1.3.10 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 17 | github.com/charmbracelet/lipgloss v1.1.0 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | ||
M go.sum +0 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +4 -197 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +0 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +64 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +62 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +29 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +47 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +27 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +25 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +26 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +38 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +37 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +37 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +33 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +38 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +48 -61 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +24 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +17 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +56 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +15 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +44 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +49 -60 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +38 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +33 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +29 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +27 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +39 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +34 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +30 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +21 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +44 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +24 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +28 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +30 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +32 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +87 -123 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +28 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +36 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +51 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +35 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +62 -78 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +22 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +46 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +46 -57 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/cairo/main.go +79 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +25 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +32 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +31 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +28 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +22 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +43 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +41 -53 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +28 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +24 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +1 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +118 -120 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +20 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +36 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +35 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +22 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +35 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmonitor.go +27 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpaintable.go +33 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +26 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +21 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +20 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +40 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +66 -157 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +25 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +16 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +72 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +32 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-core.go +0 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-io.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-loader.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-transform.go +1 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf.go +79 -102 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/main.go +17 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gaction.go +31 -59 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactiongroup.go +39 -96 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactionmap.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gappinfo.go +116 -244 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplication.go +55 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplicationcommandline.go +27 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncinitable.go +22 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncresult.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedinputstream.go +29 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedoutputstream.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbytesicon.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcancellable.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcharsetconverter.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcontenttype.go +26 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverter.go +20 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverterinputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverteroutputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcredentials.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatagrambased.go +30 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatainputstream.go +35 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdataoutputstream.go +23 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusactiongroup.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusaddress.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusauthobserver.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusconnection.go +66 -77 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbuserror.go +18 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterface.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterfaceskeleton.go +24 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusintrospection.go +56 -54 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmenumodel.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmessage.go +64 -88 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmethodinvocation.go +30 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnameowning.go +15 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnamewatching.go +15 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobject.go +17 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanager.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerclient.go +23 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerserver.go +20 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectproxy.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectskeleton.go +18 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusproxy.go +38 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusserver.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusutils.go +22 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontroller.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontrollerdbus.go +14 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdrive.go +82 -214 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsclientconnection.go +24 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsconnection.go +80 -207 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsserverconnection.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblem.go +17 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblemedicon.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfile.go +450 -1148 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileattribute.go +19 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileenumerator.go +35 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileicon.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinfo.go +84 -138 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinputstream.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileiostream.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilemonitor.go +15 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilenamecompleter.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileoutputstream.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilterinputstream.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilteroutputstream.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gicon.go +25 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddress.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddressmask.go +21 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetsocketaddress.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginitable.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginputstream.go +48 -52 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioenums.go +1 -90 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioerror.go +13 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giomodule.go +29 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioscheduler.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giostream.go +29 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giotypes.go +60 -70 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giptosmessage.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gipv6tclassmessage.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/glistmodel.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gliststore.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gloadableicon.go +23 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryinputstream.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemorymonitor.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryoutputstream.go +19 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenu.go +50 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenumodel.go +33 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmount.go +86 -215 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmountoperation.go +32 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativesocketaddress.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativevolumemonitor.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkaddress.go +21 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworking.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkmonitor.go +31 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkservice.go +19 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnotification.go +26 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/goutputstream.go +72 -86 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpermission.go +33 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableinputstream.go +22 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableoutputstream.go +27 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableutils.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpowerprofilemonitor.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpropertyaction.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxy.go +27 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddress.go +21 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddressenumerator.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyresolver.go +27 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gremoteactiongroup.go +15 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresolver.go +67 -75 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresource.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gseekable.go +27 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettings.go +67 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsbackend.go +24 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsschema.go +43 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleaction.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleactiongroup.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleasyncresult.go +40 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleiostream.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimplepermission.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleproxyresolver.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocket.go +72 -87 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddress.go +19 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddressenumerator.go +20 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketclient.go +44 -54 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnectable.go +17 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnection.go +21 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketcontrolmessage.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketlistener.go +25 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketservice.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsrvtarget.go +11 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocess.go +39 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocesslauncher.go +31 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtask.go +52 -70 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpconnection.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpwrapperconnection.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtestdbus.go +22 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthemedicon.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedresolver.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedsocketservice.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsbackend.go +33 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlscertificate.go +29 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsclientconnection.go +29 -55 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsconnection.go +46 -56 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsdatabase.go +48 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsfiledatabase.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsinteraction.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlspassword.go +22 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsserverconnection.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixconnection.go +20 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixcredentialsmessage.go +17 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixfdlist.go +19 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixsocketaddress.go +22 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvfs.go +24 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolume.go +58 -143 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolumemonitor.go +19 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibcompressor.go +18 -9 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibdecompressor.go +15 -3 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/main.go +11 -2 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gallocator.go +28 -32 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/garray.go +59 -82 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gasyncqueue.go +39 -56 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gatomic.go +34 -43 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbacktrace.go +15 -5 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbase64.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbitlock.go +24 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbookmarkfile.go +61 -69 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcache.go +15 -10 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcharset.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gchecksum.go +25 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcompletion.go +17 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gconvert.go +28 -25 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdataset.go +28 -36 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdate.go +65 -103 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdatetime.go +66 -107 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdir.go +19 -12 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/genviron.go +21 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gerror.go +29 -30 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gfileutils.go +38 -45 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ggettext.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghash.go +53 -81 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghmac.go +24 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghook.go +26 -28 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghostutils.go +18 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/giochannel.go +67 -83 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gkeyfile.go +62 -72 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/glib-types.go +12 -4 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/glist.go +11 -2 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmain.go +117 -181 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmappedfile.go +21 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmarkup.go +43 -51 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmem.go +31 -44 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmessages.go +45 -70 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gnode.go +35 -50 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/goption.go +43 -57 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpathbuf.go +24 -26 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpattern.go +23 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpoll.go +13 -3 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gprimes.go +14 -3 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gprintf.go +20 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gqsort.go +15 -5 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gquark.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gqueue.go +52 -84 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grand.go +30 -33 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grcbox.go +27 -29 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grefcount.go +21 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grefstring.go +20 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gregex.go +57 -72 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grel.go +21 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gscanner.go +30 -40 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gsequence.go +49 -74 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gshell.go +16 -5 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gslice.go +21 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gslist.go +11 -2 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gspawn.go +23 -12 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstdio.go +27 -33 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstrfuncs.go +71 -115 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstring.go +51 -77 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstringchunk.go +15 -10 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstrvbuilder.go +22 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtestutils.go +80 -132 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gthread.go +97 -146 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gthreadpool.go +25 -26 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtimer.go +20 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtimezone.go +26 -27 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtrashstack.go +14 -8 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtree.go +45 -63 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtypes.go +12 -4 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gunicode.go +85 -132 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/guri.go +50 -63 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gutils.go +41 -62 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/guuid.go +15 -5 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gvariant-parser.go +14 -3 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gvariant.go +143 -242 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gvarianttype.go +45 -63 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gversion.go +14 -3 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/main.go +28 -31 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gmodule/gmodule.go +18 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gmodule/main.go +11 -2 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gbinding.go +22 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gbindinggroup.go +19 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gboxed.go +13 -6 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gclosure.go +31 -37 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/genums.go +22 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/glib-types.go +11 -2 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gmarshal.go +35 -45 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gobject.go +82 -116 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gparam.go +43 -54 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gparamspecs.go +79 -46 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gsignal.go +50 -79 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gsignalgroup.go +24 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gsourceclosure.go +12 -4 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gtype.go +82 -136
| @@ -5,6 +5,7 @@ import ( | |||
| 5 | 5 | "structs" | |
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | + | "github.com/bnema/purego" | |
| 8 | 9 | "github.com/bnema/puregotk/pkg/core" | |
| 9 | 10 | "github.com/bnema/puregotk/v4/glib" | |
| 10 | 11 | "github.com/bnema/puregotk/v4/gobject/types" | |
| @@ -505,8 +506,6 @@ var xTypeClassAddPrivate func(uintptr, uint) | |||
| 505 | 506 | // | |
| 506 | 507 | // ]| | |
| 507 | 508 | func (x *TypeClass) AddPrivate(PrivateSizeVar uint) { | |
| 508 | - | core.LazyRegister(&xTypeClassAddPrivate, "GOBJECT", "g_type_class_add_private", false) | |
| 509 | - | ||
| 510 | 509 | xTypeClassAddPrivate(x.GoPointer(), PrivateSizeVar) | |
| 511 | 510 | } | |
| 512 | 511 | ||
| @@ -521,8 +520,6 @@ var xTypeClassGetInstancePrivateOffset func(uintptr) int | |||
| 521 | 520 | // You can only call this function after you have registered a private | |
| 522 | 521 | // data area for @g_class using g_type_class_add_private(). | |
| 523 | 522 | func (x *TypeClass) GetInstancePrivateOffset() int { | |
| 524 | - | core.LazyRegister(&xTypeClassGetInstancePrivateOffset, "GOBJECT", "g_type_class_get_instance_private_offset", false) | |
| 525 | - | ||
| 526 | 523 | cret := xTypeClassGetInstancePrivateOffset(x.GoPointer()) | |
| 527 | 524 | return cret | |
| 528 | 525 | } | |
| @@ -530,8 +527,6 @@ func (x *TypeClass) GetInstancePrivateOffset() int { | |||
| 530 | 527 | var xTypeClassGetPrivate func(uintptr, types.GType) uintptr | |
| 531 | 528 | ||
| 532 | 529 | func (x *TypeClass) GetPrivate(PrivateTypeVar types.GType) uintptr { | |
| 533 | - | core.LazyRegister(&xTypeClassGetPrivate, "GOBJECT", "g_type_class_get_private", false) | |
| 534 | - | ||
| 535 | 530 | cret := xTypeClassGetPrivate(x.GoPointer(), PrivateTypeVar) | |
| 536 | 531 | return cret | |
| 537 | 532 | } | |
| @@ -549,8 +544,6 @@ var xTypeClassPeekParent func(uintptr) uintptr | |||
| 549 | 544 | // This function is essentially equivalent to: | |
| 550 | 545 | // g_type_class_peek (g_type_parent (G_TYPE_FROM_CLASS (g_class))) | |
| 551 | 546 | func (x *TypeClass) PeekParent() *TypeClass { | |
| 552 | - | core.LazyRegister(&xTypeClassPeekParent, "GOBJECT", "g_type_class_peek_parent", false) | |
| 553 | - | ||
| 554 | 547 | cret := xTypeClassPeekParent(x.GoPointer()) | |
| 555 | 548 | if cret == 0 { | |
| 556 | 549 | return nil | |
| @@ -566,8 +559,6 @@ var xTypeClassUnref func(uintptr) | |||
| 566 | 559 | // may be finalized by the type system, so further dereferencing of a | |
| 567 | 560 | // class pointer after g_type_class_unref() are invalid. | |
| 568 | 561 | func (x *TypeClass) Unref() { | |
| 569 | - | core.LazyRegister(&xTypeClassUnref, "GOBJECT", "g_type_class_unref", false) | |
| 570 | - | ||
| 571 | 562 | xTypeClassUnref(x.GoPointer()) | |
| 572 | 563 | } | |
| 573 | 564 | ||
| @@ -580,8 +571,6 @@ var xTypeClassUnrefUncached func(uintptr) | |||
| 580 | 571 | // of #GTypeClassCacheFuncs, avoiding the recursion which would occur | |
| 581 | 572 | // otherwise. | |
| 582 | 573 | func (x *TypeClass) UnrefUncached() { | |
| 583 | - | core.LazyRegister(&xTypeClassUnrefUncached, "GOBJECT", "g_type_class_unref_uncached", false) | |
| 584 | - | ||
| 585 | 574 | xTypeClassUnrefUncached(x.GoPointer()) | |
| 586 | 575 | } | |
| 587 | 576 | ||
| @@ -672,8 +661,6 @@ func TypeInstanceNewFromInternalPtr(ptr uintptr) *TypeInstance { | |||
| 672 | 661 | var xTypeInstanceGetPrivate func(uintptr, types.GType) uintptr | |
| 673 | 662 | ||
| 674 | 663 | func (x *TypeInstance) GetPrivate(PrivateTypeVar types.GType) uintptr { | |
| 675 | - | core.LazyRegister(&xTypeInstanceGetPrivate, "GOBJECT", "g_type_instance_get_private", false) | |
| 676 | - | ||
| 677 | 664 | cret := xTypeInstanceGetPrivate(x.GoPointer(), PrivateTypeVar) | |
| 678 | 665 | return cret | |
| 679 | 666 | } | |
| @@ -707,8 +694,6 @@ var xTypeInterfacePeekParent func(uintptr) uintptr | |||
| 707 | 694 | // This is useful when deriving the implementation of an interface from the | |
| 708 | 695 | // parent type and then possibly overriding some methods. | |
| 709 | 696 | func (x *TypeInterface) PeekParent() *TypeInterface { | |
| 710 | - | core.LazyRegister(&xTypeInterfacePeekParent, "GOBJECT", "g_type_interface_peek_parent", false) | |
| 711 | - | ||
| 712 | 697 | cret := xTypeInterfacePeekParent(x.GoPointer()) | |
| 713 | 698 | if cret == 0 { | |
| 714 | 699 | return nil | |
| @@ -883,8 +868,6 @@ var xTypeAddClassCacheFunc func(uintptr, uintptr) | |||
| 883 | 868 | // type, since all classes are routed through the same #GTypeClassCacheFunc | |
| 884 | 869 | // chain. | |
| 885 | 870 | func TypeAddClassCacheFunc(CacheDataVar uintptr, CacheFuncVar *TypeClassCacheFunc) { | |
| 886 | - | core.LazyRegister(&xTypeAddClassCacheFunc, "GOBJECT", "g_type_add_class_cache_func", false) | |
| 887 | - | ||
| 888 | 871 | xTypeAddClassCacheFunc(CacheDataVar, glib.NewCallback(CacheFuncVar)) | |
| 889 | 872 | } | |
| 890 | 873 | ||
| @@ -901,16 +884,12 @@ var xTypeAddClassPrivate func(types.GType, uint) | |||
| 901 | 884 | // The private structure can be retrieved using the | |
| 902 | 885 | // G_TYPE_CLASS_GET_PRIVATE() macro. | |
| 903 | 886 | func TypeAddClassPrivate(ClassTypeVar types.GType, PrivateSizeVar uint) { | |
| 904 | - | core.LazyRegister(&xTypeAddClassPrivate, "GOBJECT", "g_type_add_class_private", false) | |
| 905 | - | ||
| 906 | 887 | xTypeAddClassPrivate(ClassTypeVar, PrivateSizeVar) | |
| 907 | 888 | } | |
| 908 | 889 | ||
| 909 | 890 | var xTypeAddInstancePrivate func(types.GType, uint) int | |
| 910 | 891 | ||
| 911 | 892 | func TypeAddInstancePrivate(ClassTypeVar types.GType, PrivateSizeVar uint) int { | |
| 912 | - | core.LazyRegister(&xTypeAddInstancePrivate, "GOBJECT", "g_type_add_instance_private", false) | |
| 913 | - | ||
| 914 | 893 | cret := xTypeAddInstancePrivate(ClassTypeVar, PrivateSizeVar) | |
| 915 | 894 | return cret | |
| 916 | 895 | } | |
| @@ -927,8 +906,6 @@ var xTypeAddInterfaceCheck func(uintptr, uintptr) | |||
| 927 | 906 | // object implements all of the properties that are defined on its | |
| 928 | 907 | // interfaces. | |
| 929 | 908 | func TypeAddInterfaceCheck(CheckDataVar uintptr, CheckFuncVar *TypeInterfaceCheckFunc) { | |
| 930 | - | core.LazyRegister(&xTypeAddInterfaceCheck, "GOBJECT", "g_type_add_interface_check", false) | |
| 931 | - | ||
| 932 | 909 | xTypeAddInterfaceCheck(CheckDataVar, glib.NewCallback(CheckFuncVar)) | |
| 933 | 910 | } | |
| 934 | 911 | ||
| @@ -938,8 +915,6 @@ var xTypeAddInterfaceDynamic func(types.GType, types.GType, uintptr) | |||
| 938 | 915 | // contained in the #GTypePlugin structure pointed to by @plugin | |
| 939 | 916 | // is used to manage the relationship. | |
| 940 | 917 | func TypeAddInterfaceDynamic(InstanceTypeVar types.GType, InterfaceTypeVar types.GType, PluginVar TypePlugin) { | |
| 941 | - | core.LazyRegister(&xTypeAddInterfaceDynamic, "GOBJECT", "g_type_add_interface_dynamic", false) | |
| 942 | - | ||
| 943 | 918 | xTypeAddInterfaceDynamic(InstanceTypeVar, InterfaceTypeVar, PluginVar.GoPointer()) | |
| 944 | 919 | } | |
| 945 | 920 | ||
| @@ -949,16 +924,12 @@ var xTypeAddInterfaceStatic func(types.GType, types.GType, *InterfaceInfo) | |||
| 949 | 924 | // The information contained in the #GInterfaceInfo structure | |
| 950 | 925 | // pointed to by @info is used to manage the relationship. | |
| 951 | 926 | func TypeAddInterfaceStatic(InstanceTypeVar types.GType, InterfaceTypeVar types.GType, InfoVar *InterfaceInfo) { | |
| 952 | - | core.LazyRegister(&xTypeAddInterfaceStatic, "GOBJECT", "g_type_add_interface_static", false) | |
| 953 | - | ||
| 954 | 927 | xTypeAddInterfaceStatic(InstanceTypeVar, InterfaceTypeVar, InfoVar) | |
| 955 | 928 | } | |
| 956 | 929 | ||
| 957 | 930 | var xTypeCheckClassCast func(*TypeClass, types.GType) uintptr | |
| 958 | 931 | ||
| 959 | 932 | func TypeCheckClassCast(GClassVar *TypeClass, IsATypeVar types.GType) *TypeClass { | |
| 960 | - | core.LazyRegister(&xTypeCheckClassCast, "GOBJECT", "g_type_check_class_cast", false) | |
| 961 | - | ||
| 962 | 933 | cret := xTypeCheckClassCast(GClassVar, IsATypeVar) | |
| 963 | 934 | if cret == 0 { | |
| 964 | 935 | return nil | |
| @@ -969,8 +940,6 @@ func TypeCheckClassCast(GClassVar *TypeClass, IsATypeVar types.GType) *TypeClass | |||
| 969 | 940 | var xTypeCheckClassIsA func(*TypeClass, types.GType) bool | |
| 970 | 941 | ||
| 971 | 942 | func TypeCheckClassIsA(GClassVar *TypeClass, IsATypeVar types.GType) bool { | |
| 972 | - | core.LazyRegister(&xTypeCheckClassIsA, "GOBJECT", "g_type_check_class_is_a", false) | |
| 973 | - | ||
| 974 | 943 | cret := xTypeCheckClassIsA(GClassVar, IsATypeVar) | |
| 975 | 944 | return cret | |
| 976 | 945 | } | |
| @@ -980,8 +949,6 @@ var xTypeCheckInstance func(*TypeInstance) bool | |||
| 980 | 949 | // Private helper function to aid implementation of the | |
| 981 | 950 | // G_TYPE_CHECK_INSTANCE() macro. | |
| 982 | 951 | func TypeCheckInstance(InstanceVar *TypeInstance) bool { | |
| 983 | - | core.LazyRegister(&xTypeCheckInstance, "GOBJECT", "g_type_check_instance", false) | |
| 984 | - | ||
| 985 | 952 | cret := xTypeCheckInstance(InstanceVar) | |
| 986 | 953 | return cret | |
| 987 | 954 | } | |
| @@ -989,8 +956,6 @@ func TypeCheckInstance(InstanceVar *TypeInstance) bool { | |||
| 989 | 956 | var xTypeCheckInstanceCast func(*TypeInstance, types.GType) uintptr | |
| 990 | 957 | ||
| 991 | 958 | func TypeCheckInstanceCast(InstanceVar *TypeInstance, IfaceTypeVar types.GType) *TypeInstance { | |
| 992 | - | core.LazyRegister(&xTypeCheckInstanceCast, "GOBJECT", "g_type_check_instance_cast", false) | |
| 993 | - | ||
| 994 | 959 | cret := xTypeCheckInstanceCast(InstanceVar, IfaceTypeVar) | |
| 995 | 960 | if cret == 0 { | |
| 996 | 961 | return nil | |
| @@ -1001,8 +966,6 @@ func TypeCheckInstanceCast(InstanceVar *TypeInstance, IfaceTypeVar types.GType) | |||
| 1001 | 966 | var xTypeCheckInstanceIsA func(*TypeInstance, types.GType) bool | |
| 1002 | 967 | ||
| 1003 | 968 | func TypeCheckInstanceIsA(InstanceVar *TypeInstance, IfaceTypeVar types.GType) bool { | |
| 1004 | - | core.LazyRegister(&xTypeCheckInstanceIsA, "GOBJECT", "g_type_check_instance_is_a", false) | |
| 1005 | - | ||
| 1006 | 969 | cret := xTypeCheckInstanceIsA(InstanceVar, IfaceTypeVar) | |
| 1007 | 970 | return cret | |
| 1008 | 971 | } | |
| @@ -1010,8 +973,6 @@ func TypeCheckInstanceIsA(InstanceVar *TypeInstance, IfaceTypeVar types.GType) b | |||
| 1010 | 973 | var xTypeCheckInstanceIsFundamentallyA func(*TypeInstance, types.GType) bool | |
| 1011 | 974 | ||
| 1012 | 975 | func TypeCheckInstanceIsFundamentallyA(InstanceVar *TypeInstance, FundamentalTypeVar types.GType) bool { | |
| 1013 | - | core.LazyRegister(&xTypeCheckInstanceIsFundamentallyA, "GOBJECT", "g_type_check_instance_is_fundamentally_a", false) | |
| 1014 | - | ||
| 1015 | 976 | cret := xTypeCheckInstanceIsFundamentallyA(InstanceVar, FundamentalTypeVar) | |
| 1016 | 977 | return cret | |
| 1017 | 978 | } | |
| @@ -1019,8 +980,6 @@ func TypeCheckInstanceIsFundamentallyA(InstanceVar *TypeInstance, FundamentalTyp | |||
| 1019 | 980 | var xTypeCheckIsValueType func(types.GType) bool | |
| 1020 | 981 | ||
| 1021 | 982 | func TypeCheckIsValueType(TypeVar types.GType) bool { | |
| 1022 | - | core.LazyRegister(&xTypeCheckIsValueType, "GOBJECT", "g_type_check_is_value_type", false) | |
| 1023 | - | ||
| 1024 | 983 | cret := xTypeCheckIsValueType(TypeVar) | |
| 1025 | 984 | return cret | |
| 1026 | 985 | } | |
| @@ -1028,8 +987,6 @@ func TypeCheckIsValueType(TypeVar types.GType) bool { | |||
| 1028 | 987 | var xTypeCheckValue func(*Value) bool | |
| 1029 | 988 | ||
| 1030 | 989 | func TypeCheckValue(ValueVar *Value) bool { | |
| 1031 | - | core.LazyRegister(&xTypeCheckValue, "GOBJECT", "g_type_check_value", false) | |
| 1032 | - | ||
| 1033 | 990 | cret := xTypeCheckValue(ValueVar) | |
| 1034 | 991 | return cret | |
| 1035 | 992 | } | |
| @@ -1037,8 +994,6 @@ func TypeCheckValue(ValueVar *Value) bool { | |||
| 1037 | 994 | var xTypeCheckValueHolds func(*Value, types.GType) bool | |
| 1038 | 995 | ||
| 1039 | 996 | func TypeCheckValueHolds(ValueVar *Value, TypeVar types.GType) bool { | |
| 1040 | - | core.LazyRegister(&xTypeCheckValueHolds, "GOBJECT", "g_type_check_value_holds", false) | |
| 1041 | - | ||
| 1042 | 997 | cret := xTypeCheckValueHolds(ValueVar, TypeVar) | |
| 1043 | 998 | return cret | |
| 1044 | 999 | } | |
| @@ -1048,8 +1003,6 @@ var xTypeChildren func(types.GType, *uint) uintptr | |||
| 1048 | 1003 | // Return a newly allocated and 0-terminated array of type IDs, listing | |
| 1049 | 1004 | // the child types of @type. | |
| 1050 | 1005 | func TypeChildren(TypeVar types.GType, NChildrenVar *uint) uintptr { | |
| 1051 | - | core.LazyRegister(&xTypeChildren, "GOBJECT", "g_type_children", false) | |
| 1052 | - | ||
| 1053 | 1006 | cret := xTypeChildren(TypeVar, NChildrenVar) | |
| 1054 | 1007 | return cret | |
| 1055 | 1008 | } | |
| @@ -1057,8 +1010,6 @@ func TypeChildren(TypeVar types.GType, NChildrenVar *uint) uintptr { | |||
| 1057 | 1010 | var xTypeClassAdjustPrivateOffset func(uintptr, int) | |
| 1058 | 1011 | ||
| 1059 | 1012 | func TypeClassAdjustPrivateOffset(GClassVar uintptr, PrivateSizeOrOffsetVar int) { | |
| 1060 | - | core.LazyRegister(&xTypeClassAdjustPrivateOffset, "GOBJECT", "g_type_class_adjust_private_offset", false) | |
| 1061 | - | ||
| 1062 | 1013 | xTypeClassAdjustPrivateOffset(GClassVar, PrivateSizeOrOffsetVar) | |
| 1063 | 1014 | } | |
| 1064 | 1015 | ||
| @@ -1071,8 +1022,6 @@ var xTypeClassGet func(types.GType) uintptr | |||
| 1071 | 1022 | // | |
| 1072 | 1023 | // If you don't want to create the class, use g_type_class_peek() instead. | |
| 1073 | 1024 | func TypeClassGet(TypeVar types.GType) *TypeClass { | |
| 1074 | - | core.LazyRegister(&xTypeClassGet, "GOBJECT", "g_type_class_get", false) | |
| 1075 | - | ||
| 1076 | 1025 | cret := xTypeClassGet(TypeVar) | |
| 1077 | 1026 | if cret == 0 { | |
| 1078 | 1027 | return nil | |
| @@ -1091,8 +1040,6 @@ var xTypeClassPeek func(types.GType) uintptr | |||
| 1091 | 1040 | // of the type passed in does not currently exist (hasn't been | |
| 1092 | 1041 | // referenced before). | |
| 1093 | 1042 | func TypeClassPeek(TypeVar types.GType) *TypeClass { | |
| 1094 | - | core.LazyRegister(&xTypeClassPeek, "GOBJECT", "g_type_class_peek", false) | |
| 1095 | - | ||
| 1096 | 1043 | cret := xTypeClassPeek(TypeVar) | |
| 1097 | 1044 | if cret == 0 { | |
| 1098 | 1045 | return nil | |
| @@ -1105,8 +1052,6 @@ var xTypeClassPeekStatic func(types.GType) uintptr | |||
| 1105 | 1052 | // A more efficient version of g_type_class_peek() which works only for | |
| 1106 | 1053 | // static types. | |
| 1107 | 1054 | func TypeClassPeekStatic(TypeVar types.GType) *TypeClass { | |
| 1108 | - | core.LazyRegister(&xTypeClassPeekStatic, "GOBJECT", "g_type_class_peek_static", false) | |
| 1109 | - | ||
| 1110 | 1055 | cret := xTypeClassPeekStatic(TypeVar) | |
| 1111 | 1056 | if cret == 0 { | |
| 1112 | 1057 | return nil | |
| @@ -1121,8 +1066,6 @@ var xTypeClassRef func(types.GType) uintptr | |||
| 1121 | 1066 | // | |
| 1122 | 1067 | // This function will demand-create the class if it doesn't exist already. | |
| 1123 | 1068 | func TypeClassRef(TypeVar types.GType) *TypeClass { | |
| 1124 | - | core.LazyRegister(&xTypeClassRef, "GOBJECT", "g_type_class_ref", false) | |
| 1125 | - | ||
| 1126 | 1069 | cret := xTypeClassRef(TypeVar) | |
| 1127 | 1070 | if cret == 0 { | |
| 1128 | 1071 | return nil | |
| @@ -1149,8 +1092,6 @@ var xTypeCreateInstance func(types.GType) uintptr | |||
| 1149 | 1092 | // fundamental type. Also language bindings should not use this | |
| 1150 | 1093 | // function, but g_object_new() instead. | |
| 1151 | 1094 | func TypeCreateInstance(TypeVar types.GType) *TypeInstance { | |
| 1152 | - | core.LazyRegister(&xTypeCreateInstance, "GOBJECT", "g_type_create_instance", false) | |
| 1153 | - | ||
| 1154 | 1095 | cret := xTypeCreateInstance(TypeVar) | |
| 1155 | 1096 | if cret == 0 { | |
| 1156 | 1097 | return nil | |
| @@ -1174,8 +1115,6 @@ var xTypeDefaultInterfaceGet func(types.GType) uintptr | |||
| 1174 | 1115 | // want to make sure that signals and properties for an interface | |
| 1175 | 1116 | // have been installed. | |
| 1176 | 1117 | func TypeDefaultInterfaceGet(GTypeVar types.GType) *TypeInterface { | |
| 1177 | - | core.LazyRegister(&xTypeDefaultInterfaceGet, "GOBJECT", "g_type_default_interface_get", false) | |
| 1178 | - | ||
| 1179 | 1118 | cret := xTypeDefaultInterfaceGet(GTypeVar) | |
| 1180 | 1119 | if cret == 0 { | |
| 1181 | 1120 | return nil | |
| @@ -1188,8 +1127,6 @@ var xTypeDefaultInterfacePeek func(types.GType) uintptr | |||
| 1188 | 1127 | // If the interface type @g_type is currently in use, returns its | |
| 1189 | 1128 | // default interface vtable. | |
| 1190 | 1129 | func TypeDefaultInterfacePeek(GTypeVar types.GType) *TypeInterface { | |
| 1191 | - | core.LazyRegister(&xTypeDefaultInterfacePeek, "GOBJECT", "g_type_default_interface_peek", false) | |
| 1192 | - | ||
| 1193 | 1130 | cret := xTypeDefaultInterfacePeek(GTypeVar) | |
| 1194 | 1131 | if cret == 0 { | |
| 1195 | 1132 | return nil | |
| @@ -1210,8 +1147,6 @@ var xTypeDefaultInterfaceRef func(types.GType) uintptr | |||
| 1210 | 1147 | // want to make sure that signals and properties for an interface | |
| 1211 | 1148 | // have been installed. | |
| 1212 | 1149 | func TypeDefaultInterfaceRef(GTypeVar types.GType) *TypeInterface { | |
| 1213 | - | core.LazyRegister(&xTypeDefaultInterfaceRef, "GOBJECT", "g_type_default_interface_ref", false) | |
| 1214 | - | ||
| 1215 | 1150 | cret := xTypeDefaultInterfaceRef(GTypeVar) | |
| 1216 | 1151 | if cret == 0 { | |
| 1217 | 1152 | return nil | |
| @@ -1228,8 +1163,6 @@ var xTypeDefaultInterfaceUnref func(*TypeInterface) | |||
| 1228 | 1163 | // references have been released, the finalize function for the interface's | |
| 1229 | 1164 | // default vtable (the @class_finalize member of #GTypeInfo) will be called. | |
| 1230 | 1165 | func TypeDefaultInterfaceUnref(GIfaceVar *TypeInterface) { | |
| 1231 | - | core.LazyRegister(&xTypeDefaultInterfaceUnref, "GOBJECT", "g_type_default_interface_unref", false) | |
| 1232 | - | ||
| 1233 | 1166 | xTypeDefaultInterfaceUnref(GIfaceVar) | |
| 1234 | 1167 | } | |
| 1235 | 1168 | ||
| @@ -1238,8 +1171,6 @@ var xTypeDepth func(types.GType) uint | |||
| 1238 | 1171 | // Returns the length of the ancestry of the passed in type. This | |
| 1239 | 1172 | // includes the type itself, so that e.g. a fundamental type has depth 1. | |
| 1240 | 1173 | func TypeDepth(TypeVar types.GType) uint { | |
| 1241 | - | core.LazyRegister(&xTypeDepth, "GOBJECT", "g_type_depth", false) | |
| 1242 | - | ||
| 1243 | 1174 | cret := xTypeDepth(TypeVar) | |
| 1244 | 1175 | return cret | |
| 1245 | 1176 | } | |
| @@ -1259,8 +1190,6 @@ var xTypeEnsure func(types.GType) | |||
| 1259 | 1190 | // out by the compiler. Using g_type_ensure() guarantees that the | |
| 1260 | 1191 | // type's _get_type() method is called. | |
| 1261 | 1192 | func TypeEnsure(TypeVar types.GType) { | |
| 1262 | - | core.LazyRegister(&xTypeEnsure, "GOBJECT", "g_type_ensure", false) | |
| 1263 | - | ||
| 1264 | 1193 | xTypeEnsure(TypeVar) | |
| 1265 | 1194 | } | |
| 1266 | 1195 | ||
| @@ -1272,8 +1201,6 @@ var xTypeFreeInstance func(*TypeInstance) | |||
| 1272 | 1201 | // Like g_type_create_instance(), this function is reserved for | |
| 1273 | 1202 | // implementors of fundamental types. | |
| 1274 | 1203 | func TypeFreeInstance(InstanceVar *TypeInstance) { | |
| 1275 | - | core.LazyRegister(&xTypeFreeInstance, "GOBJECT", "g_type_free_instance", false) | |
| 1276 | - | ||
| 1277 | 1204 | xTypeFreeInstance(InstanceVar) | |
| 1278 | 1205 | } | |
| 1279 | 1206 | ||
| @@ -1284,8 +1211,6 @@ var xTypeFromName func(string) types.GType | |||
| 1284 | 1211 | // to find out by name whether a specific type has been registered | |
| 1285 | 1212 | // yet). | |
| 1286 | 1213 | func TypeFromName(NameVar string) types.GType { | |
| 1287 | - | core.LazyRegister(&xTypeFromName, "GOBJECT", "g_type_from_name", false) | |
| 1288 | - | ||
| 1289 | 1214 | cret := xTypeFromName(NameVar) | |
| 1290 | 1215 | return cret | |
| 1291 | 1216 | } | |
| @@ -1295,8 +1220,6 @@ var xTypeFundamental func(types.GType) types.GType | |||
| 1295 | 1220 | // Internal function, used to extract the fundamental type ID portion. | |
| 1296 | 1221 | // Use G_TYPE_FUNDAMENTAL() instead. | |
| 1297 | 1222 | func TypeFundamental(TypeIdVar types.GType) types.GType { | |
| 1298 | - | core.LazyRegister(&xTypeFundamental, "GOBJECT", "g_type_fundamental", false) | |
| 1299 | - | ||
| 1300 | 1223 | cret := xTypeFundamental(TypeIdVar) | |
| 1301 | 1224 | return cret | |
| 1302 | 1225 | } | |
| @@ -1308,8 +1231,6 @@ var xTypeFundamentalNext func() types.GType | |||
| 1308 | 1231 | // The returned type ID represents the highest currently registered | |
| 1309 | 1232 | // fundamental type identifier. | |
| 1310 | 1233 | func TypeFundamentalNext() types.GType { | |
| 1311 | - | core.LazyRegister(&xTypeFundamentalNext, "GOBJECT", "g_type_fundamental_next", false) | |
| 1312 | - | ||
| 1313 | 1234 | cret := xTypeFundamentalNext() | |
| 1314 | 1235 | return cret | |
| 1315 | 1236 | } | |
| @@ -1321,8 +1242,6 @@ var xTypeGetInstanceCount func(types.GType) int | |||
| 1321 | 1242 | // the `instance-count` debug flag is set (by setting the `GOBJECT_DEBUG` | |
| 1322 | 1243 | // variable to include `instance-count`). | |
| 1323 | 1244 | func TypeGetInstanceCount(TypeVar types.GType) int { | |
| 1324 | - | core.LazyRegister(&xTypeGetInstanceCount, "GOBJECT", "g_type_get_instance_count", false) | |
| 1325 | - | ||
| 1326 | 1245 | cret := xTypeGetInstanceCount(TypeVar) | |
| 1327 | 1246 | return cret | |
| 1328 | 1247 | } | |
| @@ -1331,7 +1250,6 @@ var xTypeGetPlugin func(types.GType) uintptr | |||
| 1331 | 1250 | ||
| 1332 | 1251 | // Returns the #GTypePlugin structure for @type. | |
| 1333 | 1252 | func TypeGetPlugin(TypeVar types.GType) *TypePluginBase { | |
| 1334 | - | core.LazyRegister(&xTypeGetPlugin, "GOBJECT", "g_type_get_plugin", false) | |
| 1335 | 1253 | var cls *TypePluginBase | |
| 1336 | 1254 | ||
| 1337 | 1255 | cret := xTypeGetPlugin(TypeVar) | |
| @@ -1354,8 +1272,6 @@ var xTypeGetQdata func(types.GType, glib.Quark) uintptr | |||
| 1354 | 1272 | // attached to one type with g_type_set_qdata() cannot | |
| 1355 | 1273 | // be retrieved from a subtype using g_type_get_qdata(). | |
| 1356 | 1274 | func TypeGetQdata(TypeVar types.GType, QuarkVar glib.Quark) uintptr { | |
| 1357 | - | core.LazyRegister(&xTypeGetQdata, "GOBJECT", "g_type_get_qdata", false) | |
| 1358 | - | ||
| 1359 | 1275 | cret := xTypeGetQdata(TypeVar, QuarkVar) | |
| 1360 | 1276 | return cret | |
| 1361 | 1277 | } | |
| @@ -1368,8 +1284,6 @@ var xTypeGetTypeRegistrationSerial func() uint | |||
| 1368 | 1284 | // g_type_from_name()) and know if the cache is still valid at a later | |
| 1369 | 1285 | // time by comparing the current serial with the one at the type lookup. | |
| 1370 | 1286 | func TypeGetTypeRegistrationSerial() uint { | |
| 1371 | - | core.LazyRegister(&xTypeGetTypeRegistrationSerial, "GOBJECT", "g_type_get_type_registration_serial", false) | |
| 1372 | - | ||
| 1373 | 1287 | cret := xTypeGetTypeRegistrationSerial() | |
| 1374 | 1288 | return cret | |
| 1375 | 1289 | } | |
| @@ -1380,8 +1294,6 @@ var xTypeInit func() | |||
| 1380 | 1294 | // the type system is initialised automatically and this function does | |
| 1381 | 1295 | // nothing. | |
| 1382 | 1296 | func TypeInit() { | |
| 1383 | - | core.LazyRegister(&xTypeInit, "GOBJECT", "g_type_init", false) | |
| 1384 | - | ||
| 1385 | 1297 | xTypeInit() | |
| 1386 | 1298 | } | |
| 1387 | 1299 | ||
| @@ -1394,8 +1306,6 @@ var xTypeInitWithDebugFlags func(TypeDebugFlags) | |||
| 1394 | 1306 | // If you need to enable debugging features, use the `GOBJECT_DEBUG` | |
| 1395 | 1307 | // environment variable. | |
| 1396 | 1308 | func TypeInitWithDebugFlags(DebugFlagsVar TypeDebugFlags) { | |
| 1397 | - | core.LazyRegister(&xTypeInitWithDebugFlags, "GOBJECT", "g_type_init_with_debug_flags", false) | |
| 1398 | - | ||
| 1399 | 1309 | xTypeInitWithDebugFlags(DebugFlagsVar) | |
| 1400 | 1310 | } | |
| 1401 | 1311 | ||
| @@ -1407,8 +1317,6 @@ var xTypeInterfaceAddPrerequisite func(types.GType, types.GType) | |||
| 1407 | 1317 | // interface derivation (which GType doesn't support). An interface can have | |
| 1408 | 1318 | // at most one instantiatable prerequisite type. | |
| 1409 | 1319 | func TypeInterfaceAddPrerequisite(InterfaceTypeVar types.GType, PrerequisiteTypeVar types.GType) { | |
| 1410 | - | core.LazyRegister(&xTypeInterfaceAddPrerequisite, "GOBJECT", "g_type_interface_add_prerequisite", false) | |
| 1411 | - | ||
| 1412 | 1320 | xTypeInterfaceAddPrerequisite(InterfaceTypeVar, PrerequisiteTypeVar) | |
| 1413 | 1321 | } | |
| 1414 | 1322 | ||
| @@ -1419,7 +1327,6 @@ var xTypeInterfaceGetPlugin func(types.GType, types.GType) uintptr | |||
| 1419 | 1327 | // if @interface_type has not been added to @instance_type or does | |
| 1420 | 1328 | // not have a #GTypePlugin structure. See g_type_add_interface_dynamic(). | |
| 1421 | 1329 | func TypeInterfaceGetPlugin(InstanceTypeVar types.GType, InterfaceTypeVar types.GType) *TypePluginBase { | |
| 1422 | - | core.LazyRegister(&xTypeInterfaceGetPlugin, "GOBJECT", "g_type_interface_get_plugin", false) | |
| 1423 | 1330 | var cls *TypePluginBase | |
| 1424 | 1331 | ||
| 1425 | 1332 | cret := xTypeInterfaceGetPlugin(InstanceTypeVar, InterfaceTypeVar) | |
| @@ -1442,8 +1349,6 @@ var xTypeInterfaceInstantiatablePrerequisite func(types.GType) types.GType | |||
| 1442 | 1349 | // See g_type_interface_add_prerequisite() for more information | |
| 1443 | 1350 | // about prerequisites. | |
| 1444 | 1351 | func TypeInterfaceInstantiatablePrerequisite(InterfaceTypeVar types.GType) types.GType { | |
| 1445 | - | core.LazyRegister(&xTypeInterfaceInstantiatablePrerequisite, "GOBJECT", "g_type_interface_instantiatable_prerequisite", false) | |
| 1446 | - | ||
| 1447 | 1352 | cret := xTypeInterfaceInstantiatablePrerequisite(InterfaceTypeVar) | |
| 1448 | 1353 | return cret | |
| 1449 | 1354 | } | |
| @@ -1453,8 +1358,6 @@ var xTypeInterfacePeek func(*TypeClass, types.GType) uintptr | |||
| 1453 | 1358 | // Returns the #GTypeInterface structure of an interface to which the | |
| 1454 | 1359 | // passed in class conforms. | |
| 1455 | 1360 | func TypeInterfacePeek(InstanceClassVar *TypeClass, IfaceTypeVar types.GType) *TypeInterface { | |
| 1456 | - | core.LazyRegister(&xTypeInterfacePeek, "GOBJECT", "g_type_interface_peek", false) | |
| 1457 | - | ||
| 1458 | 1361 | cret := xTypeInterfacePeek(InstanceClassVar, IfaceTypeVar) | |
| 1459 | 1362 | if cret == 0 { | |
| 1460 | 1363 | return nil | |
| @@ -1466,8 +1369,6 @@ var xTypeInterfacePrerequisites func(types.GType, *uint) uintptr | |||
| 1466 | 1369 | ||
| 1467 | 1370 | // Returns the prerequisites of an interfaces type. | |
| 1468 | 1371 | func TypeInterfacePrerequisites(InterfaceTypeVar types.GType, NPrerequisitesVar *uint) uintptr { | |
| 1469 | - | core.LazyRegister(&xTypeInterfacePrerequisites, "GOBJECT", "g_type_interface_prerequisites", false) | |
| 1470 | - | ||
| 1471 | 1372 | cret := xTypeInterfacePrerequisites(InterfaceTypeVar, NPrerequisitesVar) | |
| 1472 | 1373 | return cret | |
| 1473 | 1374 | } | |
| @@ -1477,8 +1378,6 @@ var xTypeInterfaces func(types.GType, *uint) uintptr | |||
| 1477 | 1378 | // Return a newly allocated and 0-terminated array of type IDs, listing | |
| 1478 | 1379 | // the interface types that @type conforms to. | |
| 1479 | 1380 | func TypeInterfaces(TypeVar types.GType, NInterfacesVar *uint) uintptr { | |
| 1480 | - | core.LazyRegister(&xTypeInterfaces, "GOBJECT", "g_type_interfaces", false) | |
| 1481 | - | ||
| 1482 | 1381 | cret := xTypeInterfaces(TypeVar, NInterfacesVar) | |
| 1483 | 1382 | return cret | |
| 1484 | 1383 | } | |
| @@ -1489,8 +1388,6 @@ var xTypeIsA func(types.GType, types.GType) bool | |||
| 1489 | 1388 | // descendant of @is_a_type. If @is_a_type is an interface, check | |
| 1490 | 1389 | // whether @type conforms to it. | |
| 1491 | 1390 | func TypeIsA(TypeVar types.GType, IsATypeVar types.GType) bool { | |
| 1492 | - | core.LazyRegister(&xTypeIsA, "GOBJECT", "g_type_is_a", false) | |
| 1493 | - | ||
| 1494 | 1391 | cret := xTypeIsA(TypeVar, IsATypeVar) | |
| 1495 | 1392 | return cret | |
| 1496 | 1393 | } | |
| @@ -1504,8 +1401,6 @@ var xTypeName func(types.GType) string | |||
| 1504 | 1401 | // may be any other validly registered type ID, but randomized type IDs | |
| 1505 | 1402 | // should not be passed in and will most likely lead to a crash. | |
| 1506 | 1403 | func TypeName(TypeVar types.GType) string { | |
| 1507 | - | core.LazyRegister(&xTypeName, "GOBJECT", "g_type_name", false) | |
| 1508 | - | ||
| 1509 | 1404 | cret := xTypeName(TypeVar) | |
| 1510 | 1405 | return cret | |
| 1511 | 1406 | } | |
| @@ -1513,8 +1408,6 @@ func TypeName(TypeVar types.GType) string { | |||
| 1513 | 1408 | var xTypeNameFromClass func(*TypeClass) string | |
| 1514 | 1409 | ||
| 1515 | 1410 | func TypeNameFromClass(GClassVar *TypeClass) string { | |
| 1516 | - | core.LazyRegister(&xTypeNameFromClass, "GOBJECT", "g_type_name_from_class", false) | |
| 1517 | - | ||
| 1518 | 1411 | cret := xTypeNameFromClass(GClassVar) | |
| 1519 | 1412 | return cret | |
| 1520 | 1413 | } | |
| @@ -1522,8 +1415,6 @@ func TypeNameFromClass(GClassVar *TypeClass) string { | |||
| 1522 | 1415 | var xTypeNameFromInstance func(*TypeInstance) string | |
| 1523 | 1416 | ||
| 1524 | 1417 | func TypeNameFromInstance(InstanceVar *TypeInstance) string { | |
| 1525 | - | core.LazyRegister(&xTypeNameFromInstance, "GOBJECT", "g_type_name_from_instance", false) | |
| 1526 | - | ||
| 1527 | 1418 | cret := xTypeNameFromInstance(InstanceVar) | |
| 1528 | 1419 | return cret | |
| 1529 | 1420 | } | |
| @@ -1538,8 +1429,6 @@ var xTypeNextBase func(types.GType, types.GType) types.GType | |||
| 1538 | 1429 | // be used to determine the types and order in which the leaf type is | |
| 1539 | 1430 | // descended from the root type. | |
| 1540 | 1431 | func TypeNextBase(LeafTypeVar types.GType, RootTypeVar types.GType) types.GType { | |
| 1541 | - | core.LazyRegister(&xTypeNextBase, "GOBJECT", "g_type_next_base", false) | |
| 1542 | - | ||
| 1543 | 1432 | cret := xTypeNextBase(LeafTypeVar, RootTypeVar) | |
| 1544 | 1433 | return cret | |
| 1545 | 1434 | } | |
| @@ -1549,8 +1438,6 @@ var xTypeParent func(types.GType) types.GType | |||
| 1549 | 1438 | // Return the direct parent type of the passed in type. If the passed | |
| 1550 | 1439 | // in type has no parent, i.e. is a fundamental type, 0 is returned. | |
| 1551 | 1440 | func TypeParent(TypeVar types.GType) types.GType { | |
| 1552 | - | core.LazyRegister(&xTypeParent, "GOBJECT", "g_type_parent", false) | |
| 1553 | - | ||
| 1554 | 1441 | cret := xTypeParent(TypeVar) | |
| 1555 | 1442 | return cret | |
| 1556 | 1443 | } | |
| @@ -1559,8 +1446,6 @@ var xTypeQname func(types.GType) glib.Quark | |||
| 1559 | 1446 | ||
| 1560 | 1447 | // Get the corresponding quark of the type IDs name. | |
| 1561 | 1448 | func TypeQname(TypeVar types.GType) glib.Quark { | |
| 1562 | - | core.LazyRegister(&xTypeQname, "GOBJECT", "g_type_qname", false) | |
| 1563 | - | ||
| 1564 | 1449 | cret := xTypeQname(TypeVar) | |
| 1565 | 1450 | return cret | |
| 1566 | 1451 | } | |
| @@ -1578,8 +1463,6 @@ var xNewTypeQuery func(types.GType, *TypeQuery) | |||
| 1578 | 1463 | // Since GLib 2.78, this function allows queries on dynamic types. Previously | |
| 1579 | 1464 | // it only supported static types. | |
| 1580 | 1465 | func NewTypeQuery(TypeVar types.GType, QueryVar *TypeQuery) { | |
| 1581 | - | core.LazyRegister(&xNewTypeQuery, "GOBJECT", "g_type_query", false) | |
| 1582 | - | ||
| 1583 | 1466 | xNewTypeQuery(TypeVar, QueryVar) | |
| 1584 | 1467 | } | |
| 1585 | 1468 | ||
| @@ -1591,8 +1474,6 @@ var xTypeRegisterDynamic func(types.GType, string, uintptr, TypeFlags) types.GTy | |||
| 1591 | 1474 | // instances (if not abstract). The value of @flags determines the nature | |
| 1592 | 1475 | // (e.g. abstract or not) of the type. | |
| 1593 | 1476 | func TypeRegisterDynamic(ParentTypeVar types.GType, TypeNameVar string, PluginVar TypePlugin, FlagsVar TypeFlags) types.GType { | |
| 1594 | - | core.LazyRegister(&xTypeRegisterDynamic, "GOBJECT", "g_type_register_dynamic", false) | |
| 1595 | - | ||
| 1596 | 1477 | cret := xTypeRegisterDynamic(ParentTypeVar, TypeNameVar, PluginVar.GoPointer(), FlagsVar) | |
| 1597 | 1478 | return cret | |
| 1598 | 1479 | } | |
| @@ -1607,8 +1488,6 @@ var xTypeRegisterFundamental func(types.GType, string, *TypeInfo, *TypeFundament | |||
| 1607 | 1488 | // @finfo to manage the type and its instances. The value of @flags determines | |
| 1608 | 1489 | // additional characteristics of the fundamental type. | |
| 1609 | 1490 | func TypeRegisterFundamental(TypeIdVar types.GType, TypeNameVar string, InfoVar *TypeInfo, FinfoVar *TypeFundamentalInfo, FlagsVar TypeFlags) types.GType { | |
| 1610 | - | core.LazyRegister(&xTypeRegisterFundamental, "GOBJECT", "g_type_register_fundamental", false) | |
| 1611 | - | ||
| 1612 | 1491 | cret := xTypeRegisterFundamental(TypeIdVar, TypeNameVar, InfoVar, FinfoVar, FlagsVar) | |
| 1613 | 1492 | return cret | |
| 1614 | 1493 | } | |
| @@ -1621,8 +1500,6 @@ var xTypeRegisterStatic func(types.GType, string, *TypeInfo, TypeFlags) types.GT | |||
| 1621 | 1500 | // instances (if not abstract). The value of @flags determines the nature | |
| 1622 | 1501 | // (e.g. abstract or not) of the type. | |
| 1623 | 1502 | func TypeRegisterStatic(ParentTypeVar types.GType, TypeNameVar string, InfoVar *TypeInfo, FlagsVar TypeFlags) types.GType { | |
| 1624 | - | core.LazyRegister(&xTypeRegisterStatic, "GOBJECT", "g_type_register_static", false) | |
| 1625 | - | ||
| 1626 | 1503 | cret := xTypeRegisterStatic(ParentTypeVar, TypeNameVar, InfoVar, FlagsVar) | |
| 1627 | 1504 | return cret | |
| 1628 | 1505 | } | |
| @@ -1634,8 +1511,6 @@ var xTypeRegisterStaticSimple func(types.GType, string, uint, uintptr, uint, uin | |||
| 1634 | 1511 | // abstract or not) of the type. It works by filling a #GTypeInfo | |
| 1635 | 1512 | // struct and calling g_type_register_static(). | |
| 1636 | 1513 | func TypeRegisterStaticSimple(ParentTypeVar types.GType, TypeNameVar string, ClassSizeVar uint, ClassInitVar *ClassInitFunc, InstanceSizeVar uint, InstanceInitVar *InstanceInitFunc, FlagsVar TypeFlags) types.GType { | |
| 1637 | - | core.LazyRegister(&xTypeRegisterStaticSimple, "GOBJECT", "g_type_register_static_simple", false) | |
| 1638 | - | ||
| 1639 | 1514 | cret := xTypeRegisterStaticSimple(ParentTypeVar, TypeNameVar, ClassSizeVar, glib.NewCallback(ClassInitVar), InstanceSizeVar, glib.NewCallback(InstanceInitVar), FlagsVar) | |
| 1640 | 1515 | return cret | |
| 1641 | 1516 | } | |
| @@ -1646,8 +1521,6 @@ var xTypeRemoveClassCacheFunc func(uintptr, uintptr) | |||
| 1646 | 1521 | // maintained by @cache_func has to be empty when calling | |
| 1647 | 1522 | // g_type_remove_class_cache_func() to avoid leaks. | |
| 1648 | 1523 | func TypeRemoveClassCacheFunc(CacheDataVar uintptr, CacheFuncVar *TypeClassCacheFunc) { | |
| 1649 | - | core.LazyRegister(&xTypeRemoveClassCacheFunc, "GOBJECT", "g_type_remove_class_cache_func", false) | |
| 1650 | - | ||
| 1651 | 1524 | xTypeRemoveClassCacheFunc(CacheDataVar, glib.NewCallback(CacheFuncVar)) | |
| 1652 | 1525 | } | |
| 1653 | 1526 | ||
| @@ -1656,8 +1529,6 @@ var xTypeRemoveInterfaceCheck func(uintptr, uintptr) | |||
| 1656 | 1529 | // Removes an interface check function added with | |
| 1657 | 1530 | // g_type_add_interface_check(). | |
| 1658 | 1531 | func TypeRemoveInterfaceCheck(CheckDataVar uintptr, CheckFuncVar *TypeInterfaceCheckFunc) { | |
| 1659 | - | core.LazyRegister(&xTypeRemoveInterfaceCheck, "GOBJECT", "g_type_remove_interface_check", false) | |
| 1660 | - | ||
| 1661 | 1532 | xTypeRemoveInterfaceCheck(CheckDataVar, glib.NewCallback(CheckFuncVar)) | |
| 1662 | 1533 | } | |
| 1663 | 1534 | ||
| @@ -1665,16 +1536,12 @@ var xTypeSetQdata func(types.GType, glib.Quark, uintptr) | |||
| 1665 | 1536 | ||
| 1666 | 1537 | // Attaches arbitrary data to a type. | |
| 1667 | 1538 | func TypeSetQdata(TypeVar types.GType, QuarkVar glib.Quark, DataVar uintptr) { | |
| 1668 | - | core.LazyRegister(&xTypeSetQdata, "GOBJECT", "g_type_set_qdata", false) | |
| 1669 | - | ||
| 1670 | 1539 | xTypeSetQdata(TypeVar, QuarkVar, DataVar) | |
| 1671 | 1540 | } | |
| 1672 | 1541 | ||
| 1673 | 1542 | var xTypeTestFlags func(types.GType, uint) bool | |
| 1674 | 1543 | ||
| 1675 | 1544 | func TypeTestFlags(TypeVar types.GType, FlagsVar uint) bool { | |
| 1676 | - | core.LazyRegister(&xTypeTestFlags, "GOBJECT", "g_type_test_flags", false) | |
| 1677 | - | ||
| 1678 | 1545 | cret := xTypeTestFlags(TypeVar, FlagsVar) | |
| 1679 | 1546 | return cret | |
| 1680 | 1547 | } | |
| @@ -1687,8 +1554,6 @@ var xTypeValueTablePeek func(types.GType) uintptr | |||
| 1687 | 1554 | // that implements or has internal knowledge of the implementation of | |
| 1688 | 1555 | // @type. | |
| 1689 | 1556 | func TypeValueTablePeek(TypeVar types.GType) *TypeValueTable { | |
| 1690 | - | core.LazyRegister(&xTypeValueTablePeek, "GOBJECT", "g_type_value_table_peek", false) | |
| 1691 | - | ||
| 1692 | 1557 | cret := xTypeValueTablePeek(TypeVar) | |
| 1693 | 1558 | if cret == 0 { | |
| 1694 | 1559 | return nil | |
| @@ -1699,4 +1564,85 @@ func TypeValueTablePeek(TypeVar types.GType) *TypeValueTable { | |||
| 1699 | 1564 | func init() { | |
| 1700 | 1565 | core.SetPackageName("GOBJECT", "gobject-2.0") | |
| 1701 | 1566 | core.SetSharedLibraries("GOBJECT", []string{"libgobject-2.0.so.0", "libgobject-2.0.0.dylib"}) | |
| 1567 | + | var libs []uintptr | |
| 1568 | + | for _, libPath := range core.GetPaths("GOBJECT") { | |
| 1569 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 1570 | + | if err != nil { | |
| 1571 | + | panic(err) | |
| 1572 | + | } | |
| 1573 | + | libs = append(libs, lib) | |
| 1574 | + | } | |
| 1575 | + | ||
| 1576 | + | core.PuregoSafeRegister(&xTypeAddClassCacheFunc, libs, "g_type_add_class_cache_func") | |
| 1577 | + | core.PuregoSafeRegister(&xTypeAddClassPrivate, libs, "g_type_add_class_private") | |
| 1578 | + | core.PuregoSafeRegister(&xTypeAddInstancePrivate, libs, "g_type_add_instance_private") | |
| 1579 | + | core.PuregoSafeRegister(&xTypeAddInterfaceCheck, libs, "g_type_add_interface_check") | |
| 1580 | + | core.PuregoSafeRegister(&xTypeAddInterfaceDynamic, libs, "g_type_add_interface_dynamic") | |
| 1581 | + | core.PuregoSafeRegister(&xTypeAddInterfaceStatic, libs, "g_type_add_interface_static") | |
| 1582 | + | core.PuregoSafeRegister(&xTypeCheckClassCast, libs, "g_type_check_class_cast") | |
| 1583 | + | core.PuregoSafeRegister(&xTypeCheckClassIsA, libs, "g_type_check_class_is_a") | |
| 1584 | + | core.PuregoSafeRegister(&xTypeCheckInstance, libs, "g_type_check_instance") | |
| 1585 | + | core.PuregoSafeRegister(&xTypeCheckInstanceCast, libs, "g_type_check_instance_cast") | |
| 1586 | + | core.PuregoSafeRegister(&xTypeCheckInstanceIsA, libs, "g_type_check_instance_is_a") | |
| 1587 | + | core.PuregoSafeRegister(&xTypeCheckInstanceIsFundamentallyA, libs, "g_type_check_instance_is_fundamentally_a") | |
| 1588 | + | core.PuregoSafeRegister(&xTypeCheckIsValueType, libs, "g_type_check_is_value_type") | |
| 1589 | + | core.PuregoSafeRegister(&xTypeCheckValue, libs, "g_type_check_value") | |
| 1590 | + | core.PuregoSafeRegister(&xTypeCheckValueHolds, libs, "g_type_check_value_holds") | |
| 1591 | + | core.PuregoSafeRegister(&xTypeChildren, libs, "g_type_children") | |
| 1592 | + | core.PuregoSafeRegister(&xTypeClassAdjustPrivateOffset, libs, "g_type_class_adjust_private_offset") | |
| 1593 | + | core.PuregoSafeRegister(&xTypeClassGet, libs, "g_type_class_get") | |
| 1594 | + | core.PuregoSafeRegister(&xTypeClassPeek, libs, "g_type_class_peek") | |
| 1595 | + | core.PuregoSafeRegister(&xTypeClassPeekStatic, libs, "g_type_class_peek_static") | |
| 1596 | + | core.PuregoSafeRegister(&xTypeClassRef, libs, "g_type_class_ref") | |
| 1597 | + | core.PuregoSafeRegister(&xTypeCreateInstance, libs, "g_type_create_instance") | |
| 1598 | + | core.PuregoSafeRegister(&xTypeDefaultInterfaceGet, libs, "g_type_default_interface_get") | |
| 1599 | + | core.PuregoSafeRegister(&xTypeDefaultInterfacePeek, libs, "g_type_default_interface_peek") | |
| 1600 | + | core.PuregoSafeRegister(&xTypeDefaultInterfaceRef, libs, "g_type_default_interface_ref") | |
| 1601 | + | core.PuregoSafeRegister(&xTypeDefaultInterfaceUnref, libs, "g_type_default_interface_unref") | |
| 1602 | + | core.PuregoSafeRegister(&xTypeDepth, libs, "g_type_depth") | |
| 1603 | + | core.PuregoSafeRegister(&xTypeEnsure, libs, "g_type_ensure") | |
| 1604 | + | core.PuregoSafeRegister(&xTypeFreeInstance, libs, "g_type_free_instance") | |
| 1605 | + | core.PuregoSafeRegister(&xTypeFromName, libs, "g_type_from_name") | |
| 1606 | + | core.PuregoSafeRegister(&xTypeFundamental, libs, "g_type_fundamental") | |
| 1607 | + | core.PuregoSafeRegister(&xTypeFundamentalNext, libs, "g_type_fundamental_next") | |
| 1608 | + | core.PuregoSafeRegister(&xTypeGetInstanceCount, libs, "g_type_get_instance_count") | |
| 1609 | + | core.PuregoSafeRegister(&xTypeGetPlugin, libs, "g_type_get_plugin") | |
| 1610 | + | core.PuregoSafeRegister(&xTypeGetQdata, libs, "g_type_get_qdata") | |
| 1611 | + | core.PuregoSafeRegister(&xTypeGetTypeRegistrationSerial, libs, "g_type_get_type_registration_serial") | |
| 1612 | + | core.PuregoSafeRegister(&xTypeInit, libs, "g_type_init") | |
| 1613 | + | core.PuregoSafeRegister(&xTypeInitWithDebugFlags, libs, "g_type_init_with_debug_flags") | |
| 1614 | + | core.PuregoSafeRegister(&xTypeInterfaceAddPrerequisite, libs, "g_type_interface_add_prerequisite") | |
| 1615 | + | core.PuregoSafeRegister(&xTypeInterfaceGetPlugin, libs, "g_type_interface_get_plugin") | |
| 1616 | + | core.PuregoSafeRegister(&xTypeInterfaceInstantiatablePrerequisite, libs, "g_type_interface_instantiatable_prerequisite") | |
| 1617 | + | core.PuregoSafeRegister(&xTypeInterfacePeek, libs, "g_type_interface_peek") | |
| 1618 | + | core.PuregoSafeRegister(&xTypeInterfacePrerequisites, libs, "g_type_interface_prerequisites") | |
| 1619 | + | core.PuregoSafeRegister(&xTypeInterfaces, libs, "g_type_interfaces") | |
| 1620 | + | core.PuregoSafeRegister(&xTypeIsA, libs, "g_type_is_a") | |
| 1621 | + | core.PuregoSafeRegister(&xTypeName, libs, "g_type_name") | |
| 1622 | + | core.PuregoSafeRegister(&xTypeNameFromClass, libs, "g_type_name_from_class") | |
| 1623 | + | core.PuregoSafeRegister(&xTypeNameFromInstance, libs, "g_type_name_from_instance") | |
| 1624 | + | core.PuregoSafeRegister(&xTypeNextBase, libs, "g_type_next_base") | |
| 1625 | + | core.PuregoSafeRegister(&xTypeParent, libs, "g_type_parent") | |
| 1626 | + | core.PuregoSafeRegister(&xTypeQname, libs, "g_type_qname") | |
| 1627 | + | core.PuregoSafeRegister(&xNewTypeQuery, libs, "g_type_query") | |
| 1628 | + | core.PuregoSafeRegister(&xTypeRegisterDynamic, libs, "g_type_register_dynamic") | |
| 1629 | + | core.PuregoSafeRegister(&xTypeRegisterFundamental, libs, "g_type_register_fundamental") | |
| 1630 | + | core.PuregoSafeRegister(&xTypeRegisterStatic, libs, "g_type_register_static") | |
| 1631 | + | core.PuregoSafeRegister(&xTypeRegisterStaticSimple, libs, "g_type_register_static_simple") | |
| 1632 | + | core.PuregoSafeRegister(&xTypeRemoveClassCacheFunc, libs, "g_type_remove_class_cache_func") | |
| 1633 | + | core.PuregoSafeRegister(&xTypeRemoveInterfaceCheck, libs, "g_type_remove_interface_check") | |
| 1634 | + | core.PuregoSafeRegister(&xTypeSetQdata, libs, "g_type_set_qdata") | |
| 1635 | + | core.PuregoSafeRegister(&xTypeTestFlags, libs, "g_type_test_flags") | |
| 1636 | + | core.PuregoSafeRegister(&xTypeValueTablePeek, libs, "g_type_value_table_peek") | |
| 1637 | + | ||
| 1638 | + | core.PuregoSafeRegister(&xTypeClassAddPrivate, libs, "g_type_class_add_private") | |
| 1639 | + | core.PuregoSafeRegister(&xTypeClassGetInstancePrivateOffset, libs, "g_type_class_get_instance_private_offset") | |
| 1640 | + | core.PuregoSafeRegister(&xTypeClassGetPrivate, libs, "g_type_class_get_private") | |
| 1641 | + | core.PuregoSafeRegister(&xTypeClassPeekParent, libs, "g_type_class_peek_parent") | |
| 1642 | + | core.PuregoSafeRegister(&xTypeClassUnref, libs, "g_type_class_unref") | |
| 1643 | + | core.PuregoSafeRegister(&xTypeClassUnrefUncached, libs, "g_type_class_unref_uncached") | |
| 1644 | + | ||
| 1645 | + | core.PuregoSafeRegister(&xTypeInstanceGetPrivate, libs, "g_type_instance_get_private") | |
| 1646 | + | ||
| 1647 | + | core.PuregoSafeRegister(&xTypeInterfacePeekParent, libs, "g_type_interface_peek_parent") | |
| 1702 | 1648 | } | |
| @@ -5,6 +5,7 @@ import ( | |||||
| 5 | "structs" | 5 | "structs" | ||
| 6 | "unsafe" | 6 | "unsafe" | ||
| 7 | 7 | ||||
| 8 | + | "github.com/bnema/purego" | |||
| 8 | "github.com/bnema/puregotk/pkg/core" | 9 | "github.com/bnema/puregotk/pkg/core" | ||
| 9 | "github.com/bnema/puregotk/v4/glib" | 10 | "github.com/bnema/puregotk/v4/glib" | ||
| 10 | "github.com/bnema/puregotk/v4/gobject/types" | 11 | "github.com/bnema/puregotk/v4/gobject/types" | ||
| @@ -505,8 +506,6 @@ var xTypeClassAddPrivate func(uintptr, uint) | |||||
| 505 | // | 506 | // | ||
| 506 | // ]| | 507 | // ]| | ||
| 507 | func (x *TypeClass) AddPrivate(PrivateSizeVar uint) { | 508 | func (x *TypeClass) AddPrivate(PrivateSizeVar uint) { | ||
| 508 | - | core.LazyRegister(&xTypeClassAddPrivate, "GOBJECT", "g_type_class_add_private", false) | |||
| 509 | - | ||||
| 510 | xTypeClassAddPrivate(x.GoPointer(), PrivateSizeVar) | 509 | xTypeClassAddPrivate(x.GoPointer(), PrivateSizeVar) | ||
| 511 | } | 510 | } | ||
| 512 | 511 | ||||
| @@ -521,8 +520,6 @@ var xTypeClassGetInstancePrivateOffset func(uintptr) int | |||||
| 521 | // You can only call this function after you have registered a private | 520 | // You can only call this function after you have registered a private | ||
| 522 | // data area for @g_class using g_type_class_add_private(). | 521 | // data area for @g_class using g_type_class_add_private(). | ||
| 523 | func (x *TypeClass) GetInstancePrivateOffset() int { | 522 | func (x *TypeClass) GetInstancePrivateOffset() int { | ||
| 524 | - | core.LazyRegister(&xTypeClassGetInstancePrivateOffset, "GOBJECT", "g_type_class_get_instance_private_offset", false) | |||
| 525 | - | ||||
| 526 | cret := xTypeClassGetInstancePrivateOffset(x.GoPointer()) | 523 | cret := xTypeClassGetInstancePrivateOffset(x.GoPointer()) | ||
| 527 | return cret | 524 | return cret | ||
| 528 | } | 525 | } | ||
| @@ -530,8 +527,6 @@ func (x *TypeClass) GetInstancePrivateOffset() int { | |||||
| 530 | var xTypeClassGetPrivate func(uintptr, types.GType) uintptr | 527 | var xTypeClassGetPrivate func(uintptr, types.GType) uintptr | ||
| 531 | 528 | ||||
| 532 | func (x *TypeClass) GetPrivate(PrivateTypeVar types.GType) uintptr { | 529 | func (x *TypeClass) GetPrivate(PrivateTypeVar types.GType) uintptr { | ||
| 533 | - | core.LazyRegister(&xTypeClassGetPrivate, "GOBJECT", "g_type_class_get_private", false) | |||
| 534 | - | ||||
| 535 | cret := xTypeClassGetPrivate(x.GoPointer(), PrivateTypeVar) | 530 | cret := xTypeClassGetPrivate(x.GoPointer(), PrivateTypeVar) | ||
| 536 | return cret | 531 | return cret | ||
| 537 | } | 532 | } | ||
| @@ -549,8 +544,6 @@ var xTypeClassPeekParent func(uintptr) uintptr | |||||
| 549 | // This function is essentially equivalent to: | 544 | // This function is essentially equivalent to: | ||
| 550 | // g_type_class_peek (g_type_parent (G_TYPE_FROM_CLASS (g_class))) | 545 | // g_type_class_peek (g_type_parent (G_TYPE_FROM_CLASS (g_class))) | ||
| 551 | func (x *TypeClass) PeekParent() *TypeClass { | 546 | func (x *TypeClass) PeekParent() *TypeClass { | ||
| 552 | - | core.LazyRegister(&xTypeClassPeekParent, "GOBJECT", "g_type_class_peek_parent", false) | |||
| 553 | - | ||||
| 554 | cret := xTypeClassPeekParent(x.GoPointer()) | 547 | cret := xTypeClassPeekParent(x.GoPointer()) | ||
| 555 | if cret == 0 { | 548 | if cret == 0 { | ||
| 556 | return nil | 549 | return nil | ||
| @@ -566,8 +559,6 @@ var xTypeClassUnref func(uintptr) | |||||
| 566 | // may be finalized by the type system, so further dereferencing of a | 559 | // may be finalized by the type system, so further dereferencing of a | ||
| 567 | // class pointer after g_type_class_unref() are invalid. | 560 | // class pointer after g_type_class_unref() are invalid. | ||
| 568 | func (x *TypeClass) Unref() { | 561 | func (x *TypeClass) Unref() { | ||
| 569 | - | core.LazyRegister(&xTypeClassUnref, "GOBJECT", "g_type_class_unref", false) | |||
| 570 | - | ||||
| 571 | xTypeClassUnref(x.GoPointer()) | 562 | xTypeClassUnref(x.GoPointer()) | ||
| 572 | } | 563 | } | ||
| 573 | 564 | ||||
| @@ -580,8 +571,6 @@ var xTypeClassUnrefUncached func(uintptr) | |||||
| 580 | // of #GTypeClassCacheFuncs, avoiding the recursion which would occur | 571 | // of #GTypeClassCacheFuncs, avoiding the recursion which would occur | ||
| 581 | // otherwise. | 572 | // otherwise. | ||
| 582 | func (x *TypeClass) UnrefUncached() { | 573 | func (x *TypeClass) UnrefUncached() { | ||
| 583 | - | core.LazyRegister(&xTypeClassUnrefUncached, "GOBJECT", "g_type_class_unref_uncached", false) | |||
| 584 | - | ||||
| 585 | xTypeClassUnrefUncached(x.GoPointer()) | 574 | xTypeClassUnrefUncached(x.GoPointer()) | ||
| 586 | } | 575 | } | ||
| 587 | 576 | ||||
| @@ -672,8 +661,6 @@ func TypeInstanceNewFromInternalPtr(ptr uintptr) *TypeInstance { | |||||
| 672 | var xTypeInstanceGetPrivate func(uintptr, types.GType) uintptr | 661 | var xTypeInstanceGetPrivate func(uintptr, types.GType) uintptr | ||
| 673 | 662 | ||||
| 674 | func (x *TypeInstance) GetPrivate(PrivateTypeVar types.GType) uintptr { | 663 | func (x *TypeInstance) GetPrivate(PrivateTypeVar types.GType) uintptr { | ||
| 675 | - | core.LazyRegister(&xTypeInstanceGetPrivate, "GOBJECT", "g_type_instance_get_private", false) | |||
| 676 | - | ||||
| 677 | cret := xTypeInstanceGetPrivate(x.GoPointer(), PrivateTypeVar) | 664 | cret := xTypeInstanceGetPrivate(x.GoPointer(), PrivateTypeVar) | ||
| 678 | return cret | 665 | return cret | ||
| 679 | } | 666 | } | ||
| @@ -707,8 +694,6 @@ var xTypeInterfacePeekParent func(uintptr) uintptr | |||||
| 707 | // This is useful when deriving the implementation of an interface from the | 694 | // This is useful when deriving the implementation of an interface from the | ||
| 708 | // parent type and then possibly overriding some methods. | 695 | // parent type and then possibly overriding some methods. | ||
| 709 | func (x *TypeInterface) PeekParent() *TypeInterface { | 696 | func (x *TypeInterface) PeekParent() *TypeInterface { | ||
| 710 | - | core.LazyRegister(&xTypeInterfacePeekParent, "GOBJECT", "g_type_interface_peek_parent", false) | |||
| 711 | - | ||||
| 712 | cret := xTypeInterfacePeekParent(x.GoPointer()) | 697 | cret := xTypeInterfacePeekParent(x.GoPointer()) | ||
| 713 | if cret == 0 { | 698 | if cret == 0 { | ||
| 714 | return nil | 699 | return nil | ||
| @@ -883,8 +868,6 @@ var xTypeAddClassCacheFunc func(uintptr, uintptr) | |||||
| 883 | // type, since all classes are routed through the same #GTypeClassCacheFunc | 868 | // type, since all classes are routed through the same #GTypeClassCacheFunc | ||
| 884 | // chain. | 869 | // chain. | ||
| 885 | func TypeAddClassCacheFunc(CacheDataVar uintptr, CacheFuncVar *TypeClassCacheFunc) { | 870 | func TypeAddClassCacheFunc(CacheDataVar uintptr, CacheFuncVar *TypeClassCacheFunc) { | ||
| 886 | - | core.LazyRegister(&xTypeAddClassCacheFunc, "GOBJECT", "g_type_add_class_cache_func", false) | |||
| 887 | - | ||||
| 888 | xTypeAddClassCacheFunc(CacheDataVar, glib.NewCallback(CacheFuncVar)) | 871 | xTypeAddClassCacheFunc(CacheDataVar, glib.NewCallback(CacheFuncVar)) | ||
| 889 | } | 872 | } | ||
| 890 | 873 | ||||
| @@ -901,16 +884,12 @@ var xTypeAddClassPrivate func(types.GType, uint) | |||||
| 901 | // The private structure can be retrieved using the | 884 | // The private structure can be retrieved using the | ||
| 902 | // G_TYPE_CLASS_GET_PRIVATE() macro. | 885 | // G_TYPE_CLASS_GET_PRIVATE() macro. | ||
| 903 | func TypeAddClassPrivate(ClassTypeVar types.GType, PrivateSizeVar uint) { | 886 | func TypeAddClassPrivate(ClassTypeVar types.GType, PrivateSizeVar uint) { | ||
| 904 | - | core.LazyRegister(&xTypeAddClassPrivate, "GOBJECT", "g_type_add_class_private", false) | |||
| 905 | - | ||||
| 906 | xTypeAddClassPrivate(ClassTypeVar, PrivateSizeVar) | 887 | xTypeAddClassPrivate(ClassTypeVar, PrivateSizeVar) | ||
| 907 | } | 888 | } | ||
| 908 | 889 | ||||
| 909 | var xTypeAddInstancePrivate func(types.GType, uint) int | 890 | var xTypeAddInstancePrivate func(types.GType, uint) int | ||
| 910 | 891 | ||||
| 911 | func TypeAddInstancePrivate(ClassTypeVar types.GType, PrivateSizeVar uint) int { | 892 | func TypeAddInstancePrivate(ClassTypeVar types.GType, PrivateSizeVar uint) int { | ||
| 912 | - | core.LazyRegister(&xTypeAddInstancePrivate, "GOBJECT", "g_type_add_instance_private", false) | |||
| 913 | - | ||||
| 914 | cret := xTypeAddInstancePrivate(ClassTypeVar, PrivateSizeVar) | 893 | cret := xTypeAddInstancePrivate(ClassTypeVar, PrivateSizeVar) | ||
| 915 | return cret | 894 | return cret | ||
| 916 | } | 895 | } | ||
| @@ -927,8 +906,6 @@ var xTypeAddInterfaceCheck func(uintptr, uintptr) | |||||
| 927 | // object implements all of the properties that are defined on its | 906 | // object implements all of the properties that are defined on its | ||
| 928 | // interfaces. | 907 | // interfaces. | ||
| 929 | func TypeAddInterfaceCheck(CheckDataVar uintptr, CheckFuncVar *TypeInterfaceCheckFunc) { | 908 | func TypeAddInterfaceCheck(CheckDataVar uintptr, CheckFuncVar *TypeInterfaceCheckFunc) { | ||
| 930 | - | core.LazyRegister(&xTypeAddInterfaceCheck, "GOBJECT", "g_type_add_interface_check", false) | |||
| 931 | - | ||||
| 932 | xTypeAddInterfaceCheck(CheckDataVar, glib.NewCallback(CheckFuncVar)) | 909 | xTypeAddInterfaceCheck(CheckDataVar, glib.NewCallback(CheckFuncVar)) | ||
| 933 | } | 910 | } | ||
| 934 | 911 | ||||
| @@ -938,8 +915,6 @@ var xTypeAddInterfaceDynamic func(types.GType, types.GType, uintptr) | |||||
| 938 | // contained in the #GTypePlugin structure pointed to by @plugin | 915 | // contained in the #GTypePlugin structure pointed to by @plugin | ||
| 939 | // is used to manage the relationship. | 916 | // is used to manage the relationship. | ||
| 940 | func TypeAddInterfaceDynamic(InstanceTypeVar types.GType, InterfaceTypeVar types.GType, PluginVar TypePlugin) { | 917 | func TypeAddInterfaceDynamic(InstanceTypeVar types.GType, InterfaceTypeVar types.GType, PluginVar TypePlugin) { | ||
| 941 | - | core.LazyRegister(&xTypeAddInterfaceDynamic, "GOBJECT", "g_type_add_interface_dynamic", false) | |||
| 942 | - | ||||
| 943 | xTypeAddInterfaceDynamic(InstanceTypeVar, InterfaceTypeVar, PluginVar.GoPointer()) | 918 | xTypeAddInterfaceDynamic(InstanceTypeVar, InterfaceTypeVar, PluginVar.GoPointer()) | ||
| 944 | } | 919 | } | ||
| 945 | 920 | ||||
| @@ -949,16 +924,12 @@ var xTypeAddInterfaceStatic func(types.GType, types.GType, *InterfaceInfo) | |||||
| 949 | // The information contained in the #GInterfaceInfo structure | 924 | // The information contained in the #GInterfaceInfo structure | ||
| 950 | // pointed to by @info is used to manage the relationship. | 925 | // pointed to by @info is used to manage the relationship. | ||
| 951 | func TypeAddInterfaceStatic(InstanceTypeVar types.GType, InterfaceTypeVar types.GType, InfoVar *InterfaceInfo) { | 926 | func TypeAddInterfaceStatic(InstanceTypeVar types.GType, InterfaceTypeVar types.GType, InfoVar *InterfaceInfo) { | ||
| 952 | - | core.LazyRegister(&xTypeAddInterfaceStatic, "GOBJECT", "g_type_add_interface_static", false) | |||
| 953 | - | ||||
| 954 | xTypeAddInterfaceStatic(InstanceTypeVar, InterfaceTypeVar, InfoVar) | 927 | xTypeAddInterfaceStatic(InstanceTypeVar, InterfaceTypeVar, InfoVar) | ||
| 955 | } | 928 | } | ||
| 956 | 929 | ||||
| 957 | var xTypeCheckClassCast func(*TypeClass, types.GType) uintptr | 930 | var xTypeCheckClassCast func(*TypeClass, types.GType) uintptr | ||
| 958 | 931 | ||||
| 959 | func TypeCheckClassCast(GClassVar *TypeClass, IsATypeVar types.GType) *TypeClass { | 932 | func TypeCheckClassCast(GClassVar *TypeClass, IsATypeVar types.GType) *TypeClass { | ||
| 960 | - | core.LazyRegister(&xTypeCheckClassCast, "GOBJECT", "g_type_check_class_cast", false) | |||
| 961 | - | ||||
| 962 | cret := xTypeCheckClassCast(GClassVar, IsATypeVar) | 933 | cret := xTypeCheckClassCast(GClassVar, IsATypeVar) | ||
| 963 | if cret == 0 { | 934 | if cret == 0 { | ||
| 964 | return nil | 935 | return nil | ||
| @@ -969,8 +940,6 @@ func TypeCheckClassCast(GClassVar *TypeClass, IsATypeVar types.GType) *TypeClass | |||||
| 969 | var xTypeCheckClassIsA func(*TypeClass, types.GType) bool | 940 | var xTypeCheckClassIsA func(*TypeClass, types.GType) bool | ||
| 970 | 941 | ||||
| 971 | func TypeCheckClassIsA(GClassVar *TypeClass, IsATypeVar types.GType) bool { | 942 | func TypeCheckClassIsA(GClassVar *TypeClass, IsATypeVar types.GType) bool { | ||
| 972 | - | core.LazyRegister(&xTypeCheckClassIsA, "GOBJECT", "g_type_check_class_is_a", false) | |||
| 973 | - | ||||
| 974 | cret := xTypeCheckClassIsA(GClassVar, IsATypeVar) | 943 | cret := xTypeCheckClassIsA(GClassVar, IsATypeVar) | ||
| 975 | return cret | 944 | return cret | ||
| 976 | } | 945 | } | ||
| @@ -980,8 +949,6 @@ var xTypeCheckInstance func(*TypeInstance) bool | |||||
| 980 | // Private helper function to aid implementation of the | 949 | // Private helper function to aid implementation of the | ||
| 981 | // G_TYPE_CHECK_INSTANCE() macro. | 950 | // G_TYPE_CHECK_INSTANCE() macro. | ||
| 982 | func TypeCheckInstance(InstanceVar *TypeInstance) bool { | 951 | func TypeCheckInstance(InstanceVar *TypeInstance) bool { | ||
| 983 | - | core.LazyRegister(&xTypeCheckInstance, "GOBJECT", "g_type_check_instance", false) | |||
| 984 | - | ||||
| 985 | cret := xTypeCheckInstance(InstanceVar) | 952 | cret := xTypeCheckInstance(InstanceVar) | ||
| 986 | return cret | 953 | return cret | ||
| 987 | } | 954 | } | ||
| @@ -989,8 +956,6 @@ func TypeCheckInstance(InstanceVar *TypeInstance) bool { | |||||
| 989 | var xTypeCheckInstanceCast func(*TypeInstance, types.GType) uintptr | 956 | var xTypeCheckInstanceCast func(*TypeInstance, types.GType) uintptr | ||
| 990 | 957 | ||||
| 991 | func TypeCheckInstanceCast(InstanceVar *TypeInstance, IfaceTypeVar types.GType) *TypeInstance { | 958 | func TypeCheckInstanceCast(InstanceVar *TypeInstance, IfaceTypeVar types.GType) *TypeInstance { | ||
| 992 | - | core.LazyRegister(&xTypeCheckInstanceCast, "GOBJECT", "g_type_check_instance_cast", false) | |||
| 993 | - | ||||
| 994 | cret := xTypeCheckInstanceCast(InstanceVar, IfaceTypeVar) | 959 | cret := xTypeCheckInstanceCast(InstanceVar, IfaceTypeVar) | ||
| 995 | if cret == 0 { | 960 | if cret == 0 { | ||
| 996 | return nil | 961 | return nil | ||
| @@ -1001,8 +966,6 @@ func TypeCheckInstanceCast(InstanceVar *TypeInstance, IfaceTypeVar types.GType) | |||||
| 1001 | var xTypeCheckInstanceIsA func(*TypeInstance, types.GType) bool | 966 | var xTypeCheckInstanceIsA func(*TypeInstance, types.GType) bool | ||
| 1002 | 967 | ||||
| 1003 | func TypeCheckInstanceIsA(InstanceVar *TypeInstance, IfaceTypeVar types.GType) bool { | 968 | func TypeCheckInstanceIsA(InstanceVar *TypeInstance, IfaceTypeVar types.GType) bool { | ||
| 1004 | - | core.LazyRegister(&xTypeCheckInstanceIsA, "GOBJECT", "g_type_check_instance_is_a", false) | |||
| 1005 | - | ||||
| 1006 | cret := xTypeCheckInstanceIsA(InstanceVar, IfaceTypeVar) | 969 | cret := xTypeCheckInstanceIsA(InstanceVar, IfaceTypeVar) | ||
| 1007 | return cret | 970 | return cret | ||
| 1008 | } | 971 | } | ||
| @@ -1010,8 +973,6 @@ func TypeCheckInstanceIsA(InstanceVar *TypeInstance, IfaceTypeVar types.GType) b | |||||
| 1010 | var xTypeCheckInstanceIsFundamentallyA func(*TypeInstance, types.GType) bool | 973 | var xTypeCheckInstanceIsFundamentallyA func(*TypeInstance, types.GType) bool | ||
| 1011 | 974 | ||||
| 1012 | func TypeCheckInstanceIsFundamentallyA(InstanceVar *TypeInstance, FundamentalTypeVar types.GType) bool { | 975 | func TypeCheckInstanceIsFundamentallyA(InstanceVar *TypeInstance, FundamentalTypeVar types.GType) bool { | ||
| 1013 | - | core.LazyRegister(&xTypeCheckInstanceIsFundamentallyA, "GOBJECT", "g_type_check_instance_is_fundamentally_a", false) | |||
| 1014 | - | ||||
| 1015 | cret := xTypeCheckInstanceIsFundamentallyA(InstanceVar, FundamentalTypeVar) | 976 | cret := xTypeCheckInstanceIsFundamentallyA(InstanceVar, FundamentalTypeVar) | ||
| 1016 | return cret | 977 | return cret | ||
| 1017 | } | 978 | } | ||
| @@ -1019,8 +980,6 @@ func TypeCheckInstanceIsFundamentallyA(InstanceVar *TypeInstance, FundamentalTyp | |||||
| 1019 | var xTypeCheckIsValueType func(types.GType) bool | 980 | var xTypeCheckIsValueType func(types.GType) bool | ||
| 1020 | 981 | ||||
| 1021 | func TypeCheckIsValueType(TypeVar types.GType) bool { | 982 | func TypeCheckIsValueType(TypeVar types.GType) bool { | ||
| 1022 | - | core.LazyRegister(&xTypeCheckIsValueType, "GOBJECT", "g_type_check_is_value_type", false) | |||
| 1023 | - | ||||
| 1024 | cret := xTypeCheckIsValueType(TypeVar) | 983 | cret := xTypeCheckIsValueType(TypeVar) | ||
| 1025 | return cret | 984 | return cret | ||
| 1026 | } | 985 | } | ||
| @@ -1028,8 +987,6 @@ func TypeCheckIsValueType(TypeVar types.GType) bool { | |||||
| 1028 | var xTypeCheckValue func(*Value) bool | 987 | var xTypeCheckValue func(*Value) bool | ||
| 1029 | 988 | ||||
| 1030 | func TypeCheckValue(ValueVar *Value) bool { | 989 | func TypeCheckValue(ValueVar *Value) bool { | ||
| 1031 | - | core.LazyRegister(&xTypeCheckValue, "GOBJECT", "g_type_check_value", false) | |||
| 1032 | - | ||||
| 1033 | cret := xTypeCheckValue(ValueVar) | 990 | cret := xTypeCheckValue(ValueVar) | ||
| 1034 | return cret | 991 | return cret | ||
| 1035 | } | 992 | } | ||
| @@ -1037,8 +994,6 @@ func TypeCheckValue(ValueVar *Value) bool { | |||||
| 1037 | var xTypeCheckValueHolds func(*Value, types.GType) bool | 994 | var xTypeCheckValueHolds func(*Value, types.GType) bool | ||
| 1038 | 995 | ||||
| 1039 | func TypeCheckValueHolds(ValueVar *Value, TypeVar types.GType) bool { | 996 | func TypeCheckValueHolds(ValueVar *Value, TypeVar types.GType) bool { | ||
| 1040 | - | core.LazyRegister(&xTypeCheckValueHolds, "GOBJECT", "g_type_check_value_holds", false) | |||
| 1041 | - | ||||
| 1042 | cret := xTypeCheckValueHolds(ValueVar, TypeVar) | 997 | cret := xTypeCheckValueHolds(ValueVar, TypeVar) | ||
| 1043 | return cret | 998 | return cret | ||
| 1044 | } | 999 | } | ||
| @@ -1048,8 +1003,6 @@ var xTypeChildren func(types.GType, *uint) uintptr | |||||
| 1048 | // Return a newly allocated and 0-terminated array of type IDs, listing | 1003 | // Return a newly allocated and 0-terminated array of type IDs, listing | ||
| 1049 | // the child types of @type. | 1004 | // the child types of @type. | ||
| 1050 | func TypeChildren(TypeVar types.GType, NChildrenVar *uint) uintptr { | 1005 | func TypeChildren(TypeVar types.GType, NChildrenVar *uint) uintptr { | ||
| 1051 | - | core.LazyRegister(&xTypeChildren, "GOBJECT", "g_type_children", false) | |||
| 1052 | - | ||||
| 1053 | cret := xTypeChildren(TypeVar, NChildrenVar) | 1006 | cret := xTypeChildren(TypeVar, NChildrenVar) | ||
| 1054 | return cret | 1007 | return cret | ||
| 1055 | } | 1008 | } | ||
| @@ -1057,8 +1010,6 @@ func TypeChildren(TypeVar types.GType, NChildrenVar *uint) uintptr { | |||||
| 1057 | var xTypeClassAdjustPrivateOffset func(uintptr, int) | 1010 | var xTypeClassAdjustPrivateOffset func(uintptr, int) | ||
| 1058 | 1011 | ||||
| 1059 | func TypeClassAdjustPrivateOffset(GClassVar uintptr, PrivateSizeOrOffsetVar int) { | 1012 | func TypeClassAdjustPrivateOffset(GClassVar uintptr, PrivateSizeOrOffsetVar int) { | ||
| 1060 | - | core.LazyRegister(&xTypeClassAdjustPrivateOffset, "GOBJECT", "g_type_class_adjust_private_offset", false) | |||
| 1061 | - | ||||
| 1062 | xTypeClassAdjustPrivateOffset(GClassVar, PrivateSizeOrOffsetVar) | 1013 | xTypeClassAdjustPrivateOffset(GClassVar, PrivateSizeOrOffsetVar) | ||
| 1063 | } | 1014 | } | ||
| 1064 | 1015 | ||||
| @@ -1071,8 +1022,6 @@ var xTypeClassGet func(types.GType) uintptr | |||||
| 1071 | // | 1022 | // | ||
| 1072 | // If you don't want to create the class, use g_type_class_peek() instead. | 1023 | // If you don't want to create the class, use g_type_class_peek() instead. | ||
| 1073 | func TypeClassGet(TypeVar types.GType) *TypeClass { | 1024 | func TypeClassGet(TypeVar types.GType) *TypeClass { | ||
| 1074 | - | core.LazyRegister(&xTypeClassGet, "GOBJECT", "g_type_class_get", false) | |||
| 1075 | - | ||||
| 1076 | cret := xTypeClassGet(TypeVar) | 1025 | cret := xTypeClassGet(TypeVar) | ||
| 1077 | if cret == 0 { | 1026 | if cret == 0 { | ||
| 1078 | return nil | 1027 | return nil | ||
| @@ -1091,8 +1040,6 @@ var xTypeClassPeek func(types.GType) uintptr | |||||
| 1091 | // of the type passed in does not currently exist (hasn't been | 1040 | // of the type passed in does not currently exist (hasn't been | ||
| 1092 | // referenced before). | 1041 | // referenced before). | ||
| 1093 | func TypeClassPeek(TypeVar types.GType) *TypeClass { | 1042 | func TypeClassPeek(TypeVar types.GType) *TypeClass { | ||
| 1094 | - | core.LazyRegister(&xTypeClassPeek, "GOBJECT", "g_type_class_peek", false) | |||
| 1095 | - | ||||
| 1096 | cret := xTypeClassPeek(TypeVar) | 1043 | cret := xTypeClassPeek(TypeVar) | ||
| 1097 | if cret == 0 { | 1044 | if cret == 0 { | ||
| 1098 | return nil | 1045 | return nil | ||
| @@ -1105,8 +1052,6 @@ var xTypeClassPeekStatic func(types.GType) uintptr | |||||
| 1105 | // A more efficient version of g_type_class_peek() which works only for | 1052 | // A more efficient version of g_type_class_peek() which works only for | ||
| 1106 | // static types. | 1053 | // static types. | ||
| 1107 | func TypeClassPeekStatic(TypeVar types.GType) *TypeClass { | 1054 | func TypeClassPeekStatic(TypeVar types.GType) *TypeClass { | ||
| 1108 | - | core.LazyRegister(&xTypeClassPeekStatic, "GOBJECT", "g_type_class_peek_static", false) | |||
| 1109 | - | ||||
| 1110 | cret := xTypeClassPeekStatic(TypeVar) | 1055 | cret := xTypeClassPeekStatic(TypeVar) | ||
| 1111 | if cret == 0 { | 1056 | if cret == 0 { | ||
| 1112 | return nil | 1057 | return nil | ||
| @@ -1121,8 +1066,6 @@ var xTypeClassRef func(types.GType) uintptr | |||||
| 1121 | // | 1066 | // | ||
| 1122 | // This function will demand-create the class if it doesn't exist already. | 1067 | // This function will demand-create the class if it doesn't exist already. | ||
| 1123 | func TypeClassRef(TypeVar types.GType) *TypeClass { | 1068 | func TypeClassRef(TypeVar types.GType) *TypeClass { | ||
| 1124 | - | core.LazyRegister(&xTypeClassRef, "GOBJECT", "g_type_class_ref", false) | |||
| 1125 | - | ||||
| 1126 | cret := xTypeClassRef(TypeVar) | 1069 | cret := xTypeClassRef(TypeVar) | ||
| 1127 | if cret == 0 { | 1070 | if cret == 0 { | ||
| 1128 | return nil | 1071 | return nil | ||
| @@ -1149,8 +1092,6 @@ var xTypeCreateInstance func(types.GType) uintptr | |||||
| 1149 | // fundamental type. Also language bindings should not use this | 1092 | // fundamental type. Also language bindings should not use this | ||
| 1150 | // function, but g_object_new() instead. | 1093 | // function, but g_object_new() instead. | ||
| 1151 | func TypeCreateInstance(TypeVar types.GType) *TypeInstance { | 1094 | func TypeCreateInstance(TypeVar types.GType) *TypeInstance { | ||
| 1152 | - | core.LazyRegister(&xTypeCreateInstance, "GOBJECT", "g_type_create_instance", false) | |||
| 1153 | - | ||||
| 1154 | cret := xTypeCreateInstance(TypeVar) | 1095 | cret := xTypeCreateInstance(TypeVar) | ||
| 1155 | if cret == 0 { | 1096 | if cret == 0 { | ||
| 1156 | return nil | 1097 | return nil | ||
| @@ -1174,8 +1115,6 @@ var xTypeDefaultInterfaceGet func(types.GType) uintptr | |||||
| 1174 | // want to make sure that signals and properties for an interface | 1115 | // want to make sure that signals and properties for an interface | ||
| 1175 | // have been installed. | 1116 | // have been installed. | ||
| 1176 | func TypeDefaultInterfaceGet(GTypeVar types.GType) *TypeInterface { | 1117 | func TypeDefaultInterfaceGet(GTypeVar types.GType) *TypeInterface { | ||
| 1177 | - | core.LazyRegister(&xTypeDefaultInterfaceGet, "GOBJECT", "g_type_default_interface_get", false) | |||
| 1178 | - | ||||
| 1179 | cret := xTypeDefaultInterfaceGet(GTypeVar) | 1118 | cret := xTypeDefaultInterfaceGet(GTypeVar) | ||
| 1180 | if cret == 0 { | 1119 | if cret == 0 { | ||
| 1181 | return nil | 1120 | return nil | ||
| @@ -1188,8 +1127,6 @@ var xTypeDefaultInterfacePeek func(types.GType) uintptr | |||||
| 1188 | // If the interface type @g_type is currently in use, returns its | 1127 | // If the interface type @g_type is currently in use, returns its | ||
| 1189 | // default interface vtable. | 1128 | // default interface vtable. | ||
| 1190 | func TypeDefaultInterfacePeek(GTypeVar types.GType) *TypeInterface { | 1129 | func TypeDefaultInterfacePeek(GTypeVar types.GType) *TypeInterface { | ||
| 1191 | - | core.LazyRegister(&xTypeDefaultInterfacePeek, "GOBJECT", "g_type_default_interface_peek", false) | |||
| 1192 | - | ||||
| 1193 | cret := xTypeDefaultInterfacePeek(GTypeVar) | 1130 | cret := xTypeDefaultInterfacePeek(GTypeVar) | ||
| 1194 | if cret == 0 { | 1131 | if cret == 0 { | ||
| 1195 | return nil | 1132 | return nil | ||
| @@ -1210,8 +1147,6 @@ var xTypeDefaultInterfaceRef func(types.GType) uintptr | |||||
| 1210 | // want to make sure that signals and properties for an interface | 1147 | // want to make sure that signals and properties for an interface | ||
| 1211 | // have been installed. | 1148 | // have been installed. | ||
| 1212 | func TypeDefaultInterfaceRef(GTypeVar types.GType) *TypeInterface { | 1149 | func TypeDefaultInterfaceRef(GTypeVar types.GType) *TypeInterface { | ||
| 1213 | - | core.LazyRegister(&xTypeDefaultInterfaceRef, "GOBJECT", "g_type_default_interface_ref", false) | |||
| 1214 | - | ||||
| 1215 | cret := xTypeDefaultInterfaceRef(GTypeVar) | 1150 | cret := xTypeDefaultInterfaceRef(GTypeVar) | ||
| 1216 | if cret == 0 { | 1151 | if cret == 0 { | ||
| 1217 | return nil | 1152 | return nil | ||
| @@ -1228,8 +1163,6 @@ var xTypeDefaultInterfaceUnref func(*TypeInterface) | |||||
| 1228 | // references have been released, the finalize function for the interface's | 1163 | // references have been released, the finalize function for the interface's | ||
| 1229 | // default vtable (the @class_finalize member of #GTypeInfo) will be called. | 1164 | // default vtable (the @class_finalize member of #GTypeInfo) will be called. | ||
| 1230 | func TypeDefaultInterfaceUnref(GIfaceVar *TypeInterface) { | 1165 | func TypeDefaultInterfaceUnref(GIfaceVar *TypeInterface) { | ||
| 1231 | - | core.LazyRegister(&xTypeDefaultInterfaceUnref, "GOBJECT", "g_type_default_interface_unref", false) | |||
| 1232 | - | ||||
| 1233 | xTypeDefaultInterfaceUnref(GIfaceVar) | 1166 | xTypeDefaultInterfaceUnref(GIfaceVar) | ||
| 1234 | } | 1167 | } | ||
| 1235 | 1168 | ||||
| @@ -1238,8 +1171,6 @@ var xTypeDepth func(types.GType) uint | |||||
| 1238 | // Returns the length of the ancestry of the passed in type. This | 1171 | // Returns the length of the ancestry of the passed in type. This | ||
| 1239 | // includes the type itself, so that e.g. a fundamental type has depth 1. | 1172 | // includes the type itself, so that e.g. a fundamental type has depth 1. | ||
| 1240 | func TypeDepth(TypeVar types.GType) uint { | 1173 | func TypeDepth(TypeVar types.GType) uint { | ||
| 1241 | - | core.LazyRegister(&xTypeDepth, "GOBJECT", "g_type_depth", false) | |||
| 1242 | - | ||||
| 1243 | cret := xTypeDepth(TypeVar) | 1174 | cret := xTypeDepth(TypeVar) | ||
| 1244 | return cret | 1175 | return cret | ||
| 1245 | } | 1176 | } | ||
| @@ -1259,8 +1190,6 @@ var xTypeEnsure func(types.GType) | |||||
| 1259 | // out by the compiler. Using g_type_ensure() guarantees that the | 1190 | // out by the compiler. Using g_type_ensure() guarantees that the | ||
| 1260 | // type's _get_type() method is called. | 1191 | // type's _get_type() method is called. | ||
| 1261 | func TypeEnsure(TypeVar types.GType) { | 1192 | func TypeEnsure(TypeVar types.GType) { | ||
| 1262 | - | core.LazyRegister(&xTypeEnsure, "GOBJECT", "g_type_ensure", false) | |||
| 1263 | - | ||||
| 1264 | xTypeEnsure(TypeVar) | 1193 | xTypeEnsure(TypeVar) | ||
| 1265 | } | 1194 | } | ||
| 1266 | 1195 | ||||
| @@ -1272,8 +1201,6 @@ var xTypeFreeInstance func(*TypeInstance) | |||||
| 1272 | // Like g_type_create_instance(), this function is reserved for | 1201 | // Like g_type_create_instance(), this function is reserved for | ||
| 1273 | // implementors of fundamental types. | 1202 | // implementors of fundamental types. | ||
| 1274 | func TypeFreeInstance(InstanceVar *TypeInstance) { | 1203 | func TypeFreeInstance(InstanceVar *TypeInstance) { | ||
| 1275 | - | core.LazyRegister(&xTypeFreeInstance, "GOBJECT", "g_type_free_instance", false) | |||
| 1276 | - | ||||
| 1277 | xTypeFreeInstance(InstanceVar) | 1204 | xTypeFreeInstance(InstanceVar) | ||
| 1278 | } | 1205 | } | ||
| 1279 | 1206 | ||||
| @@ -1284,8 +1211,6 @@ var xTypeFromName func(string) types.GType | |||||
| 1284 | // to find out by name whether a specific type has been registered | 1211 | // to find out by name whether a specific type has been registered | ||
| 1285 | // yet). | 1212 | // yet). | ||
| 1286 | func TypeFromName(NameVar string) types.GType { | 1213 | func TypeFromName(NameVar string) types.GType { | ||
| 1287 | - | core.LazyRegister(&xTypeFromName, "GOBJECT", "g_type_from_name", false) | |||
| 1288 | - | ||||
| 1289 | cret := xTypeFromName(NameVar) | 1214 | cret := xTypeFromName(NameVar) | ||
| 1290 | return cret | 1215 | return cret | ||
| 1291 | } | 1216 | } | ||
| @@ -1295,8 +1220,6 @@ var xTypeFundamental func(types.GType) types.GType | |||||
| 1295 | // Internal function, used to extract the fundamental type ID portion. | 1220 | // Internal function, used to extract the fundamental type ID portion. | ||
| 1296 | // Use G_TYPE_FUNDAMENTAL() instead. | 1221 | // Use G_TYPE_FUNDAMENTAL() instead. | ||
| 1297 | func TypeFundamental(TypeIdVar types.GType) types.GType { | 1222 | func TypeFundamental(TypeIdVar types.GType) types.GType { | ||
| 1298 | - | core.LazyRegister(&xTypeFundamental, "GOBJECT", "g_type_fundamental", false) | |||
| 1299 | - | ||||
| 1300 | cret := xTypeFundamental(TypeIdVar) | 1223 | cret := xTypeFundamental(TypeIdVar) | ||
| 1301 | return cret | 1224 | return cret | ||
| 1302 | } | 1225 | } | ||
| @@ -1308,8 +1231,6 @@ var xTypeFundamentalNext func() types.GType | |||||
| 1308 | // The returned type ID represents the highest currently registered | 1231 | // The returned type ID represents the highest currently registered | ||
| 1309 | // fundamental type identifier. | 1232 | // fundamental type identifier. | ||
| 1310 | func TypeFundamentalNext() types.GType { | 1233 | func TypeFundamentalNext() types.GType { | ||
| 1311 | - | core.LazyRegister(&xTypeFundamentalNext, "GOBJECT", "g_type_fundamental_next", false) | |||
| 1312 | - | ||||
| 1313 | cret := xTypeFundamentalNext() | 1234 | cret := xTypeFundamentalNext() | ||
| 1314 | return cret | 1235 | return cret | ||
| 1315 | } | 1236 | } | ||
| @@ -1321,8 +1242,6 @@ var xTypeGetInstanceCount func(types.GType) int | |||||
| 1321 | // the `instance-count` debug flag is set (by setting the `GOBJECT_DEBUG` | 1242 | // the `instance-count` debug flag is set (by setting the `GOBJECT_DEBUG` | ||
| 1322 | // variable to include `instance-count`). | 1243 | // variable to include `instance-count`). | ||
| 1323 | func TypeGetInstanceCount(TypeVar types.GType) int { | 1244 | func TypeGetInstanceCount(TypeVar types.GType) int { | ||
| 1324 | - | core.LazyRegister(&xTypeGetInstanceCount, "GOBJECT", "g_type_get_instance_count", false) | |||
| 1325 | - | ||||
| 1326 | cret := xTypeGetInstanceCount(TypeVar) | 1245 | cret := xTypeGetInstanceCount(TypeVar) | ||
| 1327 | return cret | 1246 | return cret | ||
| 1328 | } | 1247 | } | ||
| @@ -1331,7 +1250,6 @@ var xTypeGetPlugin func(types.GType) uintptr | |||||
| 1331 | 1250 | ||||
| 1332 | // Returns the #GTypePlugin structure for @type. | 1251 | // Returns the #GTypePlugin structure for @type. | ||
| 1333 | func TypeGetPlugin(TypeVar types.GType) *TypePluginBase { | 1252 | func TypeGetPlugin(TypeVar types.GType) *TypePluginBase { | ||
| 1334 | - | core.LazyRegister(&xTypeGetPlugin, "GOBJECT", "g_type_get_plugin", false) | |||
| 1335 | var cls *TypePluginBase | 1253 | var cls *TypePluginBase | ||
| 1336 | 1254 | ||||
| 1337 | cret := xTypeGetPlugin(TypeVar) | 1255 | cret := xTypeGetPlugin(TypeVar) | ||
| @@ -1354,8 +1272,6 @@ var xTypeGetQdata func(types.GType, glib.Quark) uintptr | |||||
| 1354 | // attached to one type with g_type_set_qdata() cannot | 1272 | // attached to one type with g_type_set_qdata() cannot | ||
| 1355 | // be retrieved from a subtype using g_type_get_qdata(). | 1273 | // be retrieved from a subtype using g_type_get_qdata(). | ||
| 1356 | func TypeGetQdata(TypeVar types.GType, QuarkVar glib.Quark) uintptr { | 1274 | func TypeGetQdata(TypeVar types.GType, QuarkVar glib.Quark) uintptr { | ||
| 1357 | - | core.LazyRegister(&xTypeGetQdata, "GOBJECT", "g_type_get_qdata", false) | |||
| 1358 | - | ||||
| 1359 | cret := xTypeGetQdata(TypeVar, QuarkVar) | 1275 | cret := xTypeGetQdata(TypeVar, QuarkVar) | ||
| 1360 | return cret | 1276 | return cret | ||
| 1361 | } | 1277 | } | ||
| @@ -1368,8 +1284,6 @@ var xTypeGetTypeRegistrationSerial func() uint | |||||
| 1368 | // g_type_from_name()) and know if the cache is still valid at a later | 1284 | // g_type_from_name()) and know if the cache is still valid at a later | ||
| 1369 | // time by comparing the current serial with the one at the type lookup. | 1285 | // time by comparing the current serial with the one at the type lookup. | ||
| 1370 | func TypeGetTypeRegistrationSerial() uint { | 1286 | func TypeGetTypeRegistrationSerial() uint { | ||
| 1371 | - | core.LazyRegister(&xTypeGetTypeRegistrationSerial, "GOBJECT", "g_type_get_type_registration_serial", false) | |||
| 1372 | - | ||||
| 1373 | cret := xTypeGetTypeRegistrationSerial() | 1287 | cret := xTypeGetTypeRegistrationSerial() | ||
| 1374 | return cret | 1288 | return cret | ||
| 1375 | } | 1289 | } | ||
| @@ -1380,8 +1294,6 @@ var xTypeInit func() | |||||
| 1380 | // the type system is initialised automatically and this function does | 1294 | // the type system is initialised automatically and this function does | ||
| 1381 | // nothing. | 1295 | // nothing. | ||
| 1382 | func TypeInit() { | 1296 | func TypeInit() { | ||
| 1383 | - | core.LazyRegister(&xTypeInit, "GOBJECT", "g_type_init", false) | |||
| 1384 | - | ||||
| 1385 | xTypeInit() | 1297 | xTypeInit() | ||
| 1386 | } | 1298 | } | ||
| 1387 | 1299 | ||||
| @@ -1394,8 +1306,6 @@ var xTypeInitWithDebugFlags func(TypeDebugFlags) | |||||
| 1394 | // If you need to enable debugging features, use the `GOBJECT_DEBUG` | 1306 | // If you need to enable debugging features, use the `GOBJECT_DEBUG` | ||
| 1395 | // environment variable. | 1307 | // environment variable. | ||
| 1396 | func TypeInitWithDebugFlags(DebugFlagsVar TypeDebugFlags) { | 1308 | func TypeInitWithDebugFlags(DebugFlagsVar TypeDebugFlags) { | ||
| 1397 | - | core.LazyRegister(&xTypeInitWithDebugFlags, "GOBJECT", "g_type_init_with_debug_flags", false) | |||
| 1398 | - | ||||
| 1399 | xTypeInitWithDebugFlags(DebugFlagsVar) | 1309 | xTypeInitWithDebugFlags(DebugFlagsVar) | ||
| 1400 | } | 1310 | } | ||
| 1401 | 1311 | ||||
| @@ -1407,8 +1317,6 @@ var xTypeInterfaceAddPrerequisite func(types.GType, types.GType) | |||||
| 1407 | // interface derivation (which GType doesn't support). An interface can have | 1317 | // interface derivation (which GType doesn't support). An interface can have | ||
| 1408 | // at most one instantiatable prerequisite type. | 1318 | // at most one instantiatable prerequisite type. | ||
| 1409 | func TypeInterfaceAddPrerequisite(InterfaceTypeVar types.GType, PrerequisiteTypeVar types.GType) { | 1319 | func TypeInterfaceAddPrerequisite(InterfaceTypeVar types.GType, PrerequisiteTypeVar types.GType) { | ||
| 1410 | - | core.LazyRegister(&xTypeInterfaceAddPrerequisite, "GOBJECT", "g_type_interface_add_prerequisite", false) | |||
| 1411 | - | ||||
| 1412 | xTypeInterfaceAddPrerequisite(InterfaceTypeVar, PrerequisiteTypeVar) | 1320 | xTypeInterfaceAddPrerequisite(InterfaceTypeVar, PrerequisiteTypeVar) | ||
| 1413 | } | 1321 | } | ||
| 1414 | 1322 | ||||
| @@ -1419,7 +1327,6 @@ var xTypeInterfaceGetPlugin func(types.GType, types.GType) uintptr | |||||
| 1419 | // if @interface_type has not been added to @instance_type or does | 1327 | // if @interface_type has not been added to @instance_type or does | ||
| 1420 | // not have a #GTypePlugin structure. See g_type_add_interface_dynamic(). | 1328 | // not have a #GTypePlugin structure. See g_type_add_interface_dynamic(). | ||
| 1421 | func TypeInterfaceGetPlugin(InstanceTypeVar types.GType, InterfaceTypeVar types.GType) *TypePluginBase { | 1329 | func TypeInterfaceGetPlugin(InstanceTypeVar types.GType, InterfaceTypeVar types.GType) *TypePluginBase { | ||
| 1422 | - | core.LazyRegister(&xTypeInterfaceGetPlugin, "GOBJECT", "g_type_interface_get_plugin", false) | |||
| 1423 | var cls *TypePluginBase | 1330 | var cls *TypePluginBase | ||
| 1424 | 1331 | ||||
| 1425 | cret := xTypeInterfaceGetPlugin(InstanceTypeVar, InterfaceTypeVar) | 1332 | cret := xTypeInterfaceGetPlugin(InstanceTypeVar, InterfaceTypeVar) | ||
| @@ -1442,8 +1349,6 @@ var xTypeInterfaceInstantiatablePrerequisite func(types.GType) types.GType | |||||
| 1442 | // See g_type_interface_add_prerequisite() for more information | 1349 | // See g_type_interface_add_prerequisite() for more information | ||
| 1443 | // about prerequisites. | 1350 | // about prerequisites. | ||
| 1444 | func TypeInterfaceInstantiatablePrerequisite(InterfaceTypeVar types.GType) types.GType { | 1351 | func TypeInterfaceInstantiatablePrerequisite(InterfaceTypeVar types.GType) types.GType { | ||
| 1445 | - | core.LazyRegister(&xTypeInterfaceInstantiatablePrerequisite, "GOBJECT", "g_type_interface_instantiatable_prerequisite", false) | |||
| 1446 | - | ||||
| 1447 | cret := xTypeInterfaceInstantiatablePrerequisite(InterfaceTypeVar) | 1352 | cret := xTypeInterfaceInstantiatablePrerequisite(InterfaceTypeVar) | ||
| 1448 | return cret | 1353 | return cret | ||
| 1449 | } | 1354 | } | ||
| @@ -1453,8 +1358,6 @@ var xTypeInterfacePeek func(*TypeClass, types.GType) uintptr | |||||
| 1453 | // Returns the #GTypeInterface structure of an interface to which the | 1358 | // Returns the #GTypeInterface structure of an interface to which the | ||
| 1454 | // passed in class conforms. | 1359 | // passed in class conforms. | ||
| 1455 | func TypeInterfacePeek(InstanceClassVar *TypeClass, IfaceTypeVar types.GType) *TypeInterface { | 1360 | func TypeInterfacePeek(InstanceClassVar *TypeClass, IfaceTypeVar types.GType) *TypeInterface { | ||
| 1456 | - | core.LazyRegister(&xTypeInterfacePeek, "GOBJECT", "g_type_interface_peek", false) | |||
| 1457 | - | ||||
| 1458 | cret := xTypeInterfacePeek(InstanceClassVar, IfaceTypeVar) | 1361 | cret := xTypeInterfacePeek(InstanceClassVar, IfaceTypeVar) | ||
| 1459 | if cret == 0 { | 1362 | if cret == 0 { | ||
| 1460 | return nil | 1363 | return nil | ||
| @@ -1466,8 +1369,6 @@ var xTypeInterfacePrerequisites func(types.GType, *uint) uintptr | |||||
| 1466 | 1369 | ||||
| 1467 | // Returns the prerequisites of an interfaces type. | 1370 | // Returns the prerequisites of an interfaces type. | ||
| 1468 | func TypeInterfacePrerequisites(InterfaceTypeVar types.GType, NPrerequisitesVar *uint) uintptr { | 1371 | func TypeInterfacePrerequisites(InterfaceTypeVar types.GType, NPrerequisitesVar *uint) uintptr { | ||
| 1469 | - | core.LazyRegister(&xTypeInterfacePrerequisites, "GOBJECT", "g_type_interface_prerequisites", false) | |||
| 1470 | - | ||||
| 1471 | cret := xTypeInterfacePrerequisites(InterfaceTypeVar, NPrerequisitesVar) | 1372 | cret := xTypeInterfacePrerequisites(InterfaceTypeVar, NPrerequisitesVar) | ||
| 1472 | return cret | 1373 | return cret | ||
| 1473 | } | 1374 | } | ||
| @@ -1477,8 +1378,6 @@ var xTypeInterfaces func(types.GType, *uint) uintptr | |||||
| 1477 | // Return a newly allocated and 0-terminated array of type IDs, listing | 1378 | // Return a newly allocated and 0-terminated array of type IDs, listing | ||
| 1478 | // the interface types that @type conforms to. | 1379 | // the interface types that @type conforms to. | ||
| 1479 | func TypeInterfaces(TypeVar types.GType, NInterfacesVar *uint) uintptr { | 1380 | func TypeInterfaces(TypeVar types.GType, NInterfacesVar *uint) uintptr { | ||
| 1480 | - | core.LazyRegister(&xTypeInterfaces, "GOBJECT", "g_type_interfaces", false) | |||
| 1481 | - | ||||
| 1482 | cret := xTypeInterfaces(TypeVar, NInterfacesVar) | 1381 | cret := xTypeInterfaces(TypeVar, NInterfacesVar) | ||
| 1483 | return cret | 1382 | return cret | ||
| 1484 | } | 1383 | } | ||
| @@ -1489,8 +1388,6 @@ var xTypeIsA func(types.GType, types.GType) bool | |||||
| 1489 | // descendant of @is_a_type. If @is_a_type is an interface, check | 1388 | // descendant of @is_a_type. If @is_a_type is an interface, check | ||
| 1490 | // whether @type conforms to it. | 1389 | // whether @type conforms to it. | ||
| 1491 | func TypeIsA(TypeVar types.GType, IsATypeVar types.GType) bool { | 1390 | func TypeIsA(TypeVar types.GType, IsATypeVar types.GType) bool { | ||
| 1492 | - | core.LazyRegister(&xTypeIsA, "GOBJECT", "g_type_is_a", false) | |||
| 1493 | - | ||||
| 1494 | cret := xTypeIsA(TypeVar, IsATypeVar) | 1391 | cret := xTypeIsA(TypeVar, IsATypeVar) | ||
| 1495 | return cret | 1392 | return cret | ||
| 1496 | } | 1393 | } | ||
| @@ -1504,8 +1401,6 @@ var xTypeName func(types.GType) string | |||||
| 1504 | // may be any other validly registered type ID, but randomized type IDs | 1401 | // may be any other validly registered type ID, but randomized type IDs | ||
| 1505 | // should not be passed in and will most likely lead to a crash. | 1402 | // should not be passed in and will most likely lead to a crash. | ||
| 1506 | func TypeName(TypeVar types.GType) string { | 1403 | func TypeName(TypeVar types.GType) string { | ||
| 1507 | - | core.LazyRegister(&xTypeName, "GOBJECT", "g_type_name", false) | |||
| 1508 | - | ||||
| 1509 | cret := xTypeName(TypeVar) | 1404 | cret := xTypeName(TypeVar) | ||
| 1510 | return cret | 1405 | return cret | ||
| 1511 | } | 1406 | } | ||
| @@ -1513,8 +1408,6 @@ func TypeName(TypeVar types.GType) string { | |||||
| 1513 | var xTypeNameFromClass func(*TypeClass) string | 1408 | var xTypeNameFromClass func(*TypeClass) string | ||
| 1514 | 1409 | ||||
| 1515 | func TypeNameFromClass(GClassVar *TypeClass) string { | 1410 | func TypeNameFromClass(GClassVar *TypeClass) string { | ||
| 1516 | - | core.LazyRegister(&xTypeNameFromClass, "GOBJECT", "g_type_name_from_class", false) | |||
| 1517 | - | ||||
| 1518 | cret := xTypeNameFromClass(GClassVar) | 1411 | cret := xTypeNameFromClass(GClassVar) | ||
| 1519 | return cret | 1412 | return cret | ||
| 1520 | } | 1413 | } | ||
| @@ -1522,8 +1415,6 @@ func TypeNameFromClass(GClassVar *TypeClass) string { | |||||
| 1522 | var xTypeNameFromInstance func(*TypeInstance) string | 1415 | var xTypeNameFromInstance func(*TypeInstance) string | ||
| 1523 | 1416 | ||||
| 1524 | func TypeNameFromInstance(InstanceVar *TypeInstance) string { | 1417 | func TypeNameFromInstance(InstanceVar *TypeInstance) string { | ||
| 1525 | - | core.LazyRegister(&xTypeNameFromInstance, "GOBJECT", "g_type_name_from_instance", false) | |||
| 1526 | - | ||||
| 1527 | cret := xTypeNameFromInstance(InstanceVar) | 1418 | cret := xTypeNameFromInstance(InstanceVar) | ||
| 1528 | return cret | 1419 | return cret | ||
| 1529 | } | 1420 | } | ||
| @@ -1538,8 +1429,6 @@ var xTypeNextBase func(types.GType, types.GType) types.GType | |||||
| 1538 | // be used to determine the types and order in which the leaf type is | 1429 | // be used to determine the types and order in which the leaf type is | ||
| 1539 | // descended from the root type. | 1430 | // descended from the root type. | ||
| 1540 | func TypeNextBase(LeafTypeVar types.GType, RootTypeVar types.GType) types.GType { | 1431 | func TypeNextBase(LeafTypeVar types.GType, RootTypeVar types.GType) types.GType { | ||
| 1541 | - | core.LazyRegister(&xTypeNextBase, "GOBJECT", "g_type_next_base", false) | |||
| 1542 | - | ||||
| 1543 | cret := xTypeNextBase(LeafTypeVar, RootTypeVar) | 1432 | cret := xTypeNextBase(LeafTypeVar, RootTypeVar) | ||
| 1544 | return cret | 1433 | return cret | ||
| 1545 | } | 1434 | } | ||
| @@ -1549,8 +1438,6 @@ var xTypeParent func(types.GType) types.GType | |||||
| 1549 | // Return the direct parent type of the passed in type. If the passed | 1438 | // Return the direct parent type of the passed in type. If the passed | ||
| 1550 | // in type has no parent, i.e. is a fundamental type, 0 is returned. | 1439 | // in type has no parent, i.e. is a fundamental type, 0 is returned. | ||
| 1551 | func TypeParent(TypeVar types.GType) types.GType { | 1440 | func TypeParent(TypeVar types.GType) types.GType { | ||
| 1552 | - | core.LazyRegister(&xTypeParent, "GOBJECT", "g_type_parent", false) | |||
| 1553 | - | ||||
| 1554 | cret := xTypeParent(TypeVar) | 1441 | cret := xTypeParent(TypeVar) | ||
| 1555 | return cret | 1442 | return cret | ||
| 1556 | } | 1443 | } | ||
| @@ -1559,8 +1446,6 @@ var xTypeQname func(types.GType) glib.Quark | |||||
| 1559 | 1446 | ||||
| 1560 | // Get the corresponding quark of the type IDs name. | 1447 | // Get the corresponding quark of the type IDs name. | ||
| 1561 | func TypeQname(TypeVar types.GType) glib.Quark { | 1448 | func TypeQname(TypeVar types.GType) glib.Quark { | ||
| 1562 | - | core.LazyRegister(&xTypeQname, "GOBJECT", "g_type_qname", false) | |||
| 1563 | - | ||||
| 1564 | cret := xTypeQname(TypeVar) | 1449 | cret := xTypeQname(TypeVar) | ||
| 1565 | return cret | 1450 | return cret | ||
| 1566 | } | 1451 | } | ||
| @@ -1578,8 +1463,6 @@ var xNewTypeQuery func(types.GType, *TypeQuery) | |||||
| 1578 | // Since GLib 2.78, this function allows queries on dynamic types. Previously | 1463 | // Since GLib 2.78, this function allows queries on dynamic types. Previously | ||
| 1579 | // it only supported static types. | 1464 | // it only supported static types. | ||
| 1580 | func NewTypeQuery(TypeVar types.GType, QueryVar *TypeQuery) { | 1465 | func NewTypeQuery(TypeVar types.GType, QueryVar *TypeQuery) { | ||
| 1581 | - | core.LazyRegister(&xNewTypeQuery, "GOBJECT", "g_type_query", false) | |||
| 1582 | - | ||||
| 1583 | xNewTypeQuery(TypeVar, QueryVar) | 1466 | xNewTypeQuery(TypeVar, QueryVar) | ||
| 1584 | } | 1467 | } | ||
| 1585 | 1468 | ||||
| @@ -1591,8 +1474,6 @@ var xTypeRegisterDynamic func(types.GType, string, uintptr, TypeFlags) types.GTy | |||||
| 1591 | // instances (if not abstract). The value of @flags determines the nature | 1474 | // instances (if not abstract). The value of @flags determines the nature | ||
| 1592 | // (e.g. abstract or not) of the type. | 1475 | // (e.g. abstract or not) of the type. | ||
| 1593 | func TypeRegisterDynamic(ParentTypeVar types.GType, TypeNameVar string, PluginVar TypePlugin, FlagsVar TypeFlags) types.GType { | 1476 | func TypeRegisterDynamic(ParentTypeVar types.GType, TypeNameVar string, PluginVar TypePlugin, FlagsVar TypeFlags) types.GType { | ||
| 1594 | - | core.LazyRegister(&xTypeRegisterDynamic, "GOBJECT", "g_type_register_dynamic", false) | |||
| 1595 | - | ||||
| 1596 | cret := xTypeRegisterDynamic(ParentTypeVar, TypeNameVar, PluginVar.GoPointer(), FlagsVar) | 1477 | cret := xTypeRegisterDynamic(ParentTypeVar, TypeNameVar, PluginVar.GoPointer(), FlagsVar) | ||
| 1597 | return cret | 1478 | return cret | ||
| 1598 | } | 1479 | } | ||
| @@ -1607,8 +1488,6 @@ var xTypeRegisterFundamental func(types.GType, string, *TypeInfo, *TypeFundament | |||||
| 1607 | // @finfo to manage the type and its instances. The value of @flags determines | 1488 | // @finfo to manage the type and its instances. The value of @flags determines | ||
| 1608 | // additional characteristics of the fundamental type. | 1489 | // additional characteristics of the fundamental type. | ||
| 1609 | func TypeRegisterFundamental(TypeIdVar types.GType, TypeNameVar string, InfoVar *TypeInfo, FinfoVar *TypeFundamentalInfo, FlagsVar TypeFlags) types.GType { | 1490 | func TypeRegisterFundamental(TypeIdVar types.GType, TypeNameVar string, InfoVar *TypeInfo, FinfoVar *TypeFundamentalInfo, FlagsVar TypeFlags) types.GType { | ||
| 1610 | - | core.LazyRegister(&xTypeRegisterFundamental, "GOBJECT", "g_type_register_fundamental", false) | |||
| 1611 | - | ||||
| 1612 | cret := xTypeRegisterFundamental(TypeIdVar, TypeNameVar, InfoVar, FinfoVar, FlagsVar) | 1491 | cret := xTypeRegisterFundamental(TypeIdVar, TypeNameVar, InfoVar, FinfoVar, FlagsVar) | ||
| 1613 | return cret | 1492 | return cret | ||
| 1614 | } | 1493 | } | ||
| @@ -1621,8 +1500,6 @@ var xTypeRegisterStatic func(types.GType, string, *TypeInfo, TypeFlags) types.GT | |||||
| 1621 | // instances (if not abstract). The value of @flags determines the nature | 1500 | // instances (if not abstract). The value of @flags determines the nature | ||
| 1622 | // (e.g. abstract or not) of the type. | 1501 | // (e.g. abstract or not) of the type. | ||
| 1623 | func TypeRegisterStatic(ParentTypeVar types.GType, TypeNameVar string, InfoVar *TypeInfo, FlagsVar TypeFlags) types.GType { | 1502 | func TypeRegisterStatic(ParentTypeVar types.GType, TypeNameVar string, InfoVar *TypeInfo, FlagsVar TypeFlags) types.GType { | ||
| 1624 | - | core.LazyRegister(&xTypeRegisterStatic, "GOBJECT", "g_type_register_static", false) | |||
| 1625 | - | ||||
| 1626 | cret := xTypeRegisterStatic(ParentTypeVar, TypeNameVar, InfoVar, FlagsVar) | 1503 | cret := xTypeRegisterStatic(ParentTypeVar, TypeNameVar, InfoVar, FlagsVar) | ||
| 1627 | return cret | 1504 | return cret | ||
| 1628 | } | 1505 | } | ||
| @@ -1634,8 +1511,6 @@ var xTypeRegisterStaticSimple func(types.GType, string, uint, uintptr, uint, uin | |||||
| 1634 | // abstract or not) of the type. It works by filling a #GTypeInfo | 1511 | // abstract or not) of the type. It works by filling a #GTypeInfo | ||
| 1635 | // struct and calling g_type_register_static(). | 1512 | // struct and calling g_type_register_static(). | ||
| 1636 | func TypeRegisterStaticSimple(ParentTypeVar types.GType, TypeNameVar string, ClassSizeVar uint, ClassInitVar *ClassInitFunc, InstanceSizeVar uint, InstanceInitVar *InstanceInitFunc, FlagsVar TypeFlags) types.GType { | 1513 | func TypeRegisterStaticSimple(ParentTypeVar types.GType, TypeNameVar string, ClassSizeVar uint, ClassInitVar *ClassInitFunc, InstanceSizeVar uint, InstanceInitVar *InstanceInitFunc, FlagsVar TypeFlags) types.GType { | ||
| 1637 | - | core.LazyRegister(&xTypeRegisterStaticSimple, "GOBJECT", "g_type_register_static_simple", false) | |||
| 1638 | - | ||||
| 1639 | cret := xTypeRegisterStaticSimple(ParentTypeVar, TypeNameVar, ClassSizeVar, glib.NewCallback(ClassInitVar), InstanceSizeVar, glib.NewCallback(InstanceInitVar), FlagsVar) | 1514 | cret := xTypeRegisterStaticSimple(ParentTypeVar, TypeNameVar, ClassSizeVar, glib.NewCallback(ClassInitVar), InstanceSizeVar, glib.NewCallback(InstanceInitVar), FlagsVar) | ||
| 1640 | return cret | 1515 | return cret | ||
| 1641 | } | 1516 | } | ||
| @@ -1646,8 +1521,6 @@ var xTypeRemoveClassCacheFunc func(uintptr, uintptr) | |||||
| 1646 | // maintained by @cache_func has to be empty when calling | 1521 | // maintained by @cache_func has to be empty when calling | ||
| 1647 | // g_type_remove_class_cache_func() to avoid leaks. | 1522 | // g_type_remove_class_cache_func() to avoid leaks. | ||
| 1648 | func TypeRemoveClassCacheFunc(CacheDataVar uintptr, CacheFuncVar *TypeClassCacheFunc) { | 1523 | func TypeRemoveClassCacheFunc(CacheDataVar uintptr, CacheFuncVar *TypeClassCacheFunc) { | ||
| 1649 | - | core.LazyRegister(&xTypeRemoveClassCacheFunc, "GOBJECT", "g_type_remove_class_cache_func", false) | |||
| 1650 | - | ||||
| 1651 | xTypeRemoveClassCacheFunc(CacheDataVar, glib.NewCallback(CacheFuncVar)) | 1524 | xTypeRemoveClassCacheFunc(CacheDataVar, glib.NewCallback(CacheFuncVar)) | ||
| 1652 | } | 1525 | } | ||
| 1653 | 1526 | ||||
| @@ -1656,8 +1529,6 @@ var xTypeRemoveInterfaceCheck func(uintptr, uintptr) | |||||
| 1656 | // Removes an interface check function added with | 1529 | // Removes an interface check function added with | ||
| 1657 | // g_type_add_interface_check(). | 1530 | // g_type_add_interface_check(). | ||
| 1658 | func TypeRemoveInterfaceCheck(CheckDataVar uintptr, CheckFuncVar *TypeInterfaceCheckFunc) { | 1531 | func TypeRemoveInterfaceCheck(CheckDataVar uintptr, CheckFuncVar *TypeInterfaceCheckFunc) { | ||
| 1659 | - | core.LazyRegister(&xTypeRemoveInterfaceCheck, "GOBJECT", "g_type_remove_interface_check", false) | |||
| 1660 | - | ||||
| 1661 | xTypeRemoveInterfaceCheck(CheckDataVar, glib.NewCallback(CheckFuncVar)) | 1532 | xTypeRemoveInterfaceCheck(CheckDataVar, glib.NewCallback(CheckFuncVar)) | ||
| 1662 | } | 1533 | } | ||
| 1663 | 1534 | ||||
| @@ -1665,16 +1536,12 @@ var xTypeSetQdata func(types.GType, glib.Quark, uintptr) | |||||
| 1665 | 1536 | ||||
| 1666 | // Attaches arbitrary data to a type. | 1537 | // Attaches arbitrary data to a type. | ||
| 1667 | func TypeSetQdata(TypeVar types.GType, QuarkVar glib.Quark, DataVar uintptr) { | 1538 | func TypeSetQdata(TypeVar types.GType, QuarkVar glib.Quark, DataVar uintptr) { | ||
| 1668 | - | core.LazyRegister(&xTypeSetQdata, "GOBJECT", "g_type_set_qdata", false) | |||
| 1669 | - | ||||
| 1670 | xTypeSetQdata(TypeVar, QuarkVar, DataVar) | 1539 | xTypeSetQdata(TypeVar, QuarkVar, DataVar) | ||
| 1671 | } | 1540 | } | ||
| 1672 | 1541 | ||||
| 1673 | var xTypeTestFlags func(types.GType, uint) bool | 1542 | var xTypeTestFlags func(types.GType, uint) bool | ||
| 1674 | 1543 | ||||
| 1675 | func TypeTestFlags(TypeVar types.GType, FlagsVar uint) bool { | 1544 | func TypeTestFlags(TypeVar types.GType, FlagsVar uint) bool { | ||
| 1676 | - | core.LazyRegister(&xTypeTestFlags, "GOBJECT", "g_type_test_flags", false) | |||
| 1677 | - | ||||
| 1678 | cret := xTypeTestFlags(TypeVar, FlagsVar) | 1545 | cret := xTypeTestFlags(TypeVar, FlagsVar) | ||
| 1679 | return cret | 1546 | return cret | ||
| 1680 | } | 1547 | } | ||
| @@ -1687,8 +1554,6 @@ var xTypeValueTablePeek func(types.GType) uintptr | |||||
| 1687 | // that implements or has internal knowledge of the implementation of | 1554 | // that implements or has internal knowledge of the implementation of | ||
| 1688 | // @type. | 1555 | // @type. | ||
| 1689 | func TypeValueTablePeek(TypeVar types.GType) *TypeValueTable { | 1556 | func TypeValueTablePeek(TypeVar types.GType) *TypeValueTable { | ||
| 1690 | - | core.LazyRegister(&xTypeValueTablePeek, "GOBJECT", "g_type_value_table_peek", false) | |||
| 1691 | - | ||||
| 1692 | cret := xTypeValueTablePeek(TypeVar) | 1557 | cret := xTypeValueTablePeek(TypeVar) | ||
| 1693 | if cret == 0 { | 1558 | if cret == 0 { | ||
| 1694 | return nil | 1559 | return nil | ||
| @@ -1699,4 +1564,85 @@ func TypeValueTablePeek(TypeVar types.GType) *TypeValueTable { | |||||
| 1699 | func init() { | 1564 | func init() { | ||
| 1700 | core.SetPackageName("GOBJECT", "gobject-2.0") | 1565 | core.SetPackageName("GOBJECT", "gobject-2.0") | ||
| 1701 | core.SetSharedLibraries("GOBJECT", []string{"libgobject-2.0.so.0", "libgobject-2.0.0.dylib"}) | 1566 | core.SetSharedLibraries("GOBJECT", []string{"libgobject-2.0.so.0", "libgobject-2.0.0.dylib"}) | ||
| 1567 | + | var libs []uintptr | |||
| 1568 | + | for _, libPath := range core.GetPaths("GOBJECT") { | |||
| 1569 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 1570 | + | if err != nil { | |||
| 1571 | + | panic(err) | |||
| 1572 | + | } | |||
| 1573 | + | libs = append(libs, lib) | |||
| 1574 | + | } | |||
| 1575 | + | ||||
| 1576 | + | core.PuregoSafeRegister(&xTypeAddClassCacheFunc, libs, "g_type_add_class_cache_func") | |||
| 1577 | + | core.PuregoSafeRegister(&xTypeAddClassPrivate, libs, "g_type_add_class_private") | |||
| 1578 | + | core.PuregoSafeRegister(&xTypeAddInstancePrivate, libs, "g_type_add_instance_private") | |||
| 1579 | + | core.PuregoSafeRegister(&xTypeAddInterfaceCheck, libs, "g_type_add_interface_check") | |||
| 1580 | + | core.PuregoSafeRegister(&xTypeAddInterfaceDynamic, libs, "g_type_add_interface_dynamic") | |||
| 1581 | + | core.PuregoSafeRegister(&xTypeAddInterfaceStatic, libs, "g_type_add_interface_static") | |||
| 1582 | + | core.PuregoSafeRegister(&xTypeCheckClassCast, libs, "g_type_check_class_cast") | |||
| 1583 | + | core.PuregoSafeRegister(&xTypeCheckClassIsA, libs, "g_type_check_class_is_a") | |||
| 1584 | + | core.PuregoSafeRegister(&xTypeCheckInstance, libs, "g_type_check_instance") | |||
| 1585 | + | core.PuregoSafeRegister(&xTypeCheckInstanceCast, libs, "g_type_check_instance_cast") | |||
| 1586 | + | core.PuregoSafeRegister(&xTypeCheckInstanceIsA, libs, "g_type_check_instance_is_a") | |||
| 1587 | + | core.PuregoSafeRegister(&xTypeCheckInstanceIsFundamentallyA, libs, "g_type_check_instance_is_fundamentally_a") | |||
| 1588 | + | core.PuregoSafeRegister(&xTypeCheckIsValueType, libs, "g_type_check_is_value_type") | |||
| 1589 | + | core.PuregoSafeRegister(&xTypeCheckValue, libs, "g_type_check_value") | |||
| 1590 | + | core.PuregoSafeRegister(&xTypeCheckValueHolds, libs, "g_type_check_value_holds") | |||
| 1591 | + | core.PuregoSafeRegister(&xTypeChildren, libs, "g_type_children") | |||
| 1592 | + | core.PuregoSafeRegister(&xTypeClassAdjustPrivateOffset, libs, "g_type_class_adjust_private_offset") | |||
| 1593 | + | core.PuregoSafeRegister(&xTypeClassGet, libs, "g_type_class_get") | |||
| 1594 | + | core.PuregoSafeRegister(&xTypeClassPeek, libs, "g_type_class_peek") | |||
| 1595 | + | core.PuregoSafeRegister(&xTypeClassPeekStatic, libs, "g_type_class_peek_static") | |||
| 1596 | + | core.PuregoSafeRegister(&xTypeClassRef, libs, "g_type_class_ref") | |||
| 1597 | + | core.PuregoSafeRegister(&xTypeCreateInstance, libs, "g_type_create_instance") | |||
| 1598 | + | core.PuregoSafeRegister(&xTypeDefaultInterfaceGet, libs, "g_type_default_interface_get") | |||
| 1599 | + | core.PuregoSafeRegister(&xTypeDefaultInterfacePeek, libs, "g_type_default_interface_peek") | |||
| 1600 | + | core.PuregoSafeRegister(&xTypeDefaultInterfaceRef, libs, "g_type_default_interface_ref") | |||
| 1601 | + | core.PuregoSafeRegister(&xTypeDefaultInterfaceUnref, libs, "g_type_default_interface_unref") | |||
| 1602 | + | core.PuregoSafeRegister(&xTypeDepth, libs, "g_type_depth") | |||
| 1603 | + | core.PuregoSafeRegister(&xTypeEnsure, libs, "g_type_ensure") | |||
| 1604 | + | core.PuregoSafeRegister(&xTypeFreeInstance, libs, "g_type_free_instance") | |||
| 1605 | + | core.PuregoSafeRegister(&xTypeFromName, libs, "g_type_from_name") | |||
| 1606 | + | core.PuregoSafeRegister(&xTypeFundamental, libs, "g_type_fundamental") | |||
| 1607 | + | core.PuregoSafeRegister(&xTypeFundamentalNext, libs, "g_type_fundamental_next") | |||
| 1608 | + | core.PuregoSafeRegister(&xTypeGetInstanceCount, libs, "g_type_get_instance_count") | |||
| 1609 | + | core.PuregoSafeRegister(&xTypeGetPlugin, libs, "g_type_get_plugin") | |||
| 1610 | + | core.PuregoSafeRegister(&xTypeGetQdata, libs, "g_type_get_qdata") | |||
| 1611 | + | core.PuregoSafeRegister(&xTypeGetTypeRegistrationSerial, libs, "g_type_get_type_registration_serial") | |||
| 1612 | + | core.PuregoSafeRegister(&xTypeInit, libs, "g_type_init") | |||
| 1613 | + | core.PuregoSafeRegister(&xTypeInitWithDebugFlags, libs, "g_type_init_with_debug_flags") | |||
| 1614 | + | core.PuregoSafeRegister(&xTypeInterfaceAddPrerequisite, libs, "g_type_interface_add_prerequisite") | |||
| 1615 | + | core.PuregoSafeRegister(&xTypeInterfaceGetPlugin, libs, "g_type_interface_get_plugin") | |||
| 1616 | + | core.PuregoSafeRegister(&xTypeInterfaceInstantiatablePrerequisite, libs, "g_type_interface_instantiatable_prerequisite") | |||
| 1617 | + | core.PuregoSafeRegister(&xTypeInterfacePeek, libs, "g_type_interface_peek") | |||
| 1618 | + | core.PuregoSafeRegister(&xTypeInterfacePrerequisites, libs, "g_type_interface_prerequisites") | |||
| 1619 | + | core.PuregoSafeRegister(&xTypeInterfaces, libs, "g_type_interfaces") | |||
| 1620 | + | core.PuregoSafeRegister(&xTypeIsA, libs, "g_type_is_a") | |||
| 1621 | + | core.PuregoSafeRegister(&xTypeName, libs, "g_type_name") | |||
| 1622 | + | core.PuregoSafeRegister(&xTypeNameFromClass, libs, "g_type_name_from_class") | |||
| 1623 | + | core.PuregoSafeRegister(&xTypeNameFromInstance, libs, "g_type_name_from_instance") | |||
| 1624 | + | core.PuregoSafeRegister(&xTypeNextBase, libs, "g_type_next_base") | |||
| 1625 | + | core.PuregoSafeRegister(&xTypeParent, libs, "g_type_parent") | |||
| 1626 | + | core.PuregoSafeRegister(&xTypeQname, libs, "g_type_qname") | |||
| 1627 | + | core.PuregoSafeRegister(&xNewTypeQuery, libs, "g_type_query") | |||
| 1628 | + | core.PuregoSafeRegister(&xTypeRegisterDynamic, libs, "g_type_register_dynamic") | |||
| 1629 | + | core.PuregoSafeRegister(&xTypeRegisterFundamental, libs, "g_type_register_fundamental") | |||
| 1630 | + | core.PuregoSafeRegister(&xTypeRegisterStatic, libs, "g_type_register_static") | |||
| 1631 | + | core.PuregoSafeRegister(&xTypeRegisterStaticSimple, libs, "g_type_register_static_simple") | |||
| 1632 | + | core.PuregoSafeRegister(&xTypeRemoveClassCacheFunc, libs, "g_type_remove_class_cache_func") | |||
| 1633 | + | core.PuregoSafeRegister(&xTypeRemoveInterfaceCheck, libs, "g_type_remove_interface_check") | |||
| 1634 | + | core.PuregoSafeRegister(&xTypeSetQdata, libs, "g_type_set_qdata") | |||
| 1635 | + | core.PuregoSafeRegister(&xTypeTestFlags, libs, "g_type_test_flags") | |||
| 1636 | + | core.PuregoSafeRegister(&xTypeValueTablePeek, libs, "g_type_value_table_peek") | |||
| 1637 | + | ||||
| 1638 | + | core.PuregoSafeRegister(&xTypeClassAddPrivate, libs, "g_type_class_add_private") | |||
| 1639 | + | core.PuregoSafeRegister(&xTypeClassGetInstancePrivateOffset, libs, "g_type_class_get_instance_private_offset") | |||
| 1640 | + | core.PuregoSafeRegister(&xTypeClassGetPrivate, libs, "g_type_class_get_private") | |||
| 1641 | + | core.PuregoSafeRegister(&xTypeClassPeekParent, libs, "g_type_class_peek_parent") | |||
| 1642 | + | core.PuregoSafeRegister(&xTypeClassUnref, libs, "g_type_class_unref") | |||
| 1643 | + | core.PuregoSafeRegister(&xTypeClassUnrefUncached, libs, "g_type_class_unref_uncached") | |||
| 1644 | + | ||||
| 1645 | + | core.PuregoSafeRegister(&xTypeInstanceGetPrivate, libs, "g_type_instance_get_private") | |||
| 1646 | + | ||||
| 1647 | + | core.PuregoSafeRegister(&xTypeInterfacePeekParent, libs, "g_type_interface_peek_parent") | |||
| 1702 | } | 1648 | } | ||