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
| @@ -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/gobject/types" | |
| 10 | 11 | ) | |
| @@ -200,7 +201,6 @@ type VariantType struct { | |||
| 200 | 201 | var xVariantTypeGLibType func() types.GType | |
| 201 | 202 | ||
| 202 | 203 | func VariantTypeGLibType() types.GType { | |
| 203 | - | core.LazyRegister(&xVariantTypeGLibType, "GLIB", "g_variant_type_get_gtype", false) | |
| 204 | 204 | return xVariantTypeGLibType() | |
| 205 | 205 | } | |
| 206 | 206 | ||
| @@ -226,8 +226,6 @@ var xNewVariantType func(string) uintptr | |||
| 226 | 226 | // It is a programmer error to call this function with an invalid type | |
| 227 | 227 | // string. Use [func@GLib.VariantType.string_is_valid] if you are unsure. | |
| 228 | 228 | func NewVariantType(TypeStringVar string) *VariantType { | |
| 229 | - | core.LazyRegister(&xNewVariantType, "GLIB", "g_variant_type_new", false) | |
| 230 | - | ||
| 231 | 229 | cret := xNewVariantType(TypeStringVar) | |
| 232 | 230 | if cret == 0 { | |
| 233 | 231 | return nil | |
| @@ -242,8 +240,6 @@ var xNewVariantTypeArray func(*VariantType) uintptr | |||
| 242 | 240 | // | |
| 243 | 241 | // It is appropriate to call [method@GLib.VariantType.first] on the return value. | |
| 244 | 242 | func NewVariantTypeArray(ElementVar *VariantType) *VariantType { | |
| 245 | - | core.LazyRegister(&xNewVariantTypeArray, "GLIB", "g_variant_type_new_array", false) | |
| 246 | - | ||
| 247 | 243 | cret := xNewVariantTypeArray(ElementVar) | |
| 248 | 244 | if cret == 0 { | |
| 249 | 245 | return nil | |
| @@ -258,8 +254,6 @@ var xNewVariantTypeDictEntry func(*VariantType, *VariantType) uintptr | |||
| 258 | 254 | // | |
| 259 | 255 | // It is appropriate to call [method@GLib.VariantType.free] on the return value. | |
| 260 | 256 | func NewVariantTypeDictEntry(KeyVar *VariantType, ValueVar *VariantType) *VariantType { | |
| 261 | - | core.LazyRegister(&xNewVariantTypeDictEntry, "GLIB", "g_variant_type_new_dict_entry", false) | |
| 262 | - | ||
| 263 | 257 | cret := xNewVariantTypeDictEntry(KeyVar, ValueVar) | |
| 264 | 258 | if cret == 0 { | |
| 265 | 259 | return nil | |
| @@ -274,8 +268,6 @@ var xNewVariantTypeMaybe func(*VariantType) uintptr | |||
| 274 | 268 | // | |
| 275 | 269 | // It is appropriate to call [method@GLib.VariantType.free] on the return value. | |
| 276 | 270 | func NewVariantTypeMaybe(ElementVar *VariantType) *VariantType { | |
| 277 | - | core.LazyRegister(&xNewVariantTypeMaybe, "GLIB", "g_variant_type_new_maybe", false) | |
| 278 | - | ||
| 279 | 271 | cret := xNewVariantTypeMaybe(ElementVar) | |
| 280 | 272 | if cret == 0 { | |
| 281 | 273 | return nil | |
| @@ -292,8 +284,6 @@ var xNewVariantTypeTuple func(uintptr, int) uintptr | |||
| 292 | 284 | // | |
| 293 | 285 | // It is appropriate to call [method@GLib.VariantType.free] on the return value. | |
| 294 | 286 | func NewVariantTypeTuple(ItemsVar uintptr, LengthVar int) *VariantType { | |
| 295 | - | core.LazyRegister(&xNewVariantTypeTuple, "GLIB", "g_variant_type_new_tuple", false) | |
| 296 | - | ||
| 297 | 287 | cret := xNewVariantTypeTuple(ItemsVar, LengthVar) | |
| 298 | 288 | if cret == 0 { | |
| 299 | 289 | return nil | |
| @@ -308,8 +298,6 @@ var xVariantTypeCopy func(uintptr) uintptr | |||
| 308 | 298 | // It is appropriate to call [method@GLib.VariantType.free] on the return value. | |
| 309 | 299 | // @type may not be `NULL`. | |
| 310 | 300 | func (x *VariantType) Copy() *VariantType { | |
| 311 | - | core.LazyRegister(&xVariantTypeCopy, "GLIB", "g_variant_type_copy", false) | |
| 312 | - | ||
| 313 | 301 | cret := xVariantTypeCopy(x.GoPointer()) | |
| 314 | 302 | if cret == 0 { | |
| 315 | 303 | return nil | |
| @@ -324,8 +312,6 @@ var xVariantTypeDupString func(uintptr) string | |||
| 324 | 312 | // The returned string is nul-terminated. It is appropriate to call | |
| 325 | 313 | // [func@GLib.free] on the return value. | |
| 326 | 314 | func (x *VariantType) DupString() string { | |
| 327 | - | core.LazyRegister(&xVariantTypeDupString, "GLIB", "g_variant_type_dup_string", false) | |
| 328 | - | ||
| 329 | 315 | cret := xVariantTypeDupString(x.GoPointer()) | |
| 330 | 316 | return cret | |
| 331 | 317 | } | |
| @@ -336,8 +322,6 @@ var xVariantTypeElement func(uintptr) uintptr | |||
| 336 | 322 | // | |
| 337 | 323 | // This function may only be used with array or ‘maybe’ types. | |
| 338 | 324 | func (x *VariantType) Element() *VariantType { | |
| 339 | - | core.LazyRegister(&xVariantTypeElement, "GLIB", "g_variant_type_element", false) | |
| 340 | - | ||
| 341 | 325 | cret := xVariantTypeElement(x.GoPointer()) | |
| 342 | 326 | if cret == 0 { | |
| 343 | 327 | return nil | |
| @@ -358,8 +342,6 @@ var xVariantTypeEqual func(uintptr, uintptr) bool | |||
| 358 | 342 | // allow use with [type@GLib.HashTable] without function pointer casting. For | |
| 359 | 343 | // both arguments, a valid [type@GLib.VariantType] must be provided. | |
| 360 | 344 | func (x *VariantType) Equal(Type2Var uintptr) bool { | |
| 361 | - | core.LazyRegister(&xVariantTypeEqual, "GLIB", "g_variant_type_equal", false) | |
| 362 | - | ||
| 363 | 345 | cret := xVariantTypeEqual(x.GoPointer(), Type2Var) | |
| 364 | 346 | return cret | |
| 365 | 347 | } | |
| @@ -381,8 +363,6 @@ var xVariantTypeFirst func(uintptr) uintptr | |||
| 381 | 363 | // This call, together with [method@GLib.VariantType.next] provides an iterator | |
| 382 | 364 | // interface over tuple and dictionary entry types. | |
| 383 | 365 | func (x *VariantType) First() *VariantType { | |
| 384 | - | core.LazyRegister(&xVariantTypeFirst, "GLIB", "g_variant_type_first", false) | |
| 385 | - | ||
| 386 | 366 | cret := xVariantTypeFirst(x.GoPointer()) | |
| 387 | 367 | if cret == 0 { | |
| 388 | 368 | return nil | |
| @@ -400,8 +380,6 @@ var xVariantTypeFree func(uintptr) | |||
| 400 | 380 | // | |
| 401 | 381 | // Since 2.24 | |
| 402 | 382 | func (x *VariantType) Free() { | |
| 403 | - | core.LazyRegister(&xVariantTypeFree, "GLIB", "g_variant_type_free", false) | |
| 404 | - | ||
| 405 | 383 | xVariantTypeFree(x.GoPointer()) | |
| 406 | 384 | } | |
| 407 | 385 | ||
| @@ -412,8 +390,6 @@ var xVariantTypeGetStringLength func(uintptr) uint | |||
| 412 | 390 | // This function must be used to determine the valid extent of | |
| 413 | 391 | // the memory region returned by [method@GLib.VariantType.peek_string]. | |
| 414 | 392 | func (x *VariantType) GetStringLength() uint { | |
| 415 | - | core.LazyRegister(&xVariantTypeGetStringLength, "GLIB", "g_variant_type_get_string_length", false) | |
| 416 | - | ||
| 417 | 393 | cret := xVariantTypeGetStringLength(x.GoPointer()) | |
| 418 | 394 | return cret | |
| 419 | 395 | } | |
| @@ -426,8 +402,6 @@ var xVariantTypeHash func(uintptr) uint | |||
| 426 | 402 | // [type@GLib.HashTable] without function pointer casting. A valid | |
| 427 | 403 | // [type@GLib.VariantType] must be provided. | |
| 428 | 404 | func (x *VariantType) Hash() uint { | |
| 429 | - | core.LazyRegister(&xVariantTypeHash, "GLIB", "g_variant_type_hash", false) | |
| 430 | - | ||
| 431 | 405 | cret := xVariantTypeHash(x.GoPointer()) | |
| 432 | 406 | return cret | |
| 433 | 407 | } | |
| @@ -442,8 +416,6 @@ var xVariantTypeIsArray func(uintptr) bool | |||
| 442 | 416 | // definite subtype is an array type — `G_VARIANT_TYPE_ARRAY`, for | |
| 443 | 417 | // example. | |
| 444 | 418 | func (x *VariantType) IsArray() bool { | |
| 445 | - | core.LazyRegister(&xVariantTypeIsArray, "GLIB", "g_variant_type_is_array", false) | |
| 446 | - | ||
| 447 | 419 | cret := xVariantTypeIsArray(x.GoPointer()) | |
| 448 | 420 | return cret | |
| 449 | 421 | } | |
| @@ -460,8 +432,6 @@ var xVariantTypeIsBasic func(uintptr) bool | |||
| 460 | 432 | // This function returns `FALSE` for all indefinite types except | |
| 461 | 433 | // `G_VARIANT_TYPE_BASIC`. | |
| 462 | 434 | func (x *VariantType) IsBasic() bool { | |
| 463 | - | core.LazyRegister(&xVariantTypeIsBasic, "GLIB", "g_variant_type_is_basic", false) | |
| 464 | - | ||
| 465 | 435 | cret := xVariantTypeIsBasic(x.GoPointer()) | |
| 466 | 436 | return cret | |
| 467 | 437 | } | |
| @@ -477,8 +447,6 @@ var xVariantTypeIsContainer func(uintptr) bool | |||
| 477 | 447 | // definite subtype is a container — `G_VARIANT_TYPE_ARRAY`, for | |
| 478 | 448 | // example. | |
| 479 | 449 | func (x *VariantType) IsContainer() bool { | |
| 480 | - | core.LazyRegister(&xVariantTypeIsContainer, "GLIB", "g_variant_type_is_container", false) | |
| 481 | - | ||
| 482 | 450 | cret := xVariantTypeIsContainer(x.GoPointer()) | |
| 483 | 451 | return cret | |
| 484 | 452 | } | |
| @@ -496,8 +464,6 @@ var xVariantTypeIsDefinite func(uintptr) bool | |||
| 496 | 464 | // indefinite type like `G_VARIANT_TYPE_ARRAY`, however, will result in | |
| 497 | 465 | // `FALSE` being returned. | |
| 498 | 466 | func (x *VariantType) IsDefinite() bool { | |
| 499 | - | core.LazyRegister(&xVariantTypeIsDefinite, "GLIB", "g_variant_type_is_definite", false) | |
| 500 | - | ||
| 501 | 467 | cret := xVariantTypeIsDefinite(x.GoPointer()) | |
| 502 | 468 | return cret | |
| 503 | 469 | } | |
| @@ -512,8 +478,6 @@ var xVariantTypeIsDictEntry func(uintptr) bool | |||
| 512 | 478 | // definite subtype is a dictionary entry type — | |
| 513 | 479 | // `G_VARIANT_TYPE_DICT_ENTRY`, for example. | |
| 514 | 480 | func (x *VariantType) IsDictEntry() bool { | |
| 515 | - | core.LazyRegister(&xVariantTypeIsDictEntry, "GLIB", "g_variant_type_is_dict_entry", false) | |
| 516 | - | ||
| 517 | 481 | cret := xVariantTypeIsDictEntry(x.GoPointer()) | |
| 518 | 482 | return cret | |
| 519 | 483 | } | |
| @@ -528,8 +492,6 @@ var xVariantTypeIsMaybe func(uintptr) bool | |||
| 528 | 492 | // definite subtype is a ‘maybe’ type — `G_VARIANT_TYPE_MAYBE`, for | |
| 529 | 493 | // example. | |
| 530 | 494 | func (x *VariantType) IsMaybe() bool { | |
| 531 | - | core.LazyRegister(&xVariantTypeIsMaybe, "GLIB", "g_variant_type_is_maybe", false) | |
| 532 | - | ||
| 533 | 495 | cret := xVariantTypeIsMaybe(x.GoPointer()) | |
| 534 | 496 | return cret | |
| 535 | 497 | } | |
| @@ -542,8 +504,6 @@ var xVariantTypeIsSubtypeOf func(uintptr, *VariantType) bool | |||
| 542 | 504 | // types are considered to be subtypes of themselves. Aside from that, | |
| 543 | 505 | // only indefinite types can have subtypes. | |
| 544 | 506 | func (x *VariantType) IsSubtypeOf(SupertypeVar *VariantType) bool { | |
| 545 | - | core.LazyRegister(&xVariantTypeIsSubtypeOf, "GLIB", "g_variant_type_is_subtype_of", false) | |
| 546 | - | ||
| 547 | 507 | cret := xVariantTypeIsSubtypeOf(x.GoPointer(), SupertypeVar) | |
| 548 | 508 | return cret | |
| 549 | 509 | } | |
| @@ -559,8 +519,6 @@ var xVariantTypeIsTuple func(uintptr) bool | |||
| 559 | 519 | // definite subtype is a tuple type — `G_VARIANT_TYPE_TUPLE`, for | |
| 560 | 520 | // example. | |
| 561 | 521 | func (x *VariantType) IsTuple() bool { | |
| 562 | - | core.LazyRegister(&xVariantTypeIsTuple, "GLIB", "g_variant_type_is_tuple", false) | |
| 563 | - | ||
| 564 | 522 | cret := xVariantTypeIsTuple(x.GoPointer()) | |
| 565 | 523 | return cret | |
| 566 | 524 | } | |
| @@ -569,8 +527,6 @@ var xVariantTypeIsVariant func(uintptr) bool | |||
| 569 | 527 | ||
| 570 | 528 | // Determines if the given @type is the variant type. | |
| 571 | 529 | func (x *VariantType) IsVariant() bool { | |
| 572 | - | core.LazyRegister(&xVariantTypeIsVariant, "GLIB", "g_variant_type_is_variant", false) | |
| 573 | - | ||
| 574 | 530 | cret := xVariantTypeIsVariant(x.GoPointer()) | |
| 575 | 531 | return cret | |
| 576 | 532 | } | |
| @@ -583,8 +539,6 @@ var xVariantTypeKey func(uintptr) uintptr | |||
| 583 | 539 | // than the additional restriction, this call is equivalent to | |
| 584 | 540 | // [method@GLib.VariantType.first]. | |
| 585 | 541 | func (x *VariantType) Key() *VariantType { | |
| 586 | - | core.LazyRegister(&xVariantTypeKey, "GLIB", "g_variant_type_key", false) | |
| 587 | - | ||
| 588 | 542 | cret := xVariantTypeKey(x.GoPointer()) | |
| 589 | 543 | if cret == 0 { | |
| 590 | 544 | return nil | |
| @@ -604,8 +558,6 @@ var xVariantTypeNItems func(uintptr) uint | |||
| 604 | 558 | // In the case of a dictionary entry type, this function will always | |
| 605 | 559 | // return `2`. | |
| 606 | 560 | func (x *VariantType) NItems() uint { | |
| 607 | - | core.LazyRegister(&xVariantTypeNItems, "GLIB", "g_variant_type_n_items", false) | |
| 608 | - | ||
| 609 | 561 | cret := xVariantTypeNItems(x.GoPointer()) | |
| 610 | 562 | return cret | |
| 611 | 563 | } | |
| @@ -624,8 +576,6 @@ var xVariantTypeNext func(uintptr) uintptr | |||
| 624 | 576 | // | |
| 625 | 577 | // For tuples, `NULL` is returned when @type is the last item in the tuple. | |
| 626 | 578 | func (x *VariantType) Next() *VariantType { | |
| 627 | - | core.LazyRegister(&xVariantTypeNext, "GLIB", "g_variant_type_next", false) | |
| 628 | - | ||
| 629 | 579 | cret := xVariantTypeNext(x.GoPointer()) | |
| 630 | 580 | if cret == 0 { | |
| 631 | 581 | return nil | |
| @@ -642,8 +592,6 @@ var xVariantTypePeekString func(uintptr) string | |||
| 642 | 592 | // | |
| 643 | 593 | // To get a nul-terminated string, see [method@GLib.VariantType.dup_string]. | |
| 644 | 594 | func (x *VariantType) PeekString() string { | |
| 645 | - | core.LazyRegister(&xVariantTypePeekString, "GLIB", "g_variant_type_peek_string", false) | |
| 646 | - | ||
| 647 | 595 | cret := xVariantTypePeekString(x.GoPointer()) | |
| 648 | 596 | return cret | |
| 649 | 597 | } | |
| @@ -654,8 +602,6 @@ var xVariantTypeValue func(uintptr) uintptr | |||
| 654 | 602 | // | |
| 655 | 603 | // This function may only be used with a dictionary entry type. | |
| 656 | 604 | func (x *VariantType) Value() *VariantType { | |
| 657 | - | core.LazyRegister(&xVariantTypeValue, "GLIB", "g_variant_type_value", false) | |
| 658 | - | ||
| 659 | 605 | cret := xVariantTypeValue(x.GoPointer()) | |
| 660 | 606 | if cret == 0 { | |
| 661 | 607 | return nil | |
| @@ -666,8 +612,6 @@ func (x *VariantType) Value() *VariantType { | |||
| 666 | 612 | var xVariantTypeChecked func(string) uintptr | |
| 667 | 613 | ||
| 668 | 614 | func VariantTypeChecked(TypeStringVar string) *VariantType { | |
| 669 | - | core.LazyRegister(&xVariantTypeChecked, "GLIB", "g_variant_type_checked_", false) | |
| 670 | - | ||
| 671 | 615 | cret := xVariantTypeChecked(TypeStringVar) | |
| 672 | 616 | if cret == 0 { | |
| 673 | 617 | return nil | |
| @@ -678,8 +622,6 @@ func VariantTypeChecked(TypeStringVar string) *VariantType { | |||
| 678 | 622 | var xVariantTypeStringGetDepth func(string) uint | |
| 679 | 623 | ||
| 680 | 624 | func VariantTypeStringGetDepth(TypeStringVar string) uint { | |
| 681 | - | core.LazyRegister(&xVariantTypeStringGetDepth, "GLIB", "g_variant_type_string_get_depth_", false) | |
| 682 | - | ||
| 683 | 625 | cret := xVariantTypeStringGetDepth(TypeStringVar) | |
| 684 | 626 | return cret | |
| 685 | 627 | } | |
| @@ -692,8 +634,6 @@ var xVariantTypeStringIsValid func(string) bool | |||
| 692 | 634 | // This call is equivalent to calling [func@GLib.VariantType.string_scan] and | |
| 693 | 635 | // confirming that the following character is a nul terminator. | |
| 694 | 636 | func VariantTypeStringIsValid(TypeStringVar string) bool { | |
| 695 | - | core.LazyRegister(&xVariantTypeStringIsValid, "GLIB", "g_variant_type_string_is_valid", false) | |
| 696 | - | ||
| 697 | 637 | cret := xVariantTypeStringIsValid(TypeStringVar) | |
| 698 | 638 | return cret | |
| 699 | 639 | } | |
| @@ -715,8 +655,6 @@ var xVariantTypeStringScan func(string, uintptr, *string) bool | |||
| 715 | 655 | // For the simple case of checking if a string is a valid type string, | |
| 716 | 656 | // see [func@GLib.VariantType.string_is_valid]. | |
| 717 | 657 | func VariantTypeStringScan(StringVar string, LimitVar *string, EndptrVar *string) bool { | |
| 718 | - | core.LazyRegister(&xVariantTypeStringScan, "GLIB", "g_variant_type_string_scan", false) | |
| 719 | - | ||
| 720 | 658 | LimitVarPtr := core.GStrdupNullable(LimitVar) | |
| 721 | 659 | defer core.GFreeNullable(LimitVarPtr) | |
| 722 | 660 | ||
| @@ -727,4 +665,48 @@ func VariantTypeStringScan(StringVar string, LimitVar *string, EndptrVar *string | |||
| 727 | 665 | func init() { | |
| 728 | 666 | core.SetPackageName("GLIB", "glib-2.0") | |
| 729 | 667 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | |
| 668 | + | var libs []uintptr | |
| 669 | + | for _, libPath := range core.GetPaths("GLIB") { | |
| 670 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 671 | + | if err != nil { | |
| 672 | + | panic(err) | |
| 673 | + | } | |
| 674 | + | libs = append(libs, lib) | |
| 675 | + | } | |
| 676 | + | ||
| 677 | + | core.PuregoSafeRegister(&xVariantTypeChecked, libs, "g_variant_type_checked_") | |
| 678 | + | core.PuregoSafeRegister(&xVariantTypeStringGetDepth, libs, "g_variant_type_string_get_depth_") | |
| 679 | + | core.PuregoSafeRegister(&xVariantTypeStringIsValid, libs, "g_variant_type_string_is_valid") | |
| 680 | + | core.PuregoSafeRegister(&xVariantTypeStringScan, libs, "g_variant_type_string_scan") | |
| 681 | + | ||
| 682 | + | core.PuregoSafeRegister(&xVariantTypeGLibType, libs, "g_variant_type_get_gtype") | |
| 683 | + | ||
| 684 | + | core.PuregoSafeRegister(&xNewVariantType, libs, "g_variant_type_new") | |
| 685 | + | core.PuregoSafeRegister(&xNewVariantTypeArray, libs, "g_variant_type_new_array") | |
| 686 | + | core.PuregoSafeRegister(&xNewVariantTypeDictEntry, libs, "g_variant_type_new_dict_entry") | |
| 687 | + | core.PuregoSafeRegister(&xNewVariantTypeMaybe, libs, "g_variant_type_new_maybe") | |
| 688 | + | core.PuregoSafeRegister(&xNewVariantTypeTuple, libs, "g_variant_type_new_tuple") | |
| 689 | + | ||
| 690 | + | core.PuregoSafeRegister(&xVariantTypeCopy, libs, "g_variant_type_copy") | |
| 691 | + | core.PuregoSafeRegister(&xVariantTypeDupString, libs, "g_variant_type_dup_string") | |
| 692 | + | core.PuregoSafeRegister(&xVariantTypeElement, libs, "g_variant_type_element") | |
| 693 | + | core.PuregoSafeRegister(&xVariantTypeEqual, libs, "g_variant_type_equal") | |
| 694 | + | core.PuregoSafeRegister(&xVariantTypeFirst, libs, "g_variant_type_first") | |
| 695 | + | core.PuregoSafeRegister(&xVariantTypeFree, libs, "g_variant_type_free") | |
| 696 | + | core.PuregoSafeRegister(&xVariantTypeGetStringLength, libs, "g_variant_type_get_string_length") | |
| 697 | + | core.PuregoSafeRegister(&xVariantTypeHash, libs, "g_variant_type_hash") | |
| 698 | + | core.PuregoSafeRegister(&xVariantTypeIsArray, libs, "g_variant_type_is_array") | |
| 699 | + | core.PuregoSafeRegister(&xVariantTypeIsBasic, libs, "g_variant_type_is_basic") | |
| 700 | + | core.PuregoSafeRegister(&xVariantTypeIsContainer, libs, "g_variant_type_is_container") | |
| 701 | + | core.PuregoSafeRegister(&xVariantTypeIsDefinite, libs, "g_variant_type_is_definite") | |
| 702 | + | core.PuregoSafeRegister(&xVariantTypeIsDictEntry, libs, "g_variant_type_is_dict_entry") | |
| 703 | + | core.PuregoSafeRegister(&xVariantTypeIsMaybe, libs, "g_variant_type_is_maybe") | |
| 704 | + | core.PuregoSafeRegister(&xVariantTypeIsSubtypeOf, libs, "g_variant_type_is_subtype_of") | |
| 705 | + | core.PuregoSafeRegister(&xVariantTypeIsTuple, libs, "g_variant_type_is_tuple") | |
| 706 | + | core.PuregoSafeRegister(&xVariantTypeIsVariant, libs, "g_variant_type_is_variant") | |
| 707 | + | core.PuregoSafeRegister(&xVariantTypeKey, libs, "g_variant_type_key") | |
| 708 | + | core.PuregoSafeRegister(&xVariantTypeNItems, libs, "g_variant_type_n_items") | |
| 709 | + | core.PuregoSafeRegister(&xVariantTypeNext, libs, "g_variant_type_next") | |
| 710 | + | core.PuregoSafeRegister(&xVariantTypePeekString, libs, "g_variant_type_peek_string") | |
| 711 | + | core.PuregoSafeRegister(&xVariantTypeValue, libs, "g_variant_type_value") | |
| 730 | 712 | } | |
| @@ -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/gobject/types" | 10 | "github.com/bnema/puregotk/v4/gobject/types" | ||
| 10 | ) | 11 | ) | ||
| @@ -200,7 +201,6 @@ type VariantType struct { | |||||
| 200 | var xVariantTypeGLibType func() types.GType | 201 | var xVariantTypeGLibType func() types.GType | ||
| 201 | 202 | ||||
| 202 | func VariantTypeGLibType() types.GType { | 203 | func VariantTypeGLibType() types.GType { | ||
| 203 | - | core.LazyRegister(&xVariantTypeGLibType, "GLIB", "g_variant_type_get_gtype", false) | |||
| 204 | return xVariantTypeGLibType() | 204 | return xVariantTypeGLibType() | ||
| 205 | } | 205 | } | ||
| 206 | 206 | ||||
| @@ -226,8 +226,6 @@ var xNewVariantType func(string) uintptr | |||||
| 226 | // It is a programmer error to call this function with an invalid type | 226 | // It is a programmer error to call this function with an invalid type | ||
| 227 | // string. Use [func@GLib.VariantType.string_is_valid] if you are unsure. | 227 | // string. Use [func@GLib.VariantType.string_is_valid] if you are unsure. | ||
| 228 | func NewVariantType(TypeStringVar string) *VariantType { | 228 | func NewVariantType(TypeStringVar string) *VariantType { | ||
| 229 | - | core.LazyRegister(&xNewVariantType, "GLIB", "g_variant_type_new", false) | |||
| 230 | - | ||||
| 231 | cret := xNewVariantType(TypeStringVar) | 229 | cret := xNewVariantType(TypeStringVar) | ||
| 232 | if cret == 0 { | 230 | if cret == 0 { | ||
| 233 | return nil | 231 | return nil | ||
| @@ -242,8 +240,6 @@ var xNewVariantTypeArray func(*VariantType) uintptr | |||||
| 242 | // | 240 | // | ||
| 243 | // It is appropriate to call [method@GLib.VariantType.first] on the return value. | 241 | // It is appropriate to call [method@GLib.VariantType.first] on the return value. | ||
| 244 | func NewVariantTypeArray(ElementVar *VariantType) *VariantType { | 242 | func NewVariantTypeArray(ElementVar *VariantType) *VariantType { | ||
| 245 | - | core.LazyRegister(&xNewVariantTypeArray, "GLIB", "g_variant_type_new_array", false) | |||
| 246 | - | ||||
| 247 | cret := xNewVariantTypeArray(ElementVar) | 243 | cret := xNewVariantTypeArray(ElementVar) | ||
| 248 | if cret == 0 { | 244 | if cret == 0 { | ||
| 249 | return nil | 245 | return nil | ||
| @@ -258,8 +254,6 @@ var xNewVariantTypeDictEntry func(*VariantType, *VariantType) uintptr | |||||
| 258 | // | 254 | // | ||
| 259 | // It is appropriate to call [method@GLib.VariantType.free] on the return value. | 255 | // It is appropriate to call [method@GLib.VariantType.free] on the return value. | ||
| 260 | func NewVariantTypeDictEntry(KeyVar *VariantType, ValueVar *VariantType) *VariantType { | 256 | func NewVariantTypeDictEntry(KeyVar *VariantType, ValueVar *VariantType) *VariantType { | ||
| 261 | - | core.LazyRegister(&xNewVariantTypeDictEntry, "GLIB", "g_variant_type_new_dict_entry", false) | |||
| 262 | - | ||||
| 263 | cret := xNewVariantTypeDictEntry(KeyVar, ValueVar) | 257 | cret := xNewVariantTypeDictEntry(KeyVar, ValueVar) | ||
| 264 | if cret == 0 { | 258 | if cret == 0 { | ||
| 265 | return nil | 259 | return nil | ||
| @@ -274,8 +268,6 @@ var xNewVariantTypeMaybe func(*VariantType) uintptr | |||||
| 274 | // | 268 | // | ||
| 275 | // It is appropriate to call [method@GLib.VariantType.free] on the return value. | 269 | // It is appropriate to call [method@GLib.VariantType.free] on the return value. | ||
| 276 | func NewVariantTypeMaybe(ElementVar *VariantType) *VariantType { | 270 | func NewVariantTypeMaybe(ElementVar *VariantType) *VariantType { | ||
| 277 | - | core.LazyRegister(&xNewVariantTypeMaybe, "GLIB", "g_variant_type_new_maybe", false) | |||
| 278 | - | ||||
| 279 | cret := xNewVariantTypeMaybe(ElementVar) | 271 | cret := xNewVariantTypeMaybe(ElementVar) | ||
| 280 | if cret == 0 { | 272 | if cret == 0 { | ||
| 281 | return nil | 273 | return nil | ||
| @@ -292,8 +284,6 @@ var xNewVariantTypeTuple func(uintptr, int) uintptr | |||||
| 292 | // | 284 | // | ||
| 293 | // It is appropriate to call [method@GLib.VariantType.free] on the return value. | 285 | // It is appropriate to call [method@GLib.VariantType.free] on the return value. | ||
| 294 | func NewVariantTypeTuple(ItemsVar uintptr, LengthVar int) *VariantType { | 286 | func NewVariantTypeTuple(ItemsVar uintptr, LengthVar int) *VariantType { | ||
| 295 | - | core.LazyRegister(&xNewVariantTypeTuple, "GLIB", "g_variant_type_new_tuple", false) | |||
| 296 | - | ||||
| 297 | cret := xNewVariantTypeTuple(ItemsVar, LengthVar) | 287 | cret := xNewVariantTypeTuple(ItemsVar, LengthVar) | ||
| 298 | if cret == 0 { | 288 | if cret == 0 { | ||
| 299 | return nil | 289 | return nil | ||
| @@ -308,8 +298,6 @@ var xVariantTypeCopy func(uintptr) uintptr | |||||
| 308 | // It is appropriate to call [method@GLib.VariantType.free] on the return value. | 298 | // It is appropriate to call [method@GLib.VariantType.free] on the return value. | ||
| 309 | // @type may not be `NULL`. | 299 | // @type may not be `NULL`. | ||
| 310 | func (x *VariantType) Copy() *VariantType { | 300 | func (x *VariantType) Copy() *VariantType { | ||
| 311 | - | core.LazyRegister(&xVariantTypeCopy, "GLIB", "g_variant_type_copy", false) | |||
| 312 | - | ||||
| 313 | cret := xVariantTypeCopy(x.GoPointer()) | 301 | cret := xVariantTypeCopy(x.GoPointer()) | ||
| 314 | if cret == 0 { | 302 | if cret == 0 { | ||
| 315 | return nil | 303 | return nil | ||
| @@ -324,8 +312,6 @@ var xVariantTypeDupString func(uintptr) string | |||||
| 324 | // The returned string is nul-terminated. It is appropriate to call | 312 | // The returned string is nul-terminated. It is appropriate to call | ||
| 325 | // [func@GLib.free] on the return value. | 313 | // [func@GLib.free] on the return value. | ||
| 326 | func (x *VariantType) DupString() string { | 314 | func (x *VariantType) DupString() string { | ||
| 327 | - | core.LazyRegister(&xVariantTypeDupString, "GLIB", "g_variant_type_dup_string", false) | |||
| 328 | - | ||||
| 329 | cret := xVariantTypeDupString(x.GoPointer()) | 315 | cret := xVariantTypeDupString(x.GoPointer()) | ||
| 330 | return cret | 316 | return cret | ||
| 331 | } | 317 | } | ||
| @@ -336,8 +322,6 @@ var xVariantTypeElement func(uintptr) uintptr | |||||
| 336 | // | 322 | // | ||
| 337 | // This function may only be used with array or ‘maybe’ types. | 323 | // This function may only be used with array or ‘maybe’ types. | ||
| 338 | func (x *VariantType) Element() *VariantType { | 324 | func (x *VariantType) Element() *VariantType { | ||
| 339 | - | core.LazyRegister(&xVariantTypeElement, "GLIB", "g_variant_type_element", false) | |||
| 340 | - | ||||
| 341 | cret := xVariantTypeElement(x.GoPointer()) | 325 | cret := xVariantTypeElement(x.GoPointer()) | ||
| 342 | if cret == 0 { | 326 | if cret == 0 { | ||
| 343 | return nil | 327 | return nil | ||
| @@ -358,8 +342,6 @@ var xVariantTypeEqual func(uintptr, uintptr) bool | |||||
| 358 | // allow use with [type@GLib.HashTable] without function pointer casting. For | 342 | // allow use with [type@GLib.HashTable] without function pointer casting. For | ||
| 359 | // both arguments, a valid [type@GLib.VariantType] must be provided. | 343 | // both arguments, a valid [type@GLib.VariantType] must be provided. | ||
| 360 | func (x *VariantType) Equal(Type2Var uintptr) bool { | 344 | func (x *VariantType) Equal(Type2Var uintptr) bool { | ||
| 361 | - | core.LazyRegister(&xVariantTypeEqual, "GLIB", "g_variant_type_equal", false) | |||
| 362 | - | ||||
| 363 | cret := xVariantTypeEqual(x.GoPointer(), Type2Var) | 345 | cret := xVariantTypeEqual(x.GoPointer(), Type2Var) | ||
| 364 | return cret | 346 | return cret | ||
| 365 | } | 347 | } | ||
| @@ -381,8 +363,6 @@ var xVariantTypeFirst func(uintptr) uintptr | |||||
| 381 | // This call, together with [method@GLib.VariantType.next] provides an iterator | 363 | // This call, together with [method@GLib.VariantType.next] provides an iterator | ||
| 382 | // interface over tuple and dictionary entry types. | 364 | // interface over tuple and dictionary entry types. | ||
| 383 | func (x *VariantType) First() *VariantType { | 365 | func (x *VariantType) First() *VariantType { | ||
| 384 | - | core.LazyRegister(&xVariantTypeFirst, "GLIB", "g_variant_type_first", false) | |||
| 385 | - | ||||
| 386 | cret := xVariantTypeFirst(x.GoPointer()) | 366 | cret := xVariantTypeFirst(x.GoPointer()) | ||
| 387 | if cret == 0 { | 367 | if cret == 0 { | ||
| 388 | return nil | 368 | return nil | ||
| @@ -400,8 +380,6 @@ var xVariantTypeFree func(uintptr) | |||||
| 400 | // | 380 | // | ||
| 401 | // Since 2.24 | 381 | // Since 2.24 | ||
| 402 | func (x *VariantType) Free() { | 382 | func (x *VariantType) Free() { | ||
| 403 | - | core.LazyRegister(&xVariantTypeFree, "GLIB", "g_variant_type_free", false) | |||
| 404 | - | ||||
| 405 | xVariantTypeFree(x.GoPointer()) | 383 | xVariantTypeFree(x.GoPointer()) | ||
| 406 | } | 384 | } | ||
| 407 | 385 | ||||
| @@ -412,8 +390,6 @@ var xVariantTypeGetStringLength func(uintptr) uint | |||||
| 412 | // This function must be used to determine the valid extent of | 390 | // This function must be used to determine the valid extent of | ||
| 413 | // the memory region returned by [method@GLib.VariantType.peek_string]. | 391 | // the memory region returned by [method@GLib.VariantType.peek_string]. | ||
| 414 | func (x *VariantType) GetStringLength() uint { | 392 | func (x *VariantType) GetStringLength() uint { | ||
| 415 | - | core.LazyRegister(&xVariantTypeGetStringLength, "GLIB", "g_variant_type_get_string_length", false) | |||
| 416 | - | ||||
| 417 | cret := xVariantTypeGetStringLength(x.GoPointer()) | 393 | cret := xVariantTypeGetStringLength(x.GoPointer()) | ||
| 418 | return cret | 394 | return cret | ||
| 419 | } | 395 | } | ||
| @@ -426,8 +402,6 @@ var xVariantTypeHash func(uintptr) uint | |||||
| 426 | // [type@GLib.HashTable] without function pointer casting. A valid | 402 | // [type@GLib.HashTable] without function pointer casting. A valid | ||
| 427 | // [type@GLib.VariantType] must be provided. | 403 | // [type@GLib.VariantType] must be provided. | ||
| 428 | func (x *VariantType) Hash() uint { | 404 | func (x *VariantType) Hash() uint { | ||
| 429 | - | core.LazyRegister(&xVariantTypeHash, "GLIB", "g_variant_type_hash", false) | |||
| 430 | - | ||||
| 431 | cret := xVariantTypeHash(x.GoPointer()) | 405 | cret := xVariantTypeHash(x.GoPointer()) | ||
| 432 | return cret | 406 | return cret | ||
| 433 | } | 407 | } | ||
| @@ -442,8 +416,6 @@ var xVariantTypeIsArray func(uintptr) bool | |||||
| 442 | // definite subtype is an array type — `G_VARIANT_TYPE_ARRAY`, for | 416 | // definite subtype is an array type — `G_VARIANT_TYPE_ARRAY`, for | ||
| 443 | // example. | 417 | // example. | ||
| 444 | func (x *VariantType) IsArray() bool { | 418 | func (x *VariantType) IsArray() bool { | ||
| 445 | - | core.LazyRegister(&xVariantTypeIsArray, "GLIB", "g_variant_type_is_array", false) | |||
| 446 | - | ||||
| 447 | cret := xVariantTypeIsArray(x.GoPointer()) | 419 | cret := xVariantTypeIsArray(x.GoPointer()) | ||
| 448 | return cret | 420 | return cret | ||
| 449 | } | 421 | } | ||
| @@ -460,8 +432,6 @@ var xVariantTypeIsBasic func(uintptr) bool | |||||
| 460 | // This function returns `FALSE` for all indefinite types except | 432 | // This function returns `FALSE` for all indefinite types except | ||
| 461 | // `G_VARIANT_TYPE_BASIC`. | 433 | // `G_VARIANT_TYPE_BASIC`. | ||
| 462 | func (x *VariantType) IsBasic() bool { | 434 | func (x *VariantType) IsBasic() bool { | ||
| 463 | - | core.LazyRegister(&xVariantTypeIsBasic, "GLIB", "g_variant_type_is_basic", false) | |||
| 464 | - | ||||
| 465 | cret := xVariantTypeIsBasic(x.GoPointer()) | 435 | cret := xVariantTypeIsBasic(x.GoPointer()) | ||
| 466 | return cret | 436 | return cret | ||
| 467 | } | 437 | } | ||
| @@ -477,8 +447,6 @@ var xVariantTypeIsContainer func(uintptr) bool | |||||
| 477 | // definite subtype is a container — `G_VARIANT_TYPE_ARRAY`, for | 447 | // definite subtype is a container — `G_VARIANT_TYPE_ARRAY`, for | ||
| 478 | // example. | 448 | // example. | ||
| 479 | func (x *VariantType) IsContainer() bool { | 449 | func (x *VariantType) IsContainer() bool { | ||
| 480 | - | core.LazyRegister(&xVariantTypeIsContainer, "GLIB", "g_variant_type_is_container", false) | |||
| 481 | - | ||||
| 482 | cret := xVariantTypeIsContainer(x.GoPointer()) | 450 | cret := xVariantTypeIsContainer(x.GoPointer()) | ||
| 483 | return cret | 451 | return cret | ||
| 484 | } | 452 | } | ||
| @@ -496,8 +464,6 @@ var xVariantTypeIsDefinite func(uintptr) bool | |||||
| 496 | // indefinite type like `G_VARIANT_TYPE_ARRAY`, however, will result in | 464 | // indefinite type like `G_VARIANT_TYPE_ARRAY`, however, will result in | ||
| 497 | // `FALSE` being returned. | 465 | // `FALSE` being returned. | ||
| 498 | func (x *VariantType) IsDefinite() bool { | 466 | func (x *VariantType) IsDefinite() bool { | ||
| 499 | - | core.LazyRegister(&xVariantTypeIsDefinite, "GLIB", "g_variant_type_is_definite", false) | |||
| 500 | - | ||||
| 501 | cret := xVariantTypeIsDefinite(x.GoPointer()) | 467 | cret := xVariantTypeIsDefinite(x.GoPointer()) | ||
| 502 | return cret | 468 | return cret | ||
| 503 | } | 469 | } | ||
| @@ -512,8 +478,6 @@ var xVariantTypeIsDictEntry func(uintptr) bool | |||||
| 512 | // definite subtype is a dictionary entry type — | 478 | // definite subtype is a dictionary entry type — | ||
| 513 | // `G_VARIANT_TYPE_DICT_ENTRY`, for example. | 479 | // `G_VARIANT_TYPE_DICT_ENTRY`, for example. | ||
| 514 | func (x *VariantType) IsDictEntry() bool { | 480 | func (x *VariantType) IsDictEntry() bool { | ||
| 515 | - | core.LazyRegister(&xVariantTypeIsDictEntry, "GLIB", "g_variant_type_is_dict_entry", false) | |||
| 516 | - | ||||
| 517 | cret := xVariantTypeIsDictEntry(x.GoPointer()) | 481 | cret := xVariantTypeIsDictEntry(x.GoPointer()) | ||
| 518 | return cret | 482 | return cret | ||
| 519 | } | 483 | } | ||
| @@ -528,8 +492,6 @@ var xVariantTypeIsMaybe func(uintptr) bool | |||||
| 528 | // definite subtype is a ‘maybe’ type — `G_VARIANT_TYPE_MAYBE`, for | 492 | // definite subtype is a ‘maybe’ type — `G_VARIANT_TYPE_MAYBE`, for | ||
| 529 | // example. | 493 | // example. | ||
| 530 | func (x *VariantType) IsMaybe() bool { | 494 | func (x *VariantType) IsMaybe() bool { | ||
| 531 | - | core.LazyRegister(&xVariantTypeIsMaybe, "GLIB", "g_variant_type_is_maybe", false) | |||
| 532 | - | ||||
| 533 | cret := xVariantTypeIsMaybe(x.GoPointer()) | 495 | cret := xVariantTypeIsMaybe(x.GoPointer()) | ||
| 534 | return cret | 496 | return cret | ||
| 535 | } | 497 | } | ||
| @@ -542,8 +504,6 @@ var xVariantTypeIsSubtypeOf func(uintptr, *VariantType) bool | |||||
| 542 | // types are considered to be subtypes of themselves. Aside from that, | 504 | // types are considered to be subtypes of themselves. Aside from that, | ||
| 543 | // only indefinite types can have subtypes. | 505 | // only indefinite types can have subtypes. | ||
| 544 | func (x *VariantType) IsSubtypeOf(SupertypeVar *VariantType) bool { | 506 | func (x *VariantType) IsSubtypeOf(SupertypeVar *VariantType) bool { | ||
| 545 | - | core.LazyRegister(&xVariantTypeIsSubtypeOf, "GLIB", "g_variant_type_is_subtype_of", false) | |||
| 546 | - | ||||
| 547 | cret := xVariantTypeIsSubtypeOf(x.GoPointer(), SupertypeVar) | 507 | cret := xVariantTypeIsSubtypeOf(x.GoPointer(), SupertypeVar) | ||
| 548 | return cret | 508 | return cret | ||
| 549 | } | 509 | } | ||
| @@ -559,8 +519,6 @@ var xVariantTypeIsTuple func(uintptr) bool | |||||
| 559 | // definite subtype is a tuple type — `G_VARIANT_TYPE_TUPLE`, for | 519 | // definite subtype is a tuple type — `G_VARIANT_TYPE_TUPLE`, for | ||
| 560 | // example. | 520 | // example. | ||
| 561 | func (x *VariantType) IsTuple() bool { | 521 | func (x *VariantType) IsTuple() bool { | ||
| 562 | - | core.LazyRegister(&xVariantTypeIsTuple, "GLIB", "g_variant_type_is_tuple", false) | |||
| 563 | - | ||||
| 564 | cret := xVariantTypeIsTuple(x.GoPointer()) | 522 | cret := xVariantTypeIsTuple(x.GoPointer()) | ||
| 565 | return cret | 523 | return cret | ||
| 566 | } | 524 | } | ||
| @@ -569,8 +527,6 @@ var xVariantTypeIsVariant func(uintptr) bool | |||||
| 569 | 527 | ||||
| 570 | // Determines if the given @type is the variant type. | 528 | // Determines if the given @type is the variant type. | ||
| 571 | func (x *VariantType) IsVariant() bool { | 529 | func (x *VariantType) IsVariant() bool { | ||
| 572 | - | core.LazyRegister(&xVariantTypeIsVariant, "GLIB", "g_variant_type_is_variant", false) | |||
| 573 | - | ||||
| 574 | cret := xVariantTypeIsVariant(x.GoPointer()) | 530 | cret := xVariantTypeIsVariant(x.GoPointer()) | ||
| 575 | return cret | 531 | return cret | ||
| 576 | } | 532 | } | ||
| @@ -583,8 +539,6 @@ var xVariantTypeKey func(uintptr) uintptr | |||||
| 583 | // than the additional restriction, this call is equivalent to | 539 | // than the additional restriction, this call is equivalent to | ||
| 584 | // [method@GLib.VariantType.first]. | 540 | // [method@GLib.VariantType.first]. | ||
| 585 | func (x *VariantType) Key() *VariantType { | 541 | func (x *VariantType) Key() *VariantType { | ||
| 586 | - | core.LazyRegister(&xVariantTypeKey, "GLIB", "g_variant_type_key", false) | |||
| 587 | - | ||||
| 588 | cret := xVariantTypeKey(x.GoPointer()) | 542 | cret := xVariantTypeKey(x.GoPointer()) | ||
| 589 | if cret == 0 { | 543 | if cret == 0 { | ||
| 590 | return nil | 544 | return nil | ||
| @@ -604,8 +558,6 @@ var xVariantTypeNItems func(uintptr) uint | |||||
| 604 | // In the case of a dictionary entry type, this function will always | 558 | // In the case of a dictionary entry type, this function will always | ||
| 605 | // return `2`. | 559 | // return `2`. | ||
| 606 | func (x *VariantType) NItems() uint { | 560 | func (x *VariantType) NItems() uint { | ||
| 607 | - | core.LazyRegister(&xVariantTypeNItems, "GLIB", "g_variant_type_n_items", false) | |||
| 608 | - | ||||
| 609 | cret := xVariantTypeNItems(x.GoPointer()) | 561 | cret := xVariantTypeNItems(x.GoPointer()) | ||
| 610 | return cret | 562 | return cret | ||
| 611 | } | 563 | } | ||
| @@ -624,8 +576,6 @@ var xVariantTypeNext func(uintptr) uintptr | |||||
| 624 | // | 576 | // | ||
| 625 | // For tuples, `NULL` is returned when @type is the last item in the tuple. | 577 | // For tuples, `NULL` is returned when @type is the last item in the tuple. | ||
| 626 | func (x *VariantType) Next() *VariantType { | 578 | func (x *VariantType) Next() *VariantType { | ||
| 627 | - | core.LazyRegister(&xVariantTypeNext, "GLIB", "g_variant_type_next", false) | |||
| 628 | - | ||||
| 629 | cret := xVariantTypeNext(x.GoPointer()) | 579 | cret := xVariantTypeNext(x.GoPointer()) | ||
| 630 | if cret == 0 { | 580 | if cret == 0 { | ||
| 631 | return nil | 581 | return nil | ||
| @@ -642,8 +592,6 @@ var xVariantTypePeekString func(uintptr) string | |||||
| 642 | // | 592 | // | ||
| 643 | // To get a nul-terminated string, see [method@GLib.VariantType.dup_string]. | 593 | // To get a nul-terminated string, see [method@GLib.VariantType.dup_string]. | ||
| 644 | func (x *VariantType) PeekString() string { | 594 | func (x *VariantType) PeekString() string { | ||
| 645 | - | core.LazyRegister(&xVariantTypePeekString, "GLIB", "g_variant_type_peek_string", false) | |||
| 646 | - | ||||
| 647 | cret := xVariantTypePeekString(x.GoPointer()) | 595 | cret := xVariantTypePeekString(x.GoPointer()) | ||
| 648 | return cret | 596 | return cret | ||
| 649 | } | 597 | } | ||
| @@ -654,8 +602,6 @@ var xVariantTypeValue func(uintptr) uintptr | |||||
| 654 | // | 602 | // | ||
| 655 | // This function may only be used with a dictionary entry type. | 603 | // This function may only be used with a dictionary entry type. | ||
| 656 | func (x *VariantType) Value() *VariantType { | 604 | func (x *VariantType) Value() *VariantType { | ||
| 657 | - | core.LazyRegister(&xVariantTypeValue, "GLIB", "g_variant_type_value", false) | |||
| 658 | - | ||||
| 659 | cret := xVariantTypeValue(x.GoPointer()) | 605 | cret := xVariantTypeValue(x.GoPointer()) | ||
| 660 | if cret == 0 { | 606 | if cret == 0 { | ||
| 661 | return nil | 607 | return nil | ||
| @@ -666,8 +612,6 @@ func (x *VariantType) Value() *VariantType { | |||||
| 666 | var xVariantTypeChecked func(string) uintptr | 612 | var xVariantTypeChecked func(string) uintptr | ||
| 667 | 613 | ||||
| 668 | func VariantTypeChecked(TypeStringVar string) *VariantType { | 614 | func VariantTypeChecked(TypeStringVar string) *VariantType { | ||
| 669 | - | core.LazyRegister(&xVariantTypeChecked, "GLIB", "g_variant_type_checked_", false) | |||
| 670 | - | ||||
| 671 | cret := xVariantTypeChecked(TypeStringVar) | 615 | cret := xVariantTypeChecked(TypeStringVar) | ||
| 672 | if cret == 0 { | 616 | if cret == 0 { | ||
| 673 | return nil | 617 | return nil | ||
| @@ -678,8 +622,6 @@ func VariantTypeChecked(TypeStringVar string) *VariantType { | |||||
| 678 | var xVariantTypeStringGetDepth func(string) uint | 622 | var xVariantTypeStringGetDepth func(string) uint | ||
| 679 | 623 | ||||
| 680 | func VariantTypeStringGetDepth(TypeStringVar string) uint { | 624 | func VariantTypeStringGetDepth(TypeStringVar string) uint { | ||
| 681 | - | core.LazyRegister(&xVariantTypeStringGetDepth, "GLIB", "g_variant_type_string_get_depth_", false) | |||
| 682 | - | ||||
| 683 | cret := xVariantTypeStringGetDepth(TypeStringVar) | 625 | cret := xVariantTypeStringGetDepth(TypeStringVar) | ||
| 684 | return cret | 626 | return cret | ||
| 685 | } | 627 | } | ||
| @@ -692,8 +634,6 @@ var xVariantTypeStringIsValid func(string) bool | |||||
| 692 | // This call is equivalent to calling [func@GLib.VariantType.string_scan] and | 634 | // This call is equivalent to calling [func@GLib.VariantType.string_scan] and | ||
| 693 | // confirming that the following character is a nul terminator. | 635 | // confirming that the following character is a nul terminator. | ||
| 694 | func VariantTypeStringIsValid(TypeStringVar string) bool { | 636 | func VariantTypeStringIsValid(TypeStringVar string) bool { | ||
| 695 | - | core.LazyRegister(&xVariantTypeStringIsValid, "GLIB", "g_variant_type_string_is_valid", false) | |||
| 696 | - | ||||
| 697 | cret := xVariantTypeStringIsValid(TypeStringVar) | 637 | cret := xVariantTypeStringIsValid(TypeStringVar) | ||
| 698 | return cret | 638 | return cret | ||
| 699 | } | 639 | } | ||
| @@ -715,8 +655,6 @@ var xVariantTypeStringScan func(string, uintptr, *string) bool | |||||
| 715 | // For the simple case of checking if a string is a valid type string, | 655 | // For the simple case of checking if a string is a valid type string, | ||
| 716 | // see [func@GLib.VariantType.string_is_valid]. | 656 | // see [func@GLib.VariantType.string_is_valid]. | ||
| 717 | func VariantTypeStringScan(StringVar string, LimitVar *string, EndptrVar *string) bool { | 657 | func VariantTypeStringScan(StringVar string, LimitVar *string, EndptrVar *string) bool { | ||
| 718 | - | core.LazyRegister(&xVariantTypeStringScan, "GLIB", "g_variant_type_string_scan", false) | |||
| 719 | - | ||||
| 720 | LimitVarPtr := core.GStrdupNullable(LimitVar) | 658 | LimitVarPtr := core.GStrdupNullable(LimitVar) | ||
| 721 | defer core.GFreeNullable(LimitVarPtr) | 659 | defer core.GFreeNullable(LimitVarPtr) | ||
| 722 | 660 | ||||
| @@ -727,4 +665,48 @@ func VariantTypeStringScan(StringVar string, LimitVar *string, EndptrVar *string | |||||
| 727 | func init() { | 665 | func init() { | ||
| 728 | core.SetPackageName("GLIB", "glib-2.0") | 666 | core.SetPackageName("GLIB", "glib-2.0") | ||
| 729 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | 667 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | ||
| 668 | + | var libs []uintptr | |||
| 669 | + | for _, libPath := range core.GetPaths("GLIB") { | |||
| 670 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 671 | + | if err != nil { | |||
| 672 | + | panic(err) | |||
| 673 | + | } | |||
| 674 | + | libs = append(libs, lib) | |||
| 675 | + | } | |||
| 676 | + | ||||
| 677 | + | core.PuregoSafeRegister(&xVariantTypeChecked, libs, "g_variant_type_checked_") | |||
| 678 | + | core.PuregoSafeRegister(&xVariantTypeStringGetDepth, libs, "g_variant_type_string_get_depth_") | |||
| 679 | + | core.PuregoSafeRegister(&xVariantTypeStringIsValid, libs, "g_variant_type_string_is_valid") | |||
| 680 | + | core.PuregoSafeRegister(&xVariantTypeStringScan, libs, "g_variant_type_string_scan") | |||
| 681 | + | ||||
| 682 | + | core.PuregoSafeRegister(&xVariantTypeGLibType, libs, "g_variant_type_get_gtype") | |||
| 683 | + | ||||
| 684 | + | core.PuregoSafeRegister(&xNewVariantType, libs, "g_variant_type_new") | |||
| 685 | + | core.PuregoSafeRegister(&xNewVariantTypeArray, libs, "g_variant_type_new_array") | |||
| 686 | + | core.PuregoSafeRegister(&xNewVariantTypeDictEntry, libs, "g_variant_type_new_dict_entry") | |||
| 687 | + | core.PuregoSafeRegister(&xNewVariantTypeMaybe, libs, "g_variant_type_new_maybe") | |||
| 688 | + | core.PuregoSafeRegister(&xNewVariantTypeTuple, libs, "g_variant_type_new_tuple") | |||
| 689 | + | ||||
| 690 | + | core.PuregoSafeRegister(&xVariantTypeCopy, libs, "g_variant_type_copy") | |||
| 691 | + | core.PuregoSafeRegister(&xVariantTypeDupString, libs, "g_variant_type_dup_string") | |||
| 692 | + | core.PuregoSafeRegister(&xVariantTypeElement, libs, "g_variant_type_element") | |||
| 693 | + | core.PuregoSafeRegister(&xVariantTypeEqual, libs, "g_variant_type_equal") | |||
| 694 | + | core.PuregoSafeRegister(&xVariantTypeFirst, libs, "g_variant_type_first") | |||
| 695 | + | core.PuregoSafeRegister(&xVariantTypeFree, libs, "g_variant_type_free") | |||
| 696 | + | core.PuregoSafeRegister(&xVariantTypeGetStringLength, libs, "g_variant_type_get_string_length") | |||
| 697 | + | core.PuregoSafeRegister(&xVariantTypeHash, libs, "g_variant_type_hash") | |||
| 698 | + | core.PuregoSafeRegister(&xVariantTypeIsArray, libs, "g_variant_type_is_array") | |||
| 699 | + | core.PuregoSafeRegister(&xVariantTypeIsBasic, libs, "g_variant_type_is_basic") | |||
| 700 | + | core.PuregoSafeRegister(&xVariantTypeIsContainer, libs, "g_variant_type_is_container") | |||
| 701 | + | core.PuregoSafeRegister(&xVariantTypeIsDefinite, libs, "g_variant_type_is_definite") | |||
| 702 | + | core.PuregoSafeRegister(&xVariantTypeIsDictEntry, libs, "g_variant_type_is_dict_entry") | |||
| 703 | + | core.PuregoSafeRegister(&xVariantTypeIsMaybe, libs, "g_variant_type_is_maybe") | |||
| 704 | + | core.PuregoSafeRegister(&xVariantTypeIsSubtypeOf, libs, "g_variant_type_is_subtype_of") | |||
| 705 | + | core.PuregoSafeRegister(&xVariantTypeIsTuple, libs, "g_variant_type_is_tuple") | |||
| 706 | + | core.PuregoSafeRegister(&xVariantTypeIsVariant, libs, "g_variant_type_is_variant") | |||
| 707 | + | core.PuregoSafeRegister(&xVariantTypeKey, libs, "g_variant_type_key") | |||
| 708 | + | core.PuregoSafeRegister(&xVariantTypeNItems, libs, "g_variant_type_n_items") | |||
| 709 | + | core.PuregoSafeRegister(&xVariantTypeNext, libs, "g_variant_type_next") | |||
| 710 | + | core.PuregoSafeRegister(&xVariantTypePeekString, libs, "g_variant_type_peek_string") | |||
| 711 | + | core.PuregoSafeRegister(&xVariantTypeValue, libs, "g_variant_type_value") | |||
| 730 | } | 712 | } | ||