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
| @@ -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 | ) | |
| @@ -157,7 +158,6 @@ type KeyFile struct { | |||
| 157 | 158 | var xKeyFileGLibType func() types.GType | |
| 158 | 159 | ||
| 159 | 160 | func KeyFileGLibType() types.GType { | |
| 160 | - | core.LazyRegister(&xKeyFileGLibType, "GLIB", "g_key_file_get_type", false) | |
| 161 | 161 | return xKeyFileGLibType() | |
| 162 | 162 | } | |
| 163 | 163 | ||
| @@ -182,8 +182,6 @@ var xNewKeyFile func() uintptr | |||
| 182 | 182 | // [method@GLib.KeyFile.load_from_data_dirs] to | |
| 183 | 183 | // read an existing key file. | |
| 184 | 184 | func NewKeyFile() *KeyFile { | |
| 185 | - | core.LazyRegister(&xNewKeyFile, "GLIB", "g_key_file_new", false) | |
| 186 | - | ||
| 187 | 185 | cret := xNewKeyFile() | |
| 188 | 186 | if cret == 0 { | |
| 189 | 187 | return nil | |
| @@ -199,8 +197,6 @@ var xKeyFileFree func(uintptr) | |||
| 199 | 197 | // If the reference count reaches zero, frees the key file and all its allocated | |
| 200 | 198 | // memory. | |
| 201 | 199 | func (x *KeyFile) Free() { | |
| 202 | - | core.LazyRegister(&xKeyFileFree, "GLIB", "g_key_file_free", false) | |
| 203 | - | ||
| 204 | 200 | xKeyFileFree(x.GoPointer()) | |
| 205 | 201 | } | |
| 206 | 202 | ||
| @@ -213,7 +209,6 @@ var xKeyFileGetBoolean func(uintptr, string, string, **Error) bool | |||
| 213 | 209 | // returned. Likewise, if the value associated with @key cannot be interpreted | |
| 214 | 210 | // as a boolean then [error@GLib.KeyFileError.INVALID_VALUE] is returned. | |
| 215 | 211 | func (x *KeyFile) GetBoolean(GroupNameVar string, KeyVar string) (bool, error) { | |
| 216 | - | core.LazyRegister(&xKeyFileGetBoolean, "GLIB", "g_key_file_get_boolean", false) | |
| 217 | 212 | var cerr *Error | |
| 218 | 213 | ||
| 219 | 214 | cret := xKeyFileGetBoolean(x.GoPointer(), GroupNameVar, KeyVar, &cerr) | |
| @@ -232,7 +227,6 @@ var xKeyFileGetBooleanList func(uintptr, string, string, *uint, **Error) uintptr | |||
| 232 | 227 | // returned. Likewise, if the values associated with @key cannot be interpreted | |
| 233 | 228 | // as booleans then [error@GLib.KeyFileError.INVALID_VALUE] is returned. | |
| 234 | 229 | func (x *KeyFile) GetBooleanList(GroupNameVar string, KeyVar string, LengthVar *uint) (uintptr, error) { | |
| 235 | - | core.LazyRegister(&xKeyFileGetBooleanList, "GLIB", "g_key_file_get_boolean_list", false) | |
| 236 | 230 | var cerr *Error | |
| 237 | 231 | ||
| 238 | 232 | cret := xKeyFileGetBooleanList(x.GoPointer(), GroupNameVar, KeyVar, LengthVar, &cerr) | |
| @@ -254,7 +248,6 @@ var xKeyFileGetComment func(uintptr, uintptr, uintptr, **Error) string | |||
| 254 | 248 | // but does include any whitespace after them (on each line). It includes | |
| 255 | 249 | // the line breaks between lines, but does not include the final line break. | |
| 256 | 250 | func (x *KeyFile) GetComment(GroupNameVar *string, KeyVar *string) (string, error) { | |
| 257 | - | core.LazyRegister(&xKeyFileGetComment, "GLIB", "g_key_file_get_comment", false) | |
| 258 | 251 | var cerr *Error | |
| 259 | 252 | ||
| 260 | 253 | GroupNameVarPtr := core.GStrdupNullable(GroupNameVar) | |
| @@ -278,7 +271,6 @@ var xKeyFileGetDouble func(uintptr, string, string, **Error) float64 | |||
| 278 | 271 | // returned. Likewise, if the value associated with @key cannot be interpreted | |
| 279 | 272 | // as a double then [error@GLib.KeyFileError.INVALID_VALUE] is returned. | |
| 280 | 273 | func (x *KeyFile) GetDouble(GroupNameVar string, KeyVar string) (float64, error) { | |
| 281 | - | core.LazyRegister(&xKeyFileGetDouble, "GLIB", "g_key_file_get_double", false) | |
| 282 | 274 | var cerr *Error | |
| 283 | 275 | ||
| 284 | 276 | cret := xKeyFileGetDouble(x.GoPointer(), GroupNameVar, KeyVar, &cerr) | |
| @@ -297,7 +289,6 @@ var xKeyFileGetDoubleList func(uintptr, string, string, *uint, **Error) uintptr | |||
| 297 | 289 | // returned. Likewise, if the values associated with @key cannot be interpreted | |
| 298 | 290 | // as doubles then [error@GLib.KeyFileError.INVALID_VALUE] is returned. | |
| 299 | 291 | func (x *KeyFile) GetDoubleList(GroupNameVar string, KeyVar string, LengthVar *uint) (uintptr, error) { | |
| 300 | - | core.LazyRegister(&xKeyFileGetDoubleList, "GLIB", "g_key_file_get_double_list", false) | |
| 301 | 292 | var cerr *Error | |
| 302 | 293 | ||
| 303 | 294 | cret := xKeyFileGetDoubleList(x.GoPointer(), GroupNameVar, KeyVar, LengthVar, &cerr) | |
| @@ -314,8 +305,6 @@ var xKeyFileGetGroups func(uintptr, *uint) []string | |||
| 314 | 305 | // The array of returned groups will be `NULL`-terminated, so | |
| 315 | 306 | // @length may optionally be `NULL`. | |
| 316 | 307 | func (x *KeyFile) GetGroups(LengthVar *uint) []string { | |
| 317 | - | core.LazyRegister(&xKeyFileGetGroups, "GLIB", "g_key_file_get_groups", false) | |
| 318 | - | ||
| 319 | 308 | cret := xKeyFileGetGroups(x.GoPointer(), LengthVar) | |
| 320 | 309 | return cret | |
| 321 | 310 | } | |
| @@ -328,7 +317,6 @@ var xKeyFileGetInt64 func(uintptr, string, string, **Error) int64 | |||
| 328 | 317 | // This is similar to [method@GLib.KeyFile.get_integer] but can return | |
| 329 | 318 | // 64-bit results without truncation. | |
| 330 | 319 | func (x *KeyFile) GetInt64(GroupNameVar string, KeyVar string) (int64, error) { | |
| 331 | - | core.LazyRegister(&xKeyFileGetInt64, "GLIB", "g_key_file_get_int64", false) | |
| 332 | 320 | var cerr *Error | |
| 333 | 321 | ||
| 334 | 322 | cret := xKeyFileGetInt64(x.GoPointer(), GroupNameVar, KeyVar, &cerr) | |
| @@ -348,7 +336,6 @@ var xKeyFileGetInteger func(uintptr, string, string, **Error) int | |||
| 348 | 336 | // as an integer, or is out of range for a `gint`, then | |
| 349 | 337 | // [error@GLib.KeyFileError.INVALID_VALUE] is returned. | |
| 350 | 338 | func (x *KeyFile) GetInteger(GroupNameVar string, KeyVar string) (int, error) { | |
| 351 | - | core.LazyRegister(&xKeyFileGetInteger, "GLIB", "g_key_file_get_integer", false) | |
| 352 | 339 | var cerr *Error | |
| 353 | 340 | ||
| 354 | 341 | cret := xKeyFileGetInteger(x.GoPointer(), GroupNameVar, KeyVar, &cerr) | |
| @@ -368,7 +355,6 @@ var xKeyFileGetIntegerList func(uintptr, string, string, *uint, **Error) uintptr | |||
| 368 | 355 | // as integers, or are out of range for `gint`, then | |
| 369 | 356 | // [error@GLib.KeyFileError.INVALID_VALUE] is returned. | |
| 370 | 357 | func (x *KeyFile) GetIntegerList(GroupNameVar string, KeyVar string, LengthVar *uint) (uintptr, error) { | |
| 371 | - | core.LazyRegister(&xKeyFileGetIntegerList, "GLIB", "g_key_file_get_integer_list", false) | |
| 372 | 358 | var cerr *Error | |
| 373 | 359 | ||
| 374 | 360 | cret := xKeyFileGetIntegerList(x.GoPointer(), GroupNameVar, KeyVar, LengthVar, &cerr) | |
| @@ -386,7 +372,6 @@ var xKeyFileGetKeys func(uintptr, string, *uint, **Error) []string | |||
| 386 | 372 | // optionally be `NULL`. If the @group_name cannot be found, | |
| 387 | 373 | // [error@GLib.KeyFileError.GROUP_NOT_FOUND] is returned. | |
| 388 | 374 | func (x *KeyFile) GetKeys(GroupNameVar string, LengthVar *uint) ([]string, error) { | |
| 389 | - | core.LazyRegister(&xKeyFileGetKeys, "GLIB", "g_key_file_get_keys", false) | |
| 390 | 375 | var cerr *Error | |
| 391 | 376 | ||
| 392 | 377 | cret := xKeyFileGetKeys(x.GoPointer(), GroupNameVar, LengthVar, &cerr) | |
| @@ -408,8 +393,6 @@ var xKeyFileGetLocaleForKey func(uintptr, string, string, uintptr) string | |||
| 408 | 393 | // have originally been tagged with the locale that is the result of | |
| 409 | 394 | // this function. | |
| 410 | 395 | func (x *KeyFile) GetLocaleForKey(GroupNameVar string, KeyVar string, LocaleVar *string) string { | |
| 411 | - | core.LazyRegister(&xKeyFileGetLocaleForKey, "GLIB", "g_key_file_get_locale_for_key", false) | |
| 412 | - | ||
| 413 | 396 | LocaleVarPtr := core.GStrdupNullable(LocaleVar) | |
| 414 | 397 | defer core.GFreeNullable(LocaleVarPtr) | |
| 415 | 398 | ||
| @@ -436,7 +419,6 @@ var xKeyFileGetLocaleString func(uintptr, string, string, uintptr, **Error) stri | |||
| 436 | 419 | // with @key cannot be interpreted or no suitable translation can | |
| 437 | 420 | // be found then the untranslated value is returned. | |
| 438 | 421 | func (x *KeyFile) GetLocaleString(GroupNameVar string, KeyVar string, LocaleVar *string) (string, error) { | |
| 439 | - | core.LazyRegister(&xKeyFileGetLocaleString, "GLIB", "g_key_file_get_locale_string", false) | |
| 440 | 422 | var cerr *Error | |
| 441 | 423 | ||
| 442 | 424 | LocaleVarPtr := core.GStrdupNullable(LocaleVar) | |
| @@ -470,7 +452,6 @@ var xKeyFileGetLocaleStringList func(uintptr, string, string, uintptr, *uint, ** | |||
| 470 | 452 | // returned array is `NULL`-terminated, so @length may optionally | |
| 471 | 453 | // be `NULL`. | |
| 472 | 454 | func (x *KeyFile) GetLocaleStringList(GroupNameVar string, KeyVar string, LocaleVar *string, LengthVar *uint) ([]string, error) { | |
| 473 | - | core.LazyRegister(&xKeyFileGetLocaleStringList, "GLIB", "g_key_file_get_locale_string_list", false) | |
| 474 | 455 | var cerr *Error | |
| 475 | 456 | ||
| 476 | 457 | LocaleVarPtr := core.GStrdupNullable(LocaleVar) | |
| @@ -487,8 +468,6 @@ var xKeyFileGetStartGroup func(uintptr) string | |||
| 487 | 468 | ||
| 488 | 469 | // Returns the name of the start group of the file. | |
| 489 | 470 | func (x *KeyFile) GetStartGroup() string { | |
| 490 | - | core.LazyRegister(&xKeyFileGetStartGroup, "GLIB", "g_key_file_get_start_group", false) | |
| 491 | - | ||
| 492 | 471 | cret := xKeyFileGetStartGroup(x.GoPointer()) | |
| 493 | 472 | return cret | |
| 494 | 473 | } | |
| @@ -504,7 +483,6 @@ var xKeyFileGetString func(uintptr, string, string, **Error) string | |||
| 504 | 483 | // returned. If the @group_name cannot be found, | |
| 505 | 484 | // [error@GLib.KeyFileError.GROUP_NOT_FOUND] is returned. | |
| 506 | 485 | func (x *KeyFile) GetString(GroupNameVar string, KeyVar string) (string, error) { | |
| 507 | - | core.LazyRegister(&xKeyFileGetString, "GLIB", "g_key_file_get_string", false) | |
| 508 | 486 | var cerr *Error | |
| 509 | 487 | ||
| 510 | 488 | cret := xKeyFileGetString(x.GoPointer(), GroupNameVar, KeyVar, &cerr) | |
| @@ -522,7 +500,6 @@ var xKeyFileGetStringList func(uintptr, string, string, *uint, **Error) []string | |||
| 522 | 500 | // returned. If the @group_name cannot be found, | |
| 523 | 501 | // [error@GLib.KeyFileError.GROUP_NOT_FOUND] is returned. | |
| 524 | 502 | func (x *KeyFile) GetStringList(GroupNameVar string, KeyVar string, LengthVar *uint) ([]string, error) { | |
| 525 | - | core.LazyRegister(&xKeyFileGetStringList, "GLIB", "g_key_file_get_string_list", false) | |
| 526 | 503 | var cerr *Error | |
| 527 | 504 | ||
| 528 | 505 | cret := xKeyFileGetStringList(x.GoPointer(), GroupNameVar, KeyVar, LengthVar, &cerr) | |
| @@ -540,7 +517,6 @@ var xKeyFileGetUint64 func(uintptr, string, string, **Error) uint64 | |||
| 540 | 517 | // This is similar to [method@GLib.KeyFile.get_integer] but can return | |
| 541 | 518 | // large positive results without truncation. | |
| 542 | 519 | func (x *KeyFile) GetUint64(GroupNameVar string, KeyVar string) (uint64, error) { | |
| 543 | - | core.LazyRegister(&xKeyFileGetUint64, "GLIB", "g_key_file_get_uint64", false) | |
| 544 | 520 | var cerr *Error | |
| 545 | 521 | ||
| 546 | 522 | cret := xKeyFileGetUint64(x.GoPointer(), GroupNameVar, KeyVar, &cerr) | |
| @@ -560,7 +536,6 @@ var xKeyFileGetValue func(uintptr, string, string, **Error) string | |||
| 560 | 536 | // is returned. If the @group_name cannot be found, | |
| 561 | 537 | // [error@GLib.KeyFileError.GROUP_NOT_FOUND] is returned. | |
| 562 | 538 | func (x *KeyFile) GetValue(GroupNameVar string, KeyVar string) (string, error) { | |
| 563 | - | core.LazyRegister(&xKeyFileGetValue, "GLIB", "g_key_file_get_value", false) | |
| 564 | 539 | var cerr *Error | |
| 565 | 540 | ||
| 566 | 541 | cret := xKeyFileGetValue(x.GoPointer(), GroupNameVar, KeyVar, &cerr) | |
| @@ -574,8 +549,6 @@ var xKeyFileHasGroup func(uintptr, string) bool | |||
| 574 | 549 | ||
| 575 | 550 | // Looks whether the key file has the group @group_name. | |
| 576 | 551 | func (x *KeyFile) HasGroup(GroupNameVar string) bool { | |
| 577 | - | core.LazyRegister(&xKeyFileHasGroup, "GLIB", "g_key_file_has_group", false) | |
| 578 | - | ||
| 579 | 552 | cret := xKeyFileHasGroup(x.GoPointer(), GroupNameVar) | |
| 580 | 553 | return cret | |
| 581 | 554 | } | |
| @@ -594,7 +567,6 @@ var xKeyFileHasKey func(uintptr, string, string, **Error) bool | |||
| 594 | 567 | // Language bindings should use [method@GLib.KeyFile.get_value] to test whether | |
| 595 | 568 | // a key exists. | |
| 596 | 569 | func (x *KeyFile) HasKey(GroupNameVar string, KeyVar string) (bool, error) { | |
| 597 | - | core.LazyRegister(&xKeyFileHasKey, "GLIB", "g_key_file_has_key", false) | |
| 598 | 570 | var cerr *Error | |
| 599 | 571 | ||
| 600 | 572 | cret := xKeyFileHasKey(x.GoPointer(), GroupNameVar, KeyVar, &cerr) | |
| @@ -611,7 +583,6 @@ var xKeyFileLoadFromBytes func(uintptr, *Bytes, KeyFileFlags, **Error) bool | |||
| 611 | 583 | // | |
| 612 | 584 | // If the object cannot be created then a [error@GLib.KeyFileError] is returned. | |
| 613 | 585 | func (x *KeyFile) LoadFromBytes(BytesVar *Bytes, FlagsVar KeyFileFlags) (bool, error) { | |
| 614 | - | core.LazyRegister(&xKeyFileLoadFromBytes, "GLIB", "g_key_file_load_from_bytes", false) | |
| 615 | 586 | var cerr *Error | |
| 616 | 587 | ||
| 617 | 588 | cret := xKeyFileLoadFromBytes(x.GoPointer(), BytesVar, FlagsVar, &cerr) | |
| @@ -627,7 +598,6 @@ var xKeyFileLoadFromData func(uintptr, string, uint, KeyFileFlags, **Error) bool | |||
| 627 | 598 | // | |
| 628 | 599 | // If the object cannot be created then a [error@GLib.KeyFileError is returned. | |
| 629 | 600 | func (x *KeyFile) LoadFromData(DataVar string, LengthVar uint, FlagsVar KeyFileFlags) (bool, error) { | |
| 630 | - | core.LazyRegister(&xKeyFileLoadFromData, "GLIB", "g_key_file_load_from_data", false) | |
| 631 | 601 | var cerr *Error | |
| 632 | 602 | ||
| 633 | 603 | cret := xKeyFileLoadFromData(x.GoPointer(), DataVar, LengthVar, FlagsVar, &cerr) | |
| @@ -649,7 +619,6 @@ var xKeyFileLoadFromDataDirs func(uintptr, string, *string, KeyFileFlags, **Erro | |||
| 649 | 619 | // If the file could not be loaded then either a [error@GLib.FileError] or | |
| 650 | 620 | // [error@GLib.KeyFileError] is returned. | |
| 651 | 621 | func (x *KeyFile) LoadFromDataDirs(FileVar string, FullPathVar *string, FlagsVar KeyFileFlags) (bool, error) { | |
| 652 | - | core.LazyRegister(&xKeyFileLoadFromDataDirs, "GLIB", "g_key_file_load_from_data_dirs", false) | |
| 653 | 622 | var cerr *Error | |
| 654 | 623 | ||
| 655 | 624 | cret := xKeyFileLoadFromDataDirs(x.GoPointer(), FileVar, FullPathVar, FlagsVar, &cerr) | |
| @@ -677,7 +646,6 @@ var xKeyFileLoadFromDirs func(uintptr, string, []string, *string, KeyFileFlags, | |||
| 677 | 646 | // file, a [error@GLib.FileError] is returned. If there is a problem parsing the | |
| 678 | 647 | // file, a [error@GLib.KeyFileError] is returned. | |
| 679 | 648 | func (x *KeyFile) LoadFromDirs(FileVar string, SearchDirsVar []string, FullPathVar *string, FlagsVar KeyFileFlags) (bool, error) { | |
| 680 | - | core.LazyRegister(&xKeyFileLoadFromDirs, "GLIB", "g_key_file_load_from_dirs", false) | |
| 681 | 649 | var cerr *Error | |
| 682 | 650 | ||
| 683 | 651 | cret := xKeyFileLoadFromDirs(x.GoPointer(), FileVar, SearchDirsVar, FullPathVar, FlagsVar, &cerr) | |
| @@ -698,7 +666,6 @@ var xKeyFileLoadFromFile func(uintptr, string, KeyFileFlags, **Error) bool | |||
| 698 | 666 | // This function will never return a [error@GLib.KeyFileError.NOT_FOUND] | |
| 699 | 667 | // error. If the @file is not found, [error@GLib.FileError.NOENT] is returned. | |
| 700 | 668 | func (x *KeyFile) LoadFromFile(FileVar string, FlagsVar KeyFileFlags) (bool, error) { | |
| 701 | - | core.LazyRegister(&xKeyFileLoadFromFile, "GLIB", "g_key_file_load_from_file", false) | |
| 702 | 669 | var cerr *Error | |
| 703 | 670 | ||
| 704 | 671 | cret := xKeyFileLoadFromFile(x.GoPointer(), FileVar, FlagsVar, &cerr) | |
| @@ -712,8 +679,6 @@ var xKeyFileRef func(uintptr) uintptr | |||
| 712 | 679 | ||
| 713 | 680 | // Increases the reference count of @key_file. | |
| 714 | 681 | func (x *KeyFile) Ref() *KeyFile { | |
| 715 | - | core.LazyRegister(&xKeyFileRef, "GLIB", "g_key_file_ref", false) | |
| 716 | - | ||
| 717 | 682 | cret := xKeyFileRef(x.GoPointer()) | |
| 718 | 683 | if cret == 0 { | |
| 719 | 684 | return nil | |
| @@ -729,7 +694,6 @@ var xKeyFileRemoveComment func(uintptr, uintptr, uintptr, **Error) bool | |||
| 729 | 694 | // If both @key and @group_name are `NULL`, then @comment will | |
| 730 | 695 | // be removed above the first group in the file. | |
| 731 | 696 | func (x *KeyFile) RemoveComment(GroupNameVar *string, KeyVar *string) (bool, error) { | |
| 732 | - | core.LazyRegister(&xKeyFileRemoveComment, "GLIB", "g_key_file_remove_comment", false) | |
| 733 | 697 | var cerr *Error | |
| 734 | 698 | ||
| 735 | 699 | GroupNameVarPtr := core.GStrdupNullable(GroupNameVar) | |
| @@ -750,7 +714,6 @@ var xKeyFileRemoveGroup func(uintptr, string, **Error) bool | |||
| 750 | 714 | // Removes the specified group, @group_name, | |
| 751 | 715 | // from the key file. | |
| 752 | 716 | func (x *KeyFile) RemoveGroup(GroupNameVar string) (bool, error) { | |
| 753 | - | core.LazyRegister(&xKeyFileRemoveGroup, "GLIB", "g_key_file_remove_group", false) | |
| 754 | 717 | var cerr *Error | |
| 755 | 718 | ||
| 756 | 719 | cret := xKeyFileRemoveGroup(x.GoPointer(), GroupNameVar, &cerr) | |
| @@ -764,7 +727,6 @@ var xKeyFileRemoveKey func(uintptr, string, string, **Error) bool | |||
| 764 | 727 | ||
| 765 | 728 | // Removes @key in @group_name from the key file. | |
| 766 | 729 | func (x *KeyFile) RemoveKey(GroupNameVar string, KeyVar string) (bool, error) { | |
| 767 | - | core.LazyRegister(&xKeyFileRemoveKey, "GLIB", "g_key_file_remove_key", false) | |
| 768 | 730 | var cerr *Error | |
| 769 | 731 | ||
| 770 | 732 | cret := xKeyFileRemoveKey(x.GoPointer(), GroupNameVar, KeyVar, &cerr) | |
| @@ -787,7 +749,6 @@ var xKeyFileSaveToFile func(uintptr, string, **Error) bool | |||
| 787 | 749 | // This function can fail for any of the reasons that | |
| 788 | 750 | // [func@GLib.file_set_contents] may fail. | |
| 789 | 751 | func (x *KeyFile) SaveToFile(FilenameVar string) (bool, error) { | |
| 790 | - | core.LazyRegister(&xKeyFileSaveToFile, "GLIB", "g_key_file_save_to_file", false) | |
| 791 | 752 | var cerr *Error | |
| 792 | 753 | ||
| 793 | 754 | cret := xKeyFileSaveToFile(x.GoPointer(), FilenameVar, &cerr) | |
| @@ -803,8 +764,6 @@ var xKeyFileSetBoolean func(uintptr, string, string, bool) | |||
| 803 | 764 | // | |
| 804 | 765 | // If @key cannot be found then it is created. | |
| 805 | 766 | func (x *KeyFile) SetBoolean(GroupNameVar string, KeyVar string, ValueVar bool) { | |
| 806 | - | core.LazyRegister(&xKeyFileSetBoolean, "GLIB", "g_key_file_set_boolean", false) | |
| 807 | - | ||
| 808 | 767 | xKeyFileSetBoolean(x.GoPointer(), GroupNameVar, KeyVar, ValueVar) | |
| 809 | 768 | } | |
| 810 | 769 | ||
| @@ -814,8 +773,6 @@ var xKeyFileSetBooleanList func(uintptr, string, string, []bool, uint) | |||
| 814 | 773 | // | |
| 815 | 774 | // If @key cannot be found then it is created. | |
| 816 | 775 | func (x *KeyFile) SetBooleanList(GroupNameVar string, KeyVar string, ListVar []bool, LengthVar uint) { | |
| 817 | - | core.LazyRegister(&xKeyFileSetBooleanList, "GLIB", "g_key_file_set_boolean_list", false) | |
| 818 | - | ||
| 819 | 776 | xKeyFileSetBooleanList(x.GoPointer(), GroupNameVar, KeyVar, ListVar, LengthVar) | |
| 820 | 777 | } | |
| 821 | 778 | ||
| @@ -835,7 +792,6 @@ var xKeyFileSetComment func(uintptr, uintptr, uintptr, string, **Error) bool | |||
| 835 | 792 | // Note that this function prepends a `#` comment marker to | |
| 836 | 793 | // each line of @comment. | |
| 837 | 794 | func (x *KeyFile) SetComment(GroupNameVar *string, KeyVar *string, CommentVar string) (bool, error) { | |
| 838 | - | core.LazyRegister(&xKeyFileSetComment, "GLIB", "g_key_file_set_comment", false) | |
| 839 | 795 | var cerr *Error | |
| 840 | 796 | ||
| 841 | 797 | GroupNameVarPtr := core.GStrdupNullable(GroupNameVar) | |
| @@ -857,8 +813,6 @@ var xKeyFileSetDouble func(uintptr, string, string, float64) | |||
| 857 | 813 | // | |
| 858 | 814 | // If @key cannot be found then it is created. | |
| 859 | 815 | func (x *KeyFile) SetDouble(GroupNameVar string, KeyVar string, ValueVar float64) { | |
| 860 | - | core.LazyRegister(&xKeyFileSetDouble, "GLIB", "g_key_file_set_double", false) | |
| 861 | - | ||
| 862 | 816 | xKeyFileSetDouble(x.GoPointer(), GroupNameVar, KeyVar, ValueVar) | |
| 863 | 817 | } | |
| 864 | 818 | ||
| @@ -868,8 +822,6 @@ var xKeyFileSetDoubleList func(uintptr, string, string, []float64, uint) | |||
| 868 | 822 | // | |
| 869 | 823 | // If @key cannot be found then it is created. | |
| 870 | 824 | func (x *KeyFile) SetDoubleList(GroupNameVar string, KeyVar string, ListVar []float64, LengthVar uint) { | |
| 871 | - | core.LazyRegister(&xKeyFileSetDoubleList, "GLIB", "g_key_file_set_double_list", false) | |
| 872 | - | ||
| 873 | 825 | xKeyFileSetDoubleList(x.GoPointer(), GroupNameVar, KeyVar, ListVar, LengthVar) | |
| 874 | 826 | } | |
| 875 | 827 | ||
| @@ -879,8 +831,6 @@ var xKeyFileSetInt64 func(uintptr, string, string, int64) | |||
| 879 | 831 | // | |
| 880 | 832 | // If @key cannot be found then it is created. | |
| 881 | 833 | func (x *KeyFile) SetInt64(GroupNameVar string, KeyVar string, ValueVar int64) { | |
| 882 | - | core.LazyRegister(&xKeyFileSetInt64, "GLIB", "g_key_file_set_int64", false) | |
| 883 | - | ||
| 884 | 834 | xKeyFileSetInt64(x.GoPointer(), GroupNameVar, KeyVar, ValueVar) | |
| 885 | 835 | } | |
| 886 | 836 | ||
| @@ -890,8 +840,6 @@ var xKeyFileSetInteger func(uintptr, string, string, int) | |||
| 890 | 840 | // | |
| 891 | 841 | // If @key cannot be found then it is created. | |
| 892 | 842 | func (x *KeyFile) SetInteger(GroupNameVar string, KeyVar string, ValueVar int) { | |
| 893 | - | core.LazyRegister(&xKeyFileSetInteger, "GLIB", "g_key_file_set_integer", false) | |
| 894 | - | ||
| 895 | 843 | xKeyFileSetInteger(x.GoPointer(), GroupNameVar, KeyVar, ValueVar) | |
| 896 | 844 | } | |
| 897 | 845 | ||
| @@ -901,8 +849,6 @@ var xKeyFileSetIntegerList func(uintptr, string, string, []int, uint) | |||
| 901 | 849 | // | |
| 902 | 850 | // If @key cannot be found then it is created. | |
| 903 | 851 | func (x *KeyFile) SetIntegerList(GroupNameVar string, KeyVar string, ListVar []int, LengthVar uint) { | |
| 904 | - | core.LazyRegister(&xKeyFileSetIntegerList, "GLIB", "g_key_file_set_integer_list", false) | |
| 905 | - | ||
| 906 | 852 | xKeyFileSetIntegerList(x.GoPointer(), GroupNameVar, KeyVar, ListVar, LengthVar) | |
| 907 | 853 | } | |
| 908 | 854 | ||
| @@ -913,8 +859,6 @@ var xKeyFileSetListSeparator func(uintptr, byte) | |||
| 913 | 859 | // Typically `;` or `,` are used as separators. The default list separator | |
| 914 | 860 | // is `;`. | |
| 915 | 861 | func (x *KeyFile) SetListSeparator(SeparatorVar byte) { | |
| 916 | - | core.LazyRegister(&xKeyFileSetListSeparator, "GLIB", "g_key_file_set_list_separator", false) | |
| 917 | - | ||
| 918 | 862 | xKeyFileSetListSeparator(x.GoPointer(), SeparatorVar) | |
| 919 | 863 | } | |
| 920 | 864 | ||
| @@ -926,8 +870,6 @@ var xKeyFileSetLocaleString func(uintptr, string, string, string, string) | |||
| 926 | 870 | // | |
| 927 | 871 | // If @locale is `C` then the untranslated value is set (since GLib 2.84). | |
| 928 | 872 | func (x *KeyFile) SetLocaleString(GroupNameVar string, KeyVar string, LocaleVar string, StringVar string) { | |
| 929 | - | core.LazyRegister(&xKeyFileSetLocaleString, "GLIB", "g_key_file_set_locale_string", false) | |
| 930 | - | ||
| 931 | 873 | xKeyFileSetLocaleString(x.GoPointer(), GroupNameVar, KeyVar, LocaleVar, StringVar) | |
| 932 | 874 | } | |
| 933 | 875 | ||
| @@ -940,8 +882,6 @@ var xKeyFileSetLocaleStringList func(uintptr, string, string, string, []string, | |||
| 940 | 882 | // | |
| 941 | 883 | // If the translation for @key cannot be found then it is created. | |
| 942 | 884 | func (x *KeyFile) SetLocaleStringList(GroupNameVar string, KeyVar string, LocaleVar string, ListVar []string, LengthVar uint) { | |
| 943 | - | core.LazyRegister(&xKeyFileSetLocaleStringList, "GLIB", "g_key_file_set_locale_string_list", false) | |
| 944 | - | ||
| 945 | 885 | xKeyFileSetLocaleStringList(x.GoPointer(), GroupNameVar, KeyVar, LocaleVar, ListVar, LengthVar) | |
| 946 | 886 | } | |
| 947 | 887 | ||
| @@ -954,8 +894,6 @@ var xKeyFileSetString func(uintptr, string, string, string) | |||
| 954 | 894 | // Unlike [method@GLib.KeyFile.set_value], this function handles characters | |
| 955 | 895 | // that need escaping, such as newlines. | |
| 956 | 896 | func (x *KeyFile) SetString(GroupNameVar string, KeyVar string, StringVar string) { | |
| 957 | - | core.LazyRegister(&xKeyFileSetString, "GLIB", "g_key_file_set_string", false) | |
| 958 | - | ||
| 959 | 897 | xKeyFileSetString(x.GoPointer(), GroupNameVar, KeyVar, StringVar) | |
| 960 | 898 | } | |
| 961 | 899 | ||
| @@ -966,8 +904,6 @@ var xKeyFileSetStringList func(uintptr, string, string, []string, uint) | |||
| 966 | 904 | // If @key cannot be found then it is created. | |
| 967 | 905 | // If @group_name cannot be found then it is created. | |
| 968 | 906 | func (x *KeyFile) SetStringList(GroupNameVar string, KeyVar string, ListVar []string, LengthVar uint) { | |
| 969 | - | core.LazyRegister(&xKeyFileSetStringList, "GLIB", "g_key_file_set_string_list", false) | |
| 970 | - | ||
| 971 | 907 | xKeyFileSetStringList(x.GoPointer(), GroupNameVar, KeyVar, ListVar, LengthVar) | |
| 972 | 908 | } | |
| 973 | 909 | ||
| @@ -977,8 +913,6 @@ var xKeyFileSetUint64 func(uintptr, string, string, uint64) | |||
| 977 | 913 | // | |
| 978 | 914 | // If @key cannot be found then it is created. | |
| 979 | 915 | func (x *KeyFile) SetUint64(GroupNameVar string, KeyVar string, ValueVar uint64) { | |
| 980 | - | core.LazyRegister(&xKeyFileSetUint64, "GLIB", "g_key_file_set_uint64", false) | |
| 981 | - | ||
| 982 | 916 | xKeyFileSetUint64(x.GoPointer(), GroupNameVar, KeyVar, ValueVar) | |
| 983 | 917 | } | |
| 984 | 918 | ||
| @@ -991,8 +925,6 @@ var xKeyFileSetValue func(uintptr, string, string, string) | |||
| 991 | 925 | // characters that need escaping (such as newlines or spaces), use | |
| 992 | 926 | // [method@GLib.KeyFile.set_string]. | |
| 993 | 927 | func (x *KeyFile) SetValue(GroupNameVar string, KeyVar string, ValueVar string) { | |
| 994 | - | core.LazyRegister(&xKeyFileSetValue, "GLIB", "g_key_file_set_value", false) | |
| 995 | - | ||
| 996 | 928 | xKeyFileSetValue(x.GoPointer(), GroupNameVar, KeyVar, ValueVar) | |
| 997 | 929 | } | |
| 998 | 930 | ||
| @@ -1002,7 +934,6 @@ var xKeyFileToData func(uintptr, *uint, **Error) string | |||
| 1002 | 934 | // | |
| 1003 | 935 | // Note that this function never reports an error. | |
| 1004 | 936 | func (x *KeyFile) ToData(LengthVar *uint) (string, error) { | |
| 1005 | - | core.LazyRegister(&xKeyFileToData, "GLIB", "g_key_file_to_data", false) | |
| 1006 | 937 | var cerr *Error | |
| 1007 | 938 | ||
| 1008 | 939 | cret := xKeyFileToData(x.GoPointer(), LengthVar, &cerr) | |
| @@ -1019,8 +950,6 @@ var xKeyFileUnref func(uintptr) | |||
| 1019 | 950 | // If the reference count reaches zero, frees the key file and all its allocated | |
| 1020 | 951 | // memory. | |
| 1021 | 952 | func (x *KeyFile) Unref() { | |
| 1022 | - | core.LazyRegister(&xKeyFileUnref, "GLIB", "g_key_file_unref", false) | |
| 1023 | - | ||
| 1024 | 953 | xKeyFileUnref(x.GoPointer()) | |
| 1025 | 954 | } | |
| 1026 | 955 | ||
| @@ -1171,4 +1100,65 @@ const ( | |||
| 1171 | 1100 | func init() { | |
| 1172 | 1101 | core.SetPackageName("GLIB", "glib-2.0") | |
| 1173 | 1102 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | |
| 1103 | + | var libs []uintptr | |
| 1104 | + | for _, libPath := range core.GetPaths("GLIB") { | |
| 1105 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 1106 | + | if err != nil { | |
| 1107 | + | panic(err) | |
| 1108 | + | } | |
| 1109 | + | libs = append(libs, lib) | |
| 1110 | + | } | |
| 1111 | + | ||
| 1112 | + | core.PuregoSafeRegister(&xKeyFileGLibType, libs, "g_key_file_get_type") | |
| 1113 | + | ||
| 1114 | + | core.PuregoSafeRegister(&xNewKeyFile, libs, "g_key_file_new") | |
| 1115 | + | ||
| 1116 | + | core.PuregoSafeRegister(&xKeyFileFree, libs, "g_key_file_free") | |
| 1117 | + | core.PuregoSafeRegister(&xKeyFileGetBoolean, libs, "g_key_file_get_boolean") | |
| 1118 | + | core.PuregoSafeRegister(&xKeyFileGetBooleanList, libs, "g_key_file_get_boolean_list") | |
| 1119 | + | core.PuregoSafeRegister(&xKeyFileGetComment, libs, "g_key_file_get_comment") | |
| 1120 | + | core.PuregoSafeRegister(&xKeyFileGetDouble, libs, "g_key_file_get_double") | |
| 1121 | + | core.PuregoSafeRegister(&xKeyFileGetDoubleList, libs, "g_key_file_get_double_list") | |
| 1122 | + | core.PuregoSafeRegister(&xKeyFileGetGroups, libs, "g_key_file_get_groups") | |
| 1123 | + | core.PuregoSafeRegister(&xKeyFileGetInt64, libs, "g_key_file_get_int64") | |
| 1124 | + | core.PuregoSafeRegister(&xKeyFileGetInteger, libs, "g_key_file_get_integer") | |
| 1125 | + | core.PuregoSafeRegister(&xKeyFileGetIntegerList, libs, "g_key_file_get_integer_list") | |
| 1126 | + | core.PuregoSafeRegister(&xKeyFileGetKeys, libs, "g_key_file_get_keys") | |
| 1127 | + | core.PuregoSafeRegister(&xKeyFileGetLocaleForKey, libs, "g_key_file_get_locale_for_key") | |
| 1128 | + | core.PuregoSafeRegister(&xKeyFileGetLocaleString, libs, "g_key_file_get_locale_string") | |
| 1129 | + | core.PuregoSafeRegister(&xKeyFileGetLocaleStringList, libs, "g_key_file_get_locale_string_list") | |
| 1130 | + | core.PuregoSafeRegister(&xKeyFileGetStartGroup, libs, "g_key_file_get_start_group") | |
| 1131 | + | core.PuregoSafeRegister(&xKeyFileGetString, libs, "g_key_file_get_string") | |
| 1132 | + | core.PuregoSafeRegister(&xKeyFileGetStringList, libs, "g_key_file_get_string_list") | |
| 1133 | + | core.PuregoSafeRegister(&xKeyFileGetUint64, libs, "g_key_file_get_uint64") | |
| 1134 | + | core.PuregoSafeRegister(&xKeyFileGetValue, libs, "g_key_file_get_value") | |
| 1135 | + | core.PuregoSafeRegister(&xKeyFileHasGroup, libs, "g_key_file_has_group") | |
| 1136 | + | core.PuregoSafeRegister(&xKeyFileHasKey, libs, "g_key_file_has_key") | |
| 1137 | + | core.PuregoSafeRegister(&xKeyFileLoadFromBytes, libs, "g_key_file_load_from_bytes") | |
| 1138 | + | core.PuregoSafeRegister(&xKeyFileLoadFromData, libs, "g_key_file_load_from_data") | |
| 1139 | + | core.PuregoSafeRegister(&xKeyFileLoadFromDataDirs, libs, "g_key_file_load_from_data_dirs") | |
| 1140 | + | core.PuregoSafeRegister(&xKeyFileLoadFromDirs, libs, "g_key_file_load_from_dirs") | |
| 1141 | + | core.PuregoSafeRegister(&xKeyFileLoadFromFile, libs, "g_key_file_load_from_file") | |
| 1142 | + | core.PuregoSafeRegister(&xKeyFileRef, libs, "g_key_file_ref") | |
| 1143 | + | core.PuregoSafeRegister(&xKeyFileRemoveComment, libs, "g_key_file_remove_comment") | |
| 1144 | + | core.PuregoSafeRegister(&xKeyFileRemoveGroup, libs, "g_key_file_remove_group") | |
| 1145 | + | core.PuregoSafeRegister(&xKeyFileRemoveKey, libs, "g_key_file_remove_key") | |
| 1146 | + | core.PuregoSafeRegister(&xKeyFileSaveToFile, libs, "g_key_file_save_to_file") | |
| 1147 | + | core.PuregoSafeRegister(&xKeyFileSetBoolean, libs, "g_key_file_set_boolean") | |
| 1148 | + | core.PuregoSafeRegister(&xKeyFileSetBooleanList, libs, "g_key_file_set_boolean_list") | |
| 1149 | + | core.PuregoSafeRegister(&xKeyFileSetComment, libs, "g_key_file_set_comment") | |
| 1150 | + | core.PuregoSafeRegister(&xKeyFileSetDouble, libs, "g_key_file_set_double") | |
| 1151 | + | core.PuregoSafeRegister(&xKeyFileSetDoubleList, libs, "g_key_file_set_double_list") | |
| 1152 | + | core.PuregoSafeRegister(&xKeyFileSetInt64, libs, "g_key_file_set_int64") | |
| 1153 | + | core.PuregoSafeRegister(&xKeyFileSetInteger, libs, "g_key_file_set_integer") | |
| 1154 | + | core.PuregoSafeRegister(&xKeyFileSetIntegerList, libs, "g_key_file_set_integer_list") | |
| 1155 | + | core.PuregoSafeRegister(&xKeyFileSetListSeparator, libs, "g_key_file_set_list_separator") | |
| 1156 | + | core.PuregoSafeRegister(&xKeyFileSetLocaleString, libs, "g_key_file_set_locale_string") | |
| 1157 | + | core.PuregoSafeRegister(&xKeyFileSetLocaleStringList, libs, "g_key_file_set_locale_string_list") | |
| 1158 | + | core.PuregoSafeRegister(&xKeyFileSetString, libs, "g_key_file_set_string") | |
| 1159 | + | core.PuregoSafeRegister(&xKeyFileSetStringList, libs, "g_key_file_set_string_list") | |
| 1160 | + | core.PuregoSafeRegister(&xKeyFileSetUint64, libs, "g_key_file_set_uint64") | |
| 1161 | + | core.PuregoSafeRegister(&xKeyFileSetValue, libs, "g_key_file_set_value") | |
| 1162 | + | core.PuregoSafeRegister(&xKeyFileToData, libs, "g_key_file_to_data") | |
| 1163 | + | core.PuregoSafeRegister(&xKeyFileUnref, libs, "g_key_file_unref") | |
| 1174 | 1164 | } | |
| @@ -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 | ) | ||
| @@ -157,7 +158,6 @@ type KeyFile struct { | |||||
| 157 | var xKeyFileGLibType func() types.GType | 158 | var xKeyFileGLibType func() types.GType | ||
| 158 | 159 | ||||
| 159 | func KeyFileGLibType() types.GType { | 160 | func KeyFileGLibType() types.GType { | ||
| 160 | - | core.LazyRegister(&xKeyFileGLibType, "GLIB", "g_key_file_get_type", false) | |||
| 161 | return xKeyFileGLibType() | 161 | return xKeyFileGLibType() | ||
| 162 | } | 162 | } | ||
| 163 | 163 | ||||
| @@ -182,8 +182,6 @@ var xNewKeyFile func() uintptr | |||||
| 182 | // [method@GLib.KeyFile.load_from_data_dirs] to | 182 | // [method@GLib.KeyFile.load_from_data_dirs] to | ||
| 183 | // read an existing key file. | 183 | // read an existing key file. | ||
| 184 | func NewKeyFile() *KeyFile { | 184 | func NewKeyFile() *KeyFile { | ||
| 185 | - | core.LazyRegister(&xNewKeyFile, "GLIB", "g_key_file_new", false) | |||
| 186 | - | ||||
| 187 | cret := xNewKeyFile() | 185 | cret := xNewKeyFile() | ||
| 188 | if cret == 0 { | 186 | if cret == 0 { | ||
| 189 | return nil | 187 | return nil | ||
| @@ -199,8 +197,6 @@ var xKeyFileFree func(uintptr) | |||||
| 199 | // If the reference count reaches zero, frees the key file and all its allocated | 197 | // If the reference count reaches zero, frees the key file and all its allocated | ||
| 200 | // memory. | 198 | // memory. | ||
| 201 | func (x *KeyFile) Free() { | 199 | func (x *KeyFile) Free() { | ||
| 202 | - | core.LazyRegister(&xKeyFileFree, "GLIB", "g_key_file_free", false) | |||
| 203 | - | ||||
| 204 | xKeyFileFree(x.GoPointer()) | 200 | xKeyFileFree(x.GoPointer()) | ||
| 205 | } | 201 | } | ||
| 206 | 202 | ||||
| @@ -213,7 +209,6 @@ var xKeyFileGetBoolean func(uintptr, string, string, **Error) bool | |||||
| 213 | // returned. Likewise, if the value associated with @key cannot be interpreted | 209 | // returned. Likewise, if the value associated with @key cannot be interpreted | ||
| 214 | // as a boolean then [error@GLib.KeyFileError.INVALID_VALUE] is returned. | 210 | // as a boolean then [error@GLib.KeyFileError.INVALID_VALUE] is returned. | ||
| 215 | func (x *KeyFile) GetBoolean(GroupNameVar string, KeyVar string) (bool, error) { | 211 | func (x *KeyFile) GetBoolean(GroupNameVar string, KeyVar string) (bool, error) { | ||
| 216 | - | core.LazyRegister(&xKeyFileGetBoolean, "GLIB", "g_key_file_get_boolean", false) | |||
| 217 | var cerr *Error | 212 | var cerr *Error | ||
| 218 | 213 | ||||
| 219 | cret := xKeyFileGetBoolean(x.GoPointer(), GroupNameVar, KeyVar, &cerr) | 214 | cret := xKeyFileGetBoolean(x.GoPointer(), GroupNameVar, KeyVar, &cerr) | ||
| @@ -232,7 +227,6 @@ var xKeyFileGetBooleanList func(uintptr, string, string, *uint, **Error) uintptr | |||||
| 232 | // returned. Likewise, if the values associated with @key cannot be interpreted | 227 | // returned. Likewise, if the values associated with @key cannot be interpreted | ||
| 233 | // as booleans then [error@GLib.KeyFileError.INVALID_VALUE] is returned. | 228 | // as booleans then [error@GLib.KeyFileError.INVALID_VALUE] is returned. | ||
| 234 | func (x *KeyFile) GetBooleanList(GroupNameVar string, KeyVar string, LengthVar *uint) (uintptr, error) { | 229 | func (x *KeyFile) GetBooleanList(GroupNameVar string, KeyVar string, LengthVar *uint) (uintptr, error) { | ||
| 235 | - | core.LazyRegister(&xKeyFileGetBooleanList, "GLIB", "g_key_file_get_boolean_list", false) | |||
| 236 | var cerr *Error | 230 | var cerr *Error | ||
| 237 | 231 | ||||
| 238 | cret := xKeyFileGetBooleanList(x.GoPointer(), GroupNameVar, KeyVar, LengthVar, &cerr) | 232 | cret := xKeyFileGetBooleanList(x.GoPointer(), GroupNameVar, KeyVar, LengthVar, &cerr) | ||
| @@ -254,7 +248,6 @@ var xKeyFileGetComment func(uintptr, uintptr, uintptr, **Error) string | |||||
| 254 | // but does include any whitespace after them (on each line). It includes | 248 | // but does include any whitespace after them (on each line). It includes | ||
| 255 | // the line breaks between lines, but does not include the final line break. | 249 | // the line breaks between lines, but does not include the final line break. | ||
| 256 | func (x *KeyFile) GetComment(GroupNameVar *string, KeyVar *string) (string, error) { | 250 | func (x *KeyFile) GetComment(GroupNameVar *string, KeyVar *string) (string, error) { | ||
| 257 | - | core.LazyRegister(&xKeyFileGetComment, "GLIB", "g_key_file_get_comment", false) | |||
| 258 | var cerr *Error | 251 | var cerr *Error | ||
| 259 | 252 | ||||
| 260 | GroupNameVarPtr := core.GStrdupNullable(GroupNameVar) | 253 | GroupNameVarPtr := core.GStrdupNullable(GroupNameVar) | ||
| @@ -278,7 +271,6 @@ var xKeyFileGetDouble func(uintptr, string, string, **Error) float64 | |||||
| 278 | // returned. Likewise, if the value associated with @key cannot be interpreted | 271 | // returned. Likewise, if the value associated with @key cannot be interpreted | ||
| 279 | // as a double then [error@GLib.KeyFileError.INVALID_VALUE] is returned. | 272 | // as a double then [error@GLib.KeyFileError.INVALID_VALUE] is returned. | ||
| 280 | func (x *KeyFile) GetDouble(GroupNameVar string, KeyVar string) (float64, error) { | 273 | func (x *KeyFile) GetDouble(GroupNameVar string, KeyVar string) (float64, error) { | ||
| 281 | - | core.LazyRegister(&xKeyFileGetDouble, "GLIB", "g_key_file_get_double", false) | |||
| 282 | var cerr *Error | 274 | var cerr *Error | ||
| 283 | 275 | ||||
| 284 | cret := xKeyFileGetDouble(x.GoPointer(), GroupNameVar, KeyVar, &cerr) | 276 | cret := xKeyFileGetDouble(x.GoPointer(), GroupNameVar, KeyVar, &cerr) | ||
| @@ -297,7 +289,6 @@ var xKeyFileGetDoubleList func(uintptr, string, string, *uint, **Error) uintptr | |||||
| 297 | // returned. Likewise, if the values associated with @key cannot be interpreted | 289 | // returned. Likewise, if the values associated with @key cannot be interpreted | ||
| 298 | // as doubles then [error@GLib.KeyFileError.INVALID_VALUE] is returned. | 290 | // as doubles then [error@GLib.KeyFileError.INVALID_VALUE] is returned. | ||
| 299 | func (x *KeyFile) GetDoubleList(GroupNameVar string, KeyVar string, LengthVar *uint) (uintptr, error) { | 291 | func (x *KeyFile) GetDoubleList(GroupNameVar string, KeyVar string, LengthVar *uint) (uintptr, error) { | ||
| 300 | - | core.LazyRegister(&xKeyFileGetDoubleList, "GLIB", "g_key_file_get_double_list", false) | |||
| 301 | var cerr *Error | 292 | var cerr *Error | ||
| 302 | 293 | ||||
| 303 | cret := xKeyFileGetDoubleList(x.GoPointer(), GroupNameVar, KeyVar, LengthVar, &cerr) | 294 | cret := xKeyFileGetDoubleList(x.GoPointer(), GroupNameVar, KeyVar, LengthVar, &cerr) | ||
| @@ -314,8 +305,6 @@ var xKeyFileGetGroups func(uintptr, *uint) []string | |||||
| 314 | // The array of returned groups will be `NULL`-terminated, so | 305 | // The array of returned groups will be `NULL`-terminated, so | ||
| 315 | // @length may optionally be `NULL`. | 306 | // @length may optionally be `NULL`. | ||
| 316 | func (x *KeyFile) GetGroups(LengthVar *uint) []string { | 307 | func (x *KeyFile) GetGroups(LengthVar *uint) []string { | ||
| 317 | - | core.LazyRegister(&xKeyFileGetGroups, "GLIB", "g_key_file_get_groups", false) | |||
| 318 | - | ||||
| 319 | cret := xKeyFileGetGroups(x.GoPointer(), LengthVar) | 308 | cret := xKeyFileGetGroups(x.GoPointer(), LengthVar) | ||
| 320 | return cret | 309 | return cret | ||
| 321 | } | 310 | } | ||
| @@ -328,7 +317,6 @@ var xKeyFileGetInt64 func(uintptr, string, string, **Error) int64 | |||||
| 328 | // This is similar to [method@GLib.KeyFile.get_integer] but can return | 317 | // This is similar to [method@GLib.KeyFile.get_integer] but can return | ||
| 329 | // 64-bit results without truncation. | 318 | // 64-bit results without truncation. | ||
| 330 | func (x *KeyFile) GetInt64(GroupNameVar string, KeyVar string) (int64, error) { | 319 | func (x *KeyFile) GetInt64(GroupNameVar string, KeyVar string) (int64, error) { | ||
| 331 | - | core.LazyRegister(&xKeyFileGetInt64, "GLIB", "g_key_file_get_int64", false) | |||
| 332 | var cerr *Error | 320 | var cerr *Error | ||
| 333 | 321 | ||||
| 334 | cret := xKeyFileGetInt64(x.GoPointer(), GroupNameVar, KeyVar, &cerr) | 322 | cret := xKeyFileGetInt64(x.GoPointer(), GroupNameVar, KeyVar, &cerr) | ||
| @@ -348,7 +336,6 @@ var xKeyFileGetInteger func(uintptr, string, string, **Error) int | |||||
| 348 | // as an integer, or is out of range for a `gint`, then | 336 | // as an integer, or is out of range for a `gint`, then | ||
| 349 | // [error@GLib.KeyFileError.INVALID_VALUE] is returned. | 337 | // [error@GLib.KeyFileError.INVALID_VALUE] is returned. | ||
| 350 | func (x *KeyFile) GetInteger(GroupNameVar string, KeyVar string) (int, error) { | 338 | func (x *KeyFile) GetInteger(GroupNameVar string, KeyVar string) (int, error) { | ||
| 351 | - | core.LazyRegister(&xKeyFileGetInteger, "GLIB", "g_key_file_get_integer", false) | |||
| 352 | var cerr *Error | 339 | var cerr *Error | ||
| 353 | 340 | ||||
| 354 | cret := xKeyFileGetInteger(x.GoPointer(), GroupNameVar, KeyVar, &cerr) | 341 | cret := xKeyFileGetInteger(x.GoPointer(), GroupNameVar, KeyVar, &cerr) | ||
| @@ -368,7 +355,6 @@ var xKeyFileGetIntegerList func(uintptr, string, string, *uint, **Error) uintptr | |||||
| 368 | // as integers, or are out of range for `gint`, then | 355 | // as integers, or are out of range for `gint`, then | ||
| 369 | // [error@GLib.KeyFileError.INVALID_VALUE] is returned. | 356 | // [error@GLib.KeyFileError.INVALID_VALUE] is returned. | ||
| 370 | func (x *KeyFile) GetIntegerList(GroupNameVar string, KeyVar string, LengthVar *uint) (uintptr, error) { | 357 | func (x *KeyFile) GetIntegerList(GroupNameVar string, KeyVar string, LengthVar *uint) (uintptr, error) { | ||
| 371 | - | core.LazyRegister(&xKeyFileGetIntegerList, "GLIB", "g_key_file_get_integer_list", false) | |||
| 372 | var cerr *Error | 358 | var cerr *Error | ||
| 373 | 359 | ||||
| 374 | cret := xKeyFileGetIntegerList(x.GoPointer(), GroupNameVar, KeyVar, LengthVar, &cerr) | 360 | cret := xKeyFileGetIntegerList(x.GoPointer(), GroupNameVar, KeyVar, LengthVar, &cerr) | ||
| @@ -386,7 +372,6 @@ var xKeyFileGetKeys func(uintptr, string, *uint, **Error) []string | |||||
| 386 | // optionally be `NULL`. If the @group_name cannot be found, | 372 | // optionally be `NULL`. If the @group_name cannot be found, | ||
| 387 | // [error@GLib.KeyFileError.GROUP_NOT_FOUND] is returned. | 373 | // [error@GLib.KeyFileError.GROUP_NOT_FOUND] is returned. | ||
| 388 | func (x *KeyFile) GetKeys(GroupNameVar string, LengthVar *uint) ([]string, error) { | 374 | func (x *KeyFile) GetKeys(GroupNameVar string, LengthVar *uint) ([]string, error) { | ||
| 389 | - | core.LazyRegister(&xKeyFileGetKeys, "GLIB", "g_key_file_get_keys", false) | |||
| 390 | var cerr *Error | 375 | var cerr *Error | ||
| 391 | 376 | ||||
| 392 | cret := xKeyFileGetKeys(x.GoPointer(), GroupNameVar, LengthVar, &cerr) | 377 | cret := xKeyFileGetKeys(x.GoPointer(), GroupNameVar, LengthVar, &cerr) | ||
| @@ -408,8 +393,6 @@ var xKeyFileGetLocaleForKey func(uintptr, string, string, uintptr) string | |||||
| 408 | // have originally been tagged with the locale that is the result of | 393 | // have originally been tagged with the locale that is the result of | ||
| 409 | // this function. | 394 | // this function. | ||
| 410 | func (x *KeyFile) GetLocaleForKey(GroupNameVar string, KeyVar string, LocaleVar *string) string { | 395 | func (x *KeyFile) GetLocaleForKey(GroupNameVar string, KeyVar string, LocaleVar *string) string { | ||
| 411 | - | core.LazyRegister(&xKeyFileGetLocaleForKey, "GLIB", "g_key_file_get_locale_for_key", false) | |||
| 412 | - | ||||
| 413 | LocaleVarPtr := core.GStrdupNullable(LocaleVar) | 396 | LocaleVarPtr := core.GStrdupNullable(LocaleVar) | ||
| 414 | defer core.GFreeNullable(LocaleVarPtr) | 397 | defer core.GFreeNullable(LocaleVarPtr) | ||
| 415 | 398 | ||||
| @@ -436,7 +419,6 @@ var xKeyFileGetLocaleString func(uintptr, string, string, uintptr, **Error) stri | |||||
| 436 | // with @key cannot be interpreted or no suitable translation can | 419 | // with @key cannot be interpreted or no suitable translation can | ||
| 437 | // be found then the untranslated value is returned. | 420 | // be found then the untranslated value is returned. | ||
| 438 | func (x *KeyFile) GetLocaleString(GroupNameVar string, KeyVar string, LocaleVar *string) (string, error) { | 421 | func (x *KeyFile) GetLocaleString(GroupNameVar string, KeyVar string, LocaleVar *string) (string, error) { | ||
| 439 | - | core.LazyRegister(&xKeyFileGetLocaleString, "GLIB", "g_key_file_get_locale_string", false) | |||
| 440 | var cerr *Error | 422 | var cerr *Error | ||
| 441 | 423 | ||||
| 442 | LocaleVarPtr := core.GStrdupNullable(LocaleVar) | 424 | LocaleVarPtr := core.GStrdupNullable(LocaleVar) | ||
| @@ -470,7 +452,6 @@ var xKeyFileGetLocaleStringList func(uintptr, string, string, uintptr, *uint, ** | |||||
| 470 | // returned array is `NULL`-terminated, so @length may optionally | 452 | // returned array is `NULL`-terminated, so @length may optionally | ||
| 471 | // be `NULL`. | 453 | // be `NULL`. | ||
| 472 | func (x *KeyFile) GetLocaleStringList(GroupNameVar string, KeyVar string, LocaleVar *string, LengthVar *uint) ([]string, error) { | 454 | func (x *KeyFile) GetLocaleStringList(GroupNameVar string, KeyVar string, LocaleVar *string, LengthVar *uint) ([]string, error) { | ||
| 473 | - | core.LazyRegister(&xKeyFileGetLocaleStringList, "GLIB", "g_key_file_get_locale_string_list", false) | |||
| 474 | var cerr *Error | 455 | var cerr *Error | ||
| 475 | 456 | ||||
| 476 | LocaleVarPtr := core.GStrdupNullable(LocaleVar) | 457 | LocaleVarPtr := core.GStrdupNullable(LocaleVar) | ||
| @@ -487,8 +468,6 @@ var xKeyFileGetStartGroup func(uintptr) string | |||||
| 487 | 468 | ||||
| 488 | // Returns the name of the start group of the file. | 469 | // Returns the name of the start group of the file. | ||
| 489 | func (x *KeyFile) GetStartGroup() string { | 470 | func (x *KeyFile) GetStartGroup() string { | ||
| 490 | - | core.LazyRegister(&xKeyFileGetStartGroup, "GLIB", "g_key_file_get_start_group", false) | |||
| 491 | - | ||||
| 492 | cret := xKeyFileGetStartGroup(x.GoPointer()) | 471 | cret := xKeyFileGetStartGroup(x.GoPointer()) | ||
| 493 | return cret | 472 | return cret | ||
| 494 | } | 473 | } | ||
| @@ -504,7 +483,6 @@ var xKeyFileGetString func(uintptr, string, string, **Error) string | |||||
| 504 | // returned. If the @group_name cannot be found, | 483 | // returned. If the @group_name cannot be found, | ||
| 505 | // [error@GLib.KeyFileError.GROUP_NOT_FOUND] is returned. | 484 | // [error@GLib.KeyFileError.GROUP_NOT_FOUND] is returned. | ||
| 506 | func (x *KeyFile) GetString(GroupNameVar string, KeyVar string) (string, error) { | 485 | func (x *KeyFile) GetString(GroupNameVar string, KeyVar string) (string, error) { | ||
| 507 | - | core.LazyRegister(&xKeyFileGetString, "GLIB", "g_key_file_get_string", false) | |||
| 508 | var cerr *Error | 486 | var cerr *Error | ||
| 509 | 487 | ||||
| 510 | cret := xKeyFileGetString(x.GoPointer(), GroupNameVar, KeyVar, &cerr) | 488 | cret := xKeyFileGetString(x.GoPointer(), GroupNameVar, KeyVar, &cerr) | ||
| @@ -522,7 +500,6 @@ var xKeyFileGetStringList func(uintptr, string, string, *uint, **Error) []string | |||||
| 522 | // returned. If the @group_name cannot be found, | 500 | // returned. If the @group_name cannot be found, | ||
| 523 | // [error@GLib.KeyFileError.GROUP_NOT_FOUND] is returned. | 501 | // [error@GLib.KeyFileError.GROUP_NOT_FOUND] is returned. | ||
| 524 | func (x *KeyFile) GetStringList(GroupNameVar string, KeyVar string, LengthVar *uint) ([]string, error) { | 502 | func (x *KeyFile) GetStringList(GroupNameVar string, KeyVar string, LengthVar *uint) ([]string, error) { | ||
| 525 | - | core.LazyRegister(&xKeyFileGetStringList, "GLIB", "g_key_file_get_string_list", false) | |||
| 526 | var cerr *Error | 503 | var cerr *Error | ||
| 527 | 504 | ||||
| 528 | cret := xKeyFileGetStringList(x.GoPointer(), GroupNameVar, KeyVar, LengthVar, &cerr) | 505 | cret := xKeyFileGetStringList(x.GoPointer(), GroupNameVar, KeyVar, LengthVar, &cerr) | ||
| @@ -540,7 +517,6 @@ var xKeyFileGetUint64 func(uintptr, string, string, **Error) uint64 | |||||
| 540 | // This is similar to [method@GLib.KeyFile.get_integer] but can return | 517 | // This is similar to [method@GLib.KeyFile.get_integer] but can return | ||
| 541 | // large positive results without truncation. | 518 | // large positive results without truncation. | ||
| 542 | func (x *KeyFile) GetUint64(GroupNameVar string, KeyVar string) (uint64, error) { | 519 | func (x *KeyFile) GetUint64(GroupNameVar string, KeyVar string) (uint64, error) { | ||
| 543 | - | core.LazyRegister(&xKeyFileGetUint64, "GLIB", "g_key_file_get_uint64", false) | |||
| 544 | var cerr *Error | 520 | var cerr *Error | ||
| 545 | 521 | ||||
| 546 | cret := xKeyFileGetUint64(x.GoPointer(), GroupNameVar, KeyVar, &cerr) | 522 | cret := xKeyFileGetUint64(x.GoPointer(), GroupNameVar, KeyVar, &cerr) | ||
| @@ -560,7 +536,6 @@ var xKeyFileGetValue func(uintptr, string, string, **Error) string | |||||
| 560 | // is returned. If the @group_name cannot be found, | 536 | // is returned. If the @group_name cannot be found, | ||
| 561 | // [error@GLib.KeyFileError.GROUP_NOT_FOUND] is returned. | 537 | // [error@GLib.KeyFileError.GROUP_NOT_FOUND] is returned. | ||
| 562 | func (x *KeyFile) GetValue(GroupNameVar string, KeyVar string) (string, error) { | 538 | func (x *KeyFile) GetValue(GroupNameVar string, KeyVar string) (string, error) { | ||
| 563 | - | core.LazyRegister(&xKeyFileGetValue, "GLIB", "g_key_file_get_value", false) | |||
| 564 | var cerr *Error | 539 | var cerr *Error | ||
| 565 | 540 | ||||
| 566 | cret := xKeyFileGetValue(x.GoPointer(), GroupNameVar, KeyVar, &cerr) | 541 | cret := xKeyFileGetValue(x.GoPointer(), GroupNameVar, KeyVar, &cerr) | ||
| @@ -574,8 +549,6 @@ var xKeyFileHasGroup func(uintptr, string) bool | |||||
| 574 | 549 | ||||
| 575 | // Looks whether the key file has the group @group_name. | 550 | // Looks whether the key file has the group @group_name. | ||
| 576 | func (x *KeyFile) HasGroup(GroupNameVar string) bool { | 551 | func (x *KeyFile) HasGroup(GroupNameVar string) bool { | ||
| 577 | - | core.LazyRegister(&xKeyFileHasGroup, "GLIB", "g_key_file_has_group", false) | |||
| 578 | - | ||||
| 579 | cret := xKeyFileHasGroup(x.GoPointer(), GroupNameVar) | 552 | cret := xKeyFileHasGroup(x.GoPointer(), GroupNameVar) | ||
| 580 | return cret | 553 | return cret | ||
| 581 | } | 554 | } | ||
| @@ -594,7 +567,6 @@ var xKeyFileHasKey func(uintptr, string, string, **Error) bool | |||||
| 594 | // Language bindings should use [method@GLib.KeyFile.get_value] to test whether | 567 | // Language bindings should use [method@GLib.KeyFile.get_value] to test whether | ||
| 595 | // a key exists. | 568 | // a key exists. | ||
| 596 | func (x *KeyFile) HasKey(GroupNameVar string, KeyVar string) (bool, error) { | 569 | func (x *KeyFile) HasKey(GroupNameVar string, KeyVar string) (bool, error) { | ||
| 597 | - | core.LazyRegister(&xKeyFileHasKey, "GLIB", "g_key_file_has_key", false) | |||
| 598 | var cerr *Error | 570 | var cerr *Error | ||
| 599 | 571 | ||||
| 600 | cret := xKeyFileHasKey(x.GoPointer(), GroupNameVar, KeyVar, &cerr) | 572 | cret := xKeyFileHasKey(x.GoPointer(), GroupNameVar, KeyVar, &cerr) | ||
| @@ -611,7 +583,6 @@ var xKeyFileLoadFromBytes func(uintptr, *Bytes, KeyFileFlags, **Error) bool | |||||
| 611 | // | 583 | // | ||
| 612 | // If the object cannot be created then a [error@GLib.KeyFileError] is returned. | 584 | // If the object cannot be created then a [error@GLib.KeyFileError] is returned. | ||
| 613 | func (x *KeyFile) LoadFromBytes(BytesVar *Bytes, FlagsVar KeyFileFlags) (bool, error) { | 585 | func (x *KeyFile) LoadFromBytes(BytesVar *Bytes, FlagsVar KeyFileFlags) (bool, error) { | ||
| 614 | - | core.LazyRegister(&xKeyFileLoadFromBytes, "GLIB", "g_key_file_load_from_bytes", false) | |||
| 615 | var cerr *Error | 586 | var cerr *Error | ||
| 616 | 587 | ||||
| 617 | cret := xKeyFileLoadFromBytes(x.GoPointer(), BytesVar, FlagsVar, &cerr) | 588 | cret := xKeyFileLoadFromBytes(x.GoPointer(), BytesVar, FlagsVar, &cerr) | ||
| @@ -627,7 +598,6 @@ var xKeyFileLoadFromData func(uintptr, string, uint, KeyFileFlags, **Error) bool | |||||
| 627 | // | 598 | // | ||
| 628 | // If the object cannot be created then a [error@GLib.KeyFileError is returned. | 599 | // If the object cannot be created then a [error@GLib.KeyFileError is returned. | ||
| 629 | func (x *KeyFile) LoadFromData(DataVar string, LengthVar uint, FlagsVar KeyFileFlags) (bool, error) { | 600 | func (x *KeyFile) LoadFromData(DataVar string, LengthVar uint, FlagsVar KeyFileFlags) (bool, error) { | ||
| 630 | - | core.LazyRegister(&xKeyFileLoadFromData, "GLIB", "g_key_file_load_from_data", false) | |||
| 631 | var cerr *Error | 601 | var cerr *Error | ||
| 632 | 602 | ||||
| 633 | cret := xKeyFileLoadFromData(x.GoPointer(), DataVar, LengthVar, FlagsVar, &cerr) | 603 | cret := xKeyFileLoadFromData(x.GoPointer(), DataVar, LengthVar, FlagsVar, &cerr) | ||
| @@ -649,7 +619,6 @@ var xKeyFileLoadFromDataDirs func(uintptr, string, *string, KeyFileFlags, **Erro | |||||
| 649 | // If the file could not be loaded then either a [error@GLib.FileError] or | 619 | // If the file could not be loaded then either a [error@GLib.FileError] or | ||
| 650 | // [error@GLib.KeyFileError] is returned. | 620 | // [error@GLib.KeyFileError] is returned. | ||
| 651 | func (x *KeyFile) LoadFromDataDirs(FileVar string, FullPathVar *string, FlagsVar KeyFileFlags) (bool, error) { | 621 | func (x *KeyFile) LoadFromDataDirs(FileVar string, FullPathVar *string, FlagsVar KeyFileFlags) (bool, error) { | ||
| 652 | - | core.LazyRegister(&xKeyFileLoadFromDataDirs, "GLIB", "g_key_file_load_from_data_dirs", false) | |||
| 653 | var cerr *Error | 622 | var cerr *Error | ||
| 654 | 623 | ||||
| 655 | cret := xKeyFileLoadFromDataDirs(x.GoPointer(), FileVar, FullPathVar, FlagsVar, &cerr) | 624 | cret := xKeyFileLoadFromDataDirs(x.GoPointer(), FileVar, FullPathVar, FlagsVar, &cerr) | ||
| @@ -677,7 +646,6 @@ var xKeyFileLoadFromDirs func(uintptr, string, []string, *string, KeyFileFlags, | |||||
| 677 | // file, a [error@GLib.FileError] is returned. If there is a problem parsing the | 646 | // file, a [error@GLib.FileError] is returned. If there is a problem parsing the | ||
| 678 | // file, a [error@GLib.KeyFileError] is returned. | 647 | // file, a [error@GLib.KeyFileError] is returned. | ||
| 679 | func (x *KeyFile) LoadFromDirs(FileVar string, SearchDirsVar []string, FullPathVar *string, FlagsVar KeyFileFlags) (bool, error) { | 648 | func (x *KeyFile) LoadFromDirs(FileVar string, SearchDirsVar []string, FullPathVar *string, FlagsVar KeyFileFlags) (bool, error) { | ||
| 680 | - | core.LazyRegister(&xKeyFileLoadFromDirs, "GLIB", "g_key_file_load_from_dirs", false) | |||
| 681 | var cerr *Error | 649 | var cerr *Error | ||
| 682 | 650 | ||||
| 683 | cret := xKeyFileLoadFromDirs(x.GoPointer(), FileVar, SearchDirsVar, FullPathVar, FlagsVar, &cerr) | 651 | cret := xKeyFileLoadFromDirs(x.GoPointer(), FileVar, SearchDirsVar, FullPathVar, FlagsVar, &cerr) | ||
| @@ -698,7 +666,6 @@ var xKeyFileLoadFromFile func(uintptr, string, KeyFileFlags, **Error) bool | |||||
| 698 | // This function will never return a [error@GLib.KeyFileError.NOT_FOUND] | 666 | // This function will never return a [error@GLib.KeyFileError.NOT_FOUND] | ||
| 699 | // error. If the @file is not found, [error@GLib.FileError.NOENT] is returned. | 667 | // error. If the @file is not found, [error@GLib.FileError.NOENT] is returned. | ||
| 700 | func (x *KeyFile) LoadFromFile(FileVar string, FlagsVar KeyFileFlags) (bool, error) { | 668 | func (x *KeyFile) LoadFromFile(FileVar string, FlagsVar KeyFileFlags) (bool, error) { | ||
| 701 | - | core.LazyRegister(&xKeyFileLoadFromFile, "GLIB", "g_key_file_load_from_file", false) | |||
| 702 | var cerr *Error | 669 | var cerr *Error | ||
| 703 | 670 | ||||
| 704 | cret := xKeyFileLoadFromFile(x.GoPointer(), FileVar, FlagsVar, &cerr) | 671 | cret := xKeyFileLoadFromFile(x.GoPointer(), FileVar, FlagsVar, &cerr) | ||
| @@ -712,8 +679,6 @@ var xKeyFileRef func(uintptr) uintptr | |||||
| 712 | 679 | ||||
| 713 | // Increases the reference count of @key_file. | 680 | // Increases the reference count of @key_file. | ||
| 714 | func (x *KeyFile) Ref() *KeyFile { | 681 | func (x *KeyFile) Ref() *KeyFile { | ||
| 715 | - | core.LazyRegister(&xKeyFileRef, "GLIB", "g_key_file_ref", false) | |||
| 716 | - | ||||
| 717 | cret := xKeyFileRef(x.GoPointer()) | 682 | cret := xKeyFileRef(x.GoPointer()) | ||
| 718 | if cret == 0 { | 683 | if cret == 0 { | ||
| 719 | return nil | 684 | return nil | ||
| @@ -729,7 +694,6 @@ var xKeyFileRemoveComment func(uintptr, uintptr, uintptr, **Error) bool | |||||
| 729 | // If both @key and @group_name are `NULL`, then @comment will | 694 | // If both @key and @group_name are `NULL`, then @comment will | ||
| 730 | // be removed above the first group in the file. | 695 | // be removed above the first group in the file. | ||
| 731 | func (x *KeyFile) RemoveComment(GroupNameVar *string, KeyVar *string) (bool, error) { | 696 | func (x *KeyFile) RemoveComment(GroupNameVar *string, KeyVar *string) (bool, error) { | ||
| 732 | - | core.LazyRegister(&xKeyFileRemoveComment, "GLIB", "g_key_file_remove_comment", false) | |||
| 733 | var cerr *Error | 697 | var cerr *Error | ||
| 734 | 698 | ||||
| 735 | GroupNameVarPtr := core.GStrdupNullable(GroupNameVar) | 699 | GroupNameVarPtr := core.GStrdupNullable(GroupNameVar) | ||
| @@ -750,7 +714,6 @@ var xKeyFileRemoveGroup func(uintptr, string, **Error) bool | |||||
| 750 | // Removes the specified group, @group_name, | 714 | // Removes the specified group, @group_name, | ||
| 751 | // from the key file. | 715 | // from the key file. | ||
| 752 | func (x *KeyFile) RemoveGroup(GroupNameVar string) (bool, error) { | 716 | func (x *KeyFile) RemoveGroup(GroupNameVar string) (bool, error) { | ||
| 753 | - | core.LazyRegister(&xKeyFileRemoveGroup, "GLIB", "g_key_file_remove_group", false) | |||
| 754 | var cerr *Error | 717 | var cerr *Error | ||
| 755 | 718 | ||||
| 756 | cret := xKeyFileRemoveGroup(x.GoPointer(), GroupNameVar, &cerr) | 719 | cret := xKeyFileRemoveGroup(x.GoPointer(), GroupNameVar, &cerr) | ||
| @@ -764,7 +727,6 @@ var xKeyFileRemoveKey func(uintptr, string, string, **Error) bool | |||||
| 764 | 727 | ||||
| 765 | // Removes @key in @group_name from the key file. | 728 | // Removes @key in @group_name from the key file. | ||
| 766 | func (x *KeyFile) RemoveKey(GroupNameVar string, KeyVar string) (bool, error) { | 729 | func (x *KeyFile) RemoveKey(GroupNameVar string, KeyVar string) (bool, error) { | ||
| 767 | - | core.LazyRegister(&xKeyFileRemoveKey, "GLIB", "g_key_file_remove_key", false) | |||
| 768 | var cerr *Error | 730 | var cerr *Error | ||
| 769 | 731 | ||||
| 770 | cret := xKeyFileRemoveKey(x.GoPointer(), GroupNameVar, KeyVar, &cerr) | 732 | cret := xKeyFileRemoveKey(x.GoPointer(), GroupNameVar, KeyVar, &cerr) | ||
| @@ -787,7 +749,6 @@ var xKeyFileSaveToFile func(uintptr, string, **Error) bool | |||||
| 787 | // This function can fail for any of the reasons that | 749 | // This function can fail for any of the reasons that | ||
| 788 | // [func@GLib.file_set_contents] may fail. | 750 | // [func@GLib.file_set_contents] may fail. | ||
| 789 | func (x *KeyFile) SaveToFile(FilenameVar string) (bool, error) { | 751 | func (x *KeyFile) SaveToFile(FilenameVar string) (bool, error) { | ||
| 790 | - | core.LazyRegister(&xKeyFileSaveToFile, "GLIB", "g_key_file_save_to_file", false) | |||
| 791 | var cerr *Error | 752 | var cerr *Error | ||
| 792 | 753 | ||||
| 793 | cret := xKeyFileSaveToFile(x.GoPointer(), FilenameVar, &cerr) | 754 | cret := xKeyFileSaveToFile(x.GoPointer(), FilenameVar, &cerr) | ||
| @@ -803,8 +764,6 @@ var xKeyFileSetBoolean func(uintptr, string, string, bool) | |||||
| 803 | // | 764 | // | ||
| 804 | // If @key cannot be found then it is created. | 765 | // If @key cannot be found then it is created. | ||
| 805 | func (x *KeyFile) SetBoolean(GroupNameVar string, KeyVar string, ValueVar bool) { | 766 | func (x *KeyFile) SetBoolean(GroupNameVar string, KeyVar string, ValueVar bool) { | ||
| 806 | - | core.LazyRegister(&xKeyFileSetBoolean, "GLIB", "g_key_file_set_boolean", false) | |||
| 807 | - | ||||
| 808 | xKeyFileSetBoolean(x.GoPointer(), GroupNameVar, KeyVar, ValueVar) | 767 | xKeyFileSetBoolean(x.GoPointer(), GroupNameVar, KeyVar, ValueVar) | ||
| 809 | } | 768 | } | ||
| 810 | 769 | ||||
| @@ -814,8 +773,6 @@ var xKeyFileSetBooleanList func(uintptr, string, string, []bool, uint) | |||||
| 814 | // | 773 | // | ||
| 815 | // If @key cannot be found then it is created. | 774 | // If @key cannot be found then it is created. | ||
| 816 | func (x *KeyFile) SetBooleanList(GroupNameVar string, KeyVar string, ListVar []bool, LengthVar uint) { | 775 | func (x *KeyFile) SetBooleanList(GroupNameVar string, KeyVar string, ListVar []bool, LengthVar uint) { | ||
| 817 | - | core.LazyRegister(&xKeyFileSetBooleanList, "GLIB", "g_key_file_set_boolean_list", false) | |||
| 818 | - | ||||
| 819 | xKeyFileSetBooleanList(x.GoPointer(), GroupNameVar, KeyVar, ListVar, LengthVar) | 776 | xKeyFileSetBooleanList(x.GoPointer(), GroupNameVar, KeyVar, ListVar, LengthVar) | ||
| 820 | } | 777 | } | ||
| 821 | 778 | ||||
| @@ -835,7 +792,6 @@ var xKeyFileSetComment func(uintptr, uintptr, uintptr, string, **Error) bool | |||||
| 835 | // Note that this function prepends a `#` comment marker to | 792 | // Note that this function prepends a `#` comment marker to | ||
| 836 | // each line of @comment. | 793 | // each line of @comment. | ||
| 837 | func (x *KeyFile) SetComment(GroupNameVar *string, KeyVar *string, CommentVar string) (bool, error) { | 794 | func (x *KeyFile) SetComment(GroupNameVar *string, KeyVar *string, CommentVar string) (bool, error) { | ||
| 838 | - | core.LazyRegister(&xKeyFileSetComment, "GLIB", "g_key_file_set_comment", false) | |||
| 839 | var cerr *Error | 795 | var cerr *Error | ||
| 840 | 796 | ||||
| 841 | GroupNameVarPtr := core.GStrdupNullable(GroupNameVar) | 797 | GroupNameVarPtr := core.GStrdupNullable(GroupNameVar) | ||
| @@ -857,8 +813,6 @@ var xKeyFileSetDouble func(uintptr, string, string, float64) | |||||
| 857 | // | 813 | // | ||
| 858 | // If @key cannot be found then it is created. | 814 | // If @key cannot be found then it is created. | ||
| 859 | func (x *KeyFile) SetDouble(GroupNameVar string, KeyVar string, ValueVar float64) { | 815 | func (x *KeyFile) SetDouble(GroupNameVar string, KeyVar string, ValueVar float64) { | ||
| 860 | - | core.LazyRegister(&xKeyFileSetDouble, "GLIB", "g_key_file_set_double", false) | |||
| 861 | - | ||||
| 862 | xKeyFileSetDouble(x.GoPointer(), GroupNameVar, KeyVar, ValueVar) | 816 | xKeyFileSetDouble(x.GoPointer(), GroupNameVar, KeyVar, ValueVar) | ||
| 863 | } | 817 | } | ||
| 864 | 818 | ||||
| @@ -868,8 +822,6 @@ var xKeyFileSetDoubleList func(uintptr, string, string, []float64, uint) | |||||
| 868 | // | 822 | // | ||
| 869 | // If @key cannot be found then it is created. | 823 | // If @key cannot be found then it is created. | ||
| 870 | func (x *KeyFile) SetDoubleList(GroupNameVar string, KeyVar string, ListVar []float64, LengthVar uint) { | 824 | func (x *KeyFile) SetDoubleList(GroupNameVar string, KeyVar string, ListVar []float64, LengthVar uint) { | ||
| 871 | - | core.LazyRegister(&xKeyFileSetDoubleList, "GLIB", "g_key_file_set_double_list", false) | |||
| 872 | - | ||||
| 873 | xKeyFileSetDoubleList(x.GoPointer(), GroupNameVar, KeyVar, ListVar, LengthVar) | 825 | xKeyFileSetDoubleList(x.GoPointer(), GroupNameVar, KeyVar, ListVar, LengthVar) | ||
| 874 | } | 826 | } | ||
| 875 | 827 | ||||
| @@ -879,8 +831,6 @@ var xKeyFileSetInt64 func(uintptr, string, string, int64) | |||||
| 879 | // | 831 | // | ||
| 880 | // If @key cannot be found then it is created. | 832 | // If @key cannot be found then it is created. | ||
| 881 | func (x *KeyFile) SetInt64(GroupNameVar string, KeyVar string, ValueVar int64) { | 833 | func (x *KeyFile) SetInt64(GroupNameVar string, KeyVar string, ValueVar int64) { | ||
| 882 | - | core.LazyRegister(&xKeyFileSetInt64, "GLIB", "g_key_file_set_int64", false) | |||
| 883 | - | ||||
| 884 | xKeyFileSetInt64(x.GoPointer(), GroupNameVar, KeyVar, ValueVar) | 834 | xKeyFileSetInt64(x.GoPointer(), GroupNameVar, KeyVar, ValueVar) | ||
| 885 | } | 835 | } | ||
| 886 | 836 | ||||
| @@ -890,8 +840,6 @@ var xKeyFileSetInteger func(uintptr, string, string, int) | |||||
| 890 | // | 840 | // | ||
| 891 | // If @key cannot be found then it is created. | 841 | // If @key cannot be found then it is created. | ||
| 892 | func (x *KeyFile) SetInteger(GroupNameVar string, KeyVar string, ValueVar int) { | 842 | func (x *KeyFile) SetInteger(GroupNameVar string, KeyVar string, ValueVar int) { | ||
| 893 | - | core.LazyRegister(&xKeyFileSetInteger, "GLIB", "g_key_file_set_integer", false) | |||
| 894 | - | ||||
| 895 | xKeyFileSetInteger(x.GoPointer(), GroupNameVar, KeyVar, ValueVar) | 843 | xKeyFileSetInteger(x.GoPointer(), GroupNameVar, KeyVar, ValueVar) | ||
| 896 | } | 844 | } | ||
| 897 | 845 | ||||
| @@ -901,8 +849,6 @@ var xKeyFileSetIntegerList func(uintptr, string, string, []int, uint) | |||||
| 901 | // | 849 | // | ||
| 902 | // If @key cannot be found then it is created. | 850 | // If @key cannot be found then it is created. | ||
| 903 | func (x *KeyFile) SetIntegerList(GroupNameVar string, KeyVar string, ListVar []int, LengthVar uint) { | 851 | func (x *KeyFile) SetIntegerList(GroupNameVar string, KeyVar string, ListVar []int, LengthVar uint) { | ||
| 904 | - | core.LazyRegister(&xKeyFileSetIntegerList, "GLIB", "g_key_file_set_integer_list", false) | |||
| 905 | - | ||||
| 906 | xKeyFileSetIntegerList(x.GoPointer(), GroupNameVar, KeyVar, ListVar, LengthVar) | 852 | xKeyFileSetIntegerList(x.GoPointer(), GroupNameVar, KeyVar, ListVar, LengthVar) | ||
| 907 | } | 853 | } | ||
| 908 | 854 | ||||
| @@ -913,8 +859,6 @@ var xKeyFileSetListSeparator func(uintptr, byte) | |||||
| 913 | // Typically `;` or `,` are used as separators. The default list separator | 859 | // Typically `;` or `,` are used as separators. The default list separator | ||
| 914 | // is `;`. | 860 | // is `;`. | ||
| 915 | func (x *KeyFile) SetListSeparator(SeparatorVar byte) { | 861 | func (x *KeyFile) SetListSeparator(SeparatorVar byte) { | ||
| 916 | - | core.LazyRegister(&xKeyFileSetListSeparator, "GLIB", "g_key_file_set_list_separator", false) | |||
| 917 | - | ||||
| 918 | xKeyFileSetListSeparator(x.GoPointer(), SeparatorVar) | 862 | xKeyFileSetListSeparator(x.GoPointer(), SeparatorVar) | ||
| 919 | } | 863 | } | ||
| 920 | 864 | ||||
| @@ -926,8 +870,6 @@ var xKeyFileSetLocaleString func(uintptr, string, string, string, string) | |||||
| 926 | // | 870 | // | ||
| 927 | // If @locale is `C` then the untranslated value is set (since GLib 2.84). | 871 | // If @locale is `C` then the untranslated value is set (since GLib 2.84). | ||
| 928 | func (x *KeyFile) SetLocaleString(GroupNameVar string, KeyVar string, LocaleVar string, StringVar string) { | 872 | func (x *KeyFile) SetLocaleString(GroupNameVar string, KeyVar string, LocaleVar string, StringVar string) { | ||
| 929 | - | core.LazyRegister(&xKeyFileSetLocaleString, "GLIB", "g_key_file_set_locale_string", false) | |||
| 930 | - | ||||
| 931 | xKeyFileSetLocaleString(x.GoPointer(), GroupNameVar, KeyVar, LocaleVar, StringVar) | 873 | xKeyFileSetLocaleString(x.GoPointer(), GroupNameVar, KeyVar, LocaleVar, StringVar) | ||
| 932 | } | 874 | } | ||
| 933 | 875 | ||||
| @@ -940,8 +882,6 @@ var xKeyFileSetLocaleStringList func(uintptr, string, string, string, []string, | |||||
| 940 | // | 882 | // | ||
| 941 | // If the translation for @key cannot be found then it is created. | 883 | // If the translation for @key cannot be found then it is created. | ||
| 942 | func (x *KeyFile) SetLocaleStringList(GroupNameVar string, KeyVar string, LocaleVar string, ListVar []string, LengthVar uint) { | 884 | func (x *KeyFile) SetLocaleStringList(GroupNameVar string, KeyVar string, LocaleVar string, ListVar []string, LengthVar uint) { | ||
| 943 | - | core.LazyRegister(&xKeyFileSetLocaleStringList, "GLIB", "g_key_file_set_locale_string_list", false) | |||
| 944 | - | ||||
| 945 | xKeyFileSetLocaleStringList(x.GoPointer(), GroupNameVar, KeyVar, LocaleVar, ListVar, LengthVar) | 885 | xKeyFileSetLocaleStringList(x.GoPointer(), GroupNameVar, KeyVar, LocaleVar, ListVar, LengthVar) | ||
| 946 | } | 886 | } | ||
| 947 | 887 | ||||
| @@ -954,8 +894,6 @@ var xKeyFileSetString func(uintptr, string, string, string) | |||||
| 954 | // Unlike [method@GLib.KeyFile.set_value], this function handles characters | 894 | // Unlike [method@GLib.KeyFile.set_value], this function handles characters | ||
| 955 | // that need escaping, such as newlines. | 895 | // that need escaping, such as newlines. | ||
| 956 | func (x *KeyFile) SetString(GroupNameVar string, KeyVar string, StringVar string) { | 896 | func (x *KeyFile) SetString(GroupNameVar string, KeyVar string, StringVar string) { | ||
| 957 | - | core.LazyRegister(&xKeyFileSetString, "GLIB", "g_key_file_set_string", false) | |||
| 958 | - | ||||
| 959 | xKeyFileSetString(x.GoPointer(), GroupNameVar, KeyVar, StringVar) | 897 | xKeyFileSetString(x.GoPointer(), GroupNameVar, KeyVar, StringVar) | ||
| 960 | } | 898 | } | ||
| 961 | 899 | ||||
| @@ -966,8 +904,6 @@ var xKeyFileSetStringList func(uintptr, string, string, []string, uint) | |||||
| 966 | // If @key cannot be found then it is created. | 904 | // If @key cannot be found then it is created. | ||
| 967 | // If @group_name cannot be found then it is created. | 905 | // If @group_name cannot be found then it is created. | ||
| 968 | func (x *KeyFile) SetStringList(GroupNameVar string, KeyVar string, ListVar []string, LengthVar uint) { | 906 | func (x *KeyFile) SetStringList(GroupNameVar string, KeyVar string, ListVar []string, LengthVar uint) { | ||
| 969 | - | core.LazyRegister(&xKeyFileSetStringList, "GLIB", "g_key_file_set_string_list", false) | |||
| 970 | - | ||||
| 971 | xKeyFileSetStringList(x.GoPointer(), GroupNameVar, KeyVar, ListVar, LengthVar) | 907 | xKeyFileSetStringList(x.GoPointer(), GroupNameVar, KeyVar, ListVar, LengthVar) | ||
| 972 | } | 908 | } | ||
| 973 | 909 | ||||
| @@ -977,8 +913,6 @@ var xKeyFileSetUint64 func(uintptr, string, string, uint64) | |||||
| 977 | // | 913 | // | ||
| 978 | // If @key cannot be found then it is created. | 914 | // If @key cannot be found then it is created. | ||
| 979 | func (x *KeyFile) SetUint64(GroupNameVar string, KeyVar string, ValueVar uint64) { | 915 | func (x *KeyFile) SetUint64(GroupNameVar string, KeyVar string, ValueVar uint64) { | ||
| 980 | - | core.LazyRegister(&xKeyFileSetUint64, "GLIB", "g_key_file_set_uint64", false) | |||
| 981 | - | ||||
| 982 | xKeyFileSetUint64(x.GoPointer(), GroupNameVar, KeyVar, ValueVar) | 916 | xKeyFileSetUint64(x.GoPointer(), GroupNameVar, KeyVar, ValueVar) | ||
| 983 | } | 917 | } | ||
| 984 | 918 | ||||
| @@ -991,8 +925,6 @@ var xKeyFileSetValue func(uintptr, string, string, string) | |||||
| 991 | // characters that need escaping (such as newlines or spaces), use | 925 | // characters that need escaping (such as newlines or spaces), use | ||
| 992 | // [method@GLib.KeyFile.set_string]. | 926 | // [method@GLib.KeyFile.set_string]. | ||
| 993 | func (x *KeyFile) SetValue(GroupNameVar string, KeyVar string, ValueVar string) { | 927 | func (x *KeyFile) SetValue(GroupNameVar string, KeyVar string, ValueVar string) { | ||
| 994 | - | core.LazyRegister(&xKeyFileSetValue, "GLIB", "g_key_file_set_value", false) | |||
| 995 | - | ||||
| 996 | xKeyFileSetValue(x.GoPointer(), GroupNameVar, KeyVar, ValueVar) | 928 | xKeyFileSetValue(x.GoPointer(), GroupNameVar, KeyVar, ValueVar) | ||
| 997 | } | 929 | } | ||
| 998 | 930 | ||||
| @@ -1002,7 +934,6 @@ var xKeyFileToData func(uintptr, *uint, **Error) string | |||||
| 1002 | // | 934 | // | ||
| 1003 | // Note that this function never reports an error. | 935 | // Note that this function never reports an error. | ||
| 1004 | func (x *KeyFile) ToData(LengthVar *uint) (string, error) { | 936 | func (x *KeyFile) ToData(LengthVar *uint) (string, error) { | ||
| 1005 | - | core.LazyRegister(&xKeyFileToData, "GLIB", "g_key_file_to_data", false) | |||
| 1006 | var cerr *Error | 937 | var cerr *Error | ||
| 1007 | 938 | ||||
| 1008 | cret := xKeyFileToData(x.GoPointer(), LengthVar, &cerr) | 939 | cret := xKeyFileToData(x.GoPointer(), LengthVar, &cerr) | ||
| @@ -1019,8 +950,6 @@ var xKeyFileUnref func(uintptr) | |||||
| 1019 | // If the reference count reaches zero, frees the key file and all its allocated | 950 | // If the reference count reaches zero, frees the key file and all its allocated | ||
| 1020 | // memory. | 951 | // memory. | ||
| 1021 | func (x *KeyFile) Unref() { | 952 | func (x *KeyFile) Unref() { | ||
| 1022 | - | core.LazyRegister(&xKeyFileUnref, "GLIB", "g_key_file_unref", false) | |||
| 1023 | - | ||||
| 1024 | xKeyFileUnref(x.GoPointer()) | 953 | xKeyFileUnref(x.GoPointer()) | ||
| 1025 | } | 954 | } | ||
| 1026 | 955 | ||||
| @@ -1171,4 +1100,65 @@ const ( | |||||
| 1171 | func init() { | 1100 | func init() { | ||
| 1172 | core.SetPackageName("GLIB", "glib-2.0") | 1101 | core.SetPackageName("GLIB", "glib-2.0") | ||
| 1173 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | 1102 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | ||
| 1103 | + | var libs []uintptr | |||
| 1104 | + | for _, libPath := range core.GetPaths("GLIB") { | |||
| 1105 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 1106 | + | if err != nil { | |||
| 1107 | + | panic(err) | |||
| 1108 | + | } | |||
| 1109 | + | libs = append(libs, lib) | |||
| 1110 | + | } | |||
| 1111 | + | ||||
| 1112 | + | core.PuregoSafeRegister(&xKeyFileGLibType, libs, "g_key_file_get_type") | |||
| 1113 | + | ||||
| 1114 | + | core.PuregoSafeRegister(&xNewKeyFile, libs, "g_key_file_new") | |||
| 1115 | + | ||||
| 1116 | + | core.PuregoSafeRegister(&xKeyFileFree, libs, "g_key_file_free") | |||
| 1117 | + | core.PuregoSafeRegister(&xKeyFileGetBoolean, libs, "g_key_file_get_boolean") | |||
| 1118 | + | core.PuregoSafeRegister(&xKeyFileGetBooleanList, libs, "g_key_file_get_boolean_list") | |||
| 1119 | + | core.PuregoSafeRegister(&xKeyFileGetComment, libs, "g_key_file_get_comment") | |||
| 1120 | + | core.PuregoSafeRegister(&xKeyFileGetDouble, libs, "g_key_file_get_double") | |||
| 1121 | + | core.PuregoSafeRegister(&xKeyFileGetDoubleList, libs, "g_key_file_get_double_list") | |||
| 1122 | + | core.PuregoSafeRegister(&xKeyFileGetGroups, libs, "g_key_file_get_groups") | |||
| 1123 | + | core.PuregoSafeRegister(&xKeyFileGetInt64, libs, "g_key_file_get_int64") | |||
| 1124 | + | core.PuregoSafeRegister(&xKeyFileGetInteger, libs, "g_key_file_get_integer") | |||
| 1125 | + | core.PuregoSafeRegister(&xKeyFileGetIntegerList, libs, "g_key_file_get_integer_list") | |||
| 1126 | + | core.PuregoSafeRegister(&xKeyFileGetKeys, libs, "g_key_file_get_keys") | |||
| 1127 | + | core.PuregoSafeRegister(&xKeyFileGetLocaleForKey, libs, "g_key_file_get_locale_for_key") | |||
| 1128 | + | core.PuregoSafeRegister(&xKeyFileGetLocaleString, libs, "g_key_file_get_locale_string") | |||
| 1129 | + | core.PuregoSafeRegister(&xKeyFileGetLocaleStringList, libs, "g_key_file_get_locale_string_list") | |||
| 1130 | + | core.PuregoSafeRegister(&xKeyFileGetStartGroup, libs, "g_key_file_get_start_group") | |||
| 1131 | + | core.PuregoSafeRegister(&xKeyFileGetString, libs, "g_key_file_get_string") | |||
| 1132 | + | core.PuregoSafeRegister(&xKeyFileGetStringList, libs, "g_key_file_get_string_list") | |||
| 1133 | + | core.PuregoSafeRegister(&xKeyFileGetUint64, libs, "g_key_file_get_uint64") | |||
| 1134 | + | core.PuregoSafeRegister(&xKeyFileGetValue, libs, "g_key_file_get_value") | |||
| 1135 | + | core.PuregoSafeRegister(&xKeyFileHasGroup, libs, "g_key_file_has_group") | |||
| 1136 | + | core.PuregoSafeRegister(&xKeyFileHasKey, libs, "g_key_file_has_key") | |||
| 1137 | + | core.PuregoSafeRegister(&xKeyFileLoadFromBytes, libs, "g_key_file_load_from_bytes") | |||
| 1138 | + | core.PuregoSafeRegister(&xKeyFileLoadFromData, libs, "g_key_file_load_from_data") | |||
| 1139 | + | core.PuregoSafeRegister(&xKeyFileLoadFromDataDirs, libs, "g_key_file_load_from_data_dirs") | |||
| 1140 | + | core.PuregoSafeRegister(&xKeyFileLoadFromDirs, libs, "g_key_file_load_from_dirs") | |||
| 1141 | + | core.PuregoSafeRegister(&xKeyFileLoadFromFile, libs, "g_key_file_load_from_file") | |||
| 1142 | + | core.PuregoSafeRegister(&xKeyFileRef, libs, "g_key_file_ref") | |||
| 1143 | + | core.PuregoSafeRegister(&xKeyFileRemoveComment, libs, "g_key_file_remove_comment") | |||
| 1144 | + | core.PuregoSafeRegister(&xKeyFileRemoveGroup, libs, "g_key_file_remove_group") | |||
| 1145 | + | core.PuregoSafeRegister(&xKeyFileRemoveKey, libs, "g_key_file_remove_key") | |||
| 1146 | + | core.PuregoSafeRegister(&xKeyFileSaveToFile, libs, "g_key_file_save_to_file") | |||
| 1147 | + | core.PuregoSafeRegister(&xKeyFileSetBoolean, libs, "g_key_file_set_boolean") | |||
| 1148 | + | core.PuregoSafeRegister(&xKeyFileSetBooleanList, libs, "g_key_file_set_boolean_list") | |||
| 1149 | + | core.PuregoSafeRegister(&xKeyFileSetComment, libs, "g_key_file_set_comment") | |||
| 1150 | + | core.PuregoSafeRegister(&xKeyFileSetDouble, libs, "g_key_file_set_double") | |||
| 1151 | + | core.PuregoSafeRegister(&xKeyFileSetDoubleList, libs, "g_key_file_set_double_list") | |||
| 1152 | + | core.PuregoSafeRegister(&xKeyFileSetInt64, libs, "g_key_file_set_int64") | |||
| 1153 | + | core.PuregoSafeRegister(&xKeyFileSetInteger, libs, "g_key_file_set_integer") | |||
| 1154 | + | core.PuregoSafeRegister(&xKeyFileSetIntegerList, libs, "g_key_file_set_integer_list") | |||
| 1155 | + | core.PuregoSafeRegister(&xKeyFileSetListSeparator, libs, "g_key_file_set_list_separator") | |||
| 1156 | + | core.PuregoSafeRegister(&xKeyFileSetLocaleString, libs, "g_key_file_set_locale_string") | |||
| 1157 | + | core.PuregoSafeRegister(&xKeyFileSetLocaleStringList, libs, "g_key_file_set_locale_string_list") | |||
| 1158 | + | core.PuregoSafeRegister(&xKeyFileSetString, libs, "g_key_file_set_string") | |||
| 1159 | + | core.PuregoSafeRegister(&xKeyFileSetStringList, libs, "g_key_file_set_string_list") | |||
| 1160 | + | core.PuregoSafeRegister(&xKeyFileSetUint64, libs, "g_key_file_set_uint64") | |||
| 1161 | + | core.PuregoSafeRegister(&xKeyFileSetValue, libs, "g_key_file_set_value") | |||
| 1162 | + | core.PuregoSafeRegister(&xKeyFileToData, libs, "g_key_file_to_data") | |||
| 1163 | + | core.PuregoSafeRegister(&xKeyFileUnref, libs, "g_key_file_unref") | |||
| 1174 | } | 1164 | } | ||