Revert "chore(deps): pin puregotk nil-signal fix"
This reverts commit a161e348e2093172038390b0906448f0ae979a0d.
- commit
- 40378d5e4fd2372d054e49168ab2a6f67aedd0fd
- author
- brice · · 2026-07-14 17:59 UTC
- parent
- 8d647bb
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
905 files · +25263 -27842
M go.mod +1 -1
| @@ -11,7 +11,7 @@ require ( | |||
| 11 | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | |
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | |
| 14 | + | github.com/bnema/puregotk v0.7.0 | |
| 15 | 15 | github.com/charmbracelet/bubbles v1.0.0 | |
| 16 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 17 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -11,7 +11,7 @@ require ( | |||||
| 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | ||
| 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | ||
| 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | ||
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | 14 | + | github.com/bnema/puregotk v0.7.0 |
| 15 | github.com/charmbracelet/bubbles v1.0.0 | 15 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 16 | github.com/charmbracelet/bubbletea v1.3.10 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 17 | github.com/charmbracelet/lipgloss v1.1.0 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | ||
M go.sum +0 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +4 -197 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +0 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +64 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +62 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +29 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +47 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +27 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +25 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +26 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +38 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +37 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +37 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +33 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +38 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +48 -61 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +24 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +17 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +56 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +15 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +44 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +49 -60 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +38 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +33 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +29 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +27 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +39 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +34 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +30 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +21 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +44 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +24 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +28 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +30 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +32 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +87 -123 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +28 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +36 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +51 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +35 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +62 -78 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +22 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +46 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +46 -57 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/cairo/main.go +79 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +25 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +32 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +31 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +28 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +22 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +43 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +41 -53 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +28 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +24 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +1 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +118 -120 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +20 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +36 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +35 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +22 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +35 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmonitor.go +27 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpaintable.go +33 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +26 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +21 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +20 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +40 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +66 -157 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +25 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +16 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +72 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +32 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-core.go +0 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-io.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-loader.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-transform.go +1 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf.go +79 -102 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/main.go +17 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gaction.go +31 -59 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactiongroup.go +39 -96 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactionmap.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gappinfo.go +116 -244 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplication.go +55 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplicationcommandline.go +27 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncinitable.go +22 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncresult.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedinputstream.go +29 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedoutputstream.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbytesicon.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcancellable.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcharsetconverter.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcontenttype.go +26 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverter.go +20 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverterinputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverteroutputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcredentials.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatagrambased.go +30 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatainputstream.go +35 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdataoutputstream.go +23 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusactiongroup.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusaddress.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusauthobserver.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusconnection.go +66 -77 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbuserror.go +18 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterface.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterfaceskeleton.go +24 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusintrospection.go +56 -54 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmenumodel.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmessage.go +64 -88 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmethodinvocation.go +30 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnameowning.go +15 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnamewatching.go +15 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobject.go +17 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanager.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerclient.go +23 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerserver.go +20 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectproxy.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectskeleton.go +18 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusproxy.go +38 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusserver.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusutils.go +22 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontroller.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontrollerdbus.go +14 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdrive.go +82 -214 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsclientconnection.go +24 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsconnection.go +80 -207 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsserverconnection.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblem.go +17 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblemedicon.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfile.go +450 -1148 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileattribute.go +19 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileenumerator.go +35 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileicon.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinfo.go +84 -138 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinputstream.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileiostream.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilemonitor.go +15 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilenamecompleter.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileoutputstream.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilterinputstream.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilteroutputstream.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gicon.go +25 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddress.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddressmask.go +21 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetsocketaddress.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginitable.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginputstream.go +48 -52 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioenums.go +1 -90 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioerror.go +13 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giomodule.go +29 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioscheduler.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giostream.go +29 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giotypes.go +60 -70 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giptosmessage.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gipv6tclassmessage.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/glistmodel.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gliststore.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gloadableicon.go +23 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryinputstream.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemorymonitor.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryoutputstream.go +19 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenu.go +50 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenumodel.go +33 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmount.go +86 -215 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmountoperation.go +32 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativesocketaddress.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativevolumemonitor.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkaddress.go +21 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworking.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkmonitor.go +31 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkservice.go +19 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnotification.go +26 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/goutputstream.go +72 -86 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpermission.go +33 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableinputstream.go +22 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableoutputstream.go +27 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableutils.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpowerprofilemonitor.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpropertyaction.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxy.go +27 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddress.go +21 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddressenumerator.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyresolver.go +27 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gremoteactiongroup.go +15 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresolver.go +67 -75 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresource.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gseekable.go +27 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettings.go +67 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsbackend.go +24 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsschema.go +43 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleaction.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleactiongroup.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleasyncresult.go +40 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleiostream.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimplepermission.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleproxyresolver.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocket.go +72 -87 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddress.go +19 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddressenumerator.go +20 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketclient.go +44 -54 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnectable.go +17 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnection.go +21 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketcontrolmessage.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketlistener.go +25 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketservice.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsrvtarget.go +11 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocess.go +39 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocesslauncher.go +31 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtask.go +52 -70 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpconnection.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpwrapperconnection.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtestdbus.go +22 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthemedicon.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedresolver.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedsocketservice.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsbackend.go +33 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlscertificate.go +29 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsclientconnection.go +29 -55 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsconnection.go +46 -56 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsdatabase.go +48 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsfiledatabase.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsinteraction.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlspassword.go +22 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsserverconnection.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixconnection.go +20 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixcredentialsmessage.go +17 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixfdlist.go +19 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixsocketaddress.go +22 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvfs.go +24 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolume.go +58 -143 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolumemonitor.go +19 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibcompressor.go +18 -9 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibdecompressor.go +15 -3 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/main.go +11 -2 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gallocator.go +28 -32 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/garray.go +59 -82 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gasyncqueue.go +39 -56 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gatomic.go +34 -43 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbacktrace.go +15 -5 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbase64.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbitlock.go +24 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbookmarkfile.go +61 -69 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcache.go +15 -10 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcharset.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gchecksum.go +25 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcompletion.go +17 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gconvert.go +28 -25 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdataset.go +28 -36 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdate.go +65 -103 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdatetime.go +66 -107 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdir.go +19 -12 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/genviron.go +21 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gerror.go +29 -30 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gfileutils.go +38 -45 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ggettext.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghash.go +53 -81 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghmac.go +24 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghook.go +26 -28 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghostutils.go +18 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/giochannel.go +67 -83 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gkeyfile.go +62 -72 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/glib-types.go +12 -4 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/glist.go +11 -2 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmain.go +117 -181 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmappedfile.go +21 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmarkup.go +43 -51 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmem.go +31 -44 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmessages.go +45 -70 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gnode.go +35 -50 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/goption.go +43 -57
| @@ -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 | ) | |
| @@ -44,8 +45,6 @@ var xOptionContextAddGroup func(uintptr, *OptionGroup) | |||
| 44 | 45 | // will recognize the options in the group. Note that this will take | |
| 45 | 46 | // ownership of the @group and thus the @group should not be freed. | |
| 46 | 47 | func (x *OptionContext) AddGroup(GroupVar *OptionGroup) { | |
| 47 | - | core.LazyRegister(&xOptionContextAddGroup, "GLIB", "g_option_context_add_group", false) | |
| 48 | - | ||
| 49 | 48 | xOptionContextAddGroup(x.GoPointer(), GroupVar) | |
| 50 | 49 | } | |
| 51 | 50 | ||
| @@ -54,8 +53,6 @@ var xOptionContextAddMainEntries func(uintptr, []OptionEntry, uintptr) | |||
| 54 | 53 | // A convenience function which creates a main group if it doesn't | |
| 55 | 54 | // exist, adds the @entries to it and sets the translation domain. | |
| 56 | 55 | func (x *OptionContext) AddMainEntries(EntriesVar []OptionEntry, TranslationDomainVar *string) { | |
| 57 | - | core.LazyRegister(&xOptionContextAddMainEntries, "GLIB", "g_option_context_add_main_entries", false) | |
| 58 | - | ||
| 59 | 56 | TranslationDomainVarPtr := core.GStrdupNullable(TranslationDomainVar) | |
| 60 | 57 | defer core.GFreeNullable(TranslationDomainVarPtr) | |
| 61 | 58 | ||
| @@ -70,8 +67,6 @@ var xOptionContextFree func(uintptr) | |||
| 70 | 67 | // Please note that parsed arguments need to be freed separately (see | |
| 71 | 68 | // #GOptionEntry). | |
| 72 | 69 | func (x *OptionContext) Free() { | |
| 73 | - | core.LazyRegister(&xOptionContextFree, "GLIB", "g_option_context_free", false) | |
| 74 | - | ||
| 75 | 70 | xOptionContextFree(x.GoPointer()) | |
| 76 | 71 | } | |
| 77 | 72 | ||
| @@ -79,8 +74,6 @@ var xOptionContextGetDescription func(uintptr) string | |||
| 79 | 74 | ||
| 80 | 75 | // Returns the description. See g_option_context_set_description(). | |
| 81 | 76 | func (x *OptionContext) GetDescription() string { | |
| 82 | - | core.LazyRegister(&xOptionContextGetDescription, "GLIB", "g_option_context_get_description", false) | |
| 83 | - | ||
| 84 | 77 | cret := xOptionContextGetDescription(x.GoPointer()) | |
| 85 | 78 | return cret | |
| 86 | 79 | } | |
| @@ -95,8 +88,6 @@ var xOptionContextGetHelp func(uintptr, bool, *OptionGroup) string | |||
| 95 | 88 | // To obtain the help text for an option group, call | |
| 96 | 89 | // `g_option_context_get_help (context, FALSE, group)`. | |
| 97 | 90 | func (x *OptionContext) GetHelp(MainHelpVar bool, GroupVar *OptionGroup) string { | |
| 98 | - | core.LazyRegister(&xOptionContextGetHelp, "GLIB", "g_option_context_get_help", false) | |
| 99 | - | ||
| 100 | 91 | cret := xOptionContextGetHelp(x.GoPointer(), MainHelpVar, GroupVar) | |
| 101 | 92 | return cret | |
| 102 | 93 | } | |
| @@ -106,8 +97,6 @@ var xOptionContextGetHelpEnabled func(uintptr) bool | |||
| 106 | 97 | // Returns whether automatic `--help` generation | |
| 107 | 98 | // is turned on for @context. See g_option_context_set_help_enabled(). | |
| 108 | 99 | func (x *OptionContext) GetHelpEnabled() bool { | |
| 109 | - | core.LazyRegister(&xOptionContextGetHelpEnabled, "GLIB", "g_option_context_get_help_enabled", false) | |
| 110 | - | ||
| 111 | 100 | cret := xOptionContextGetHelpEnabled(x.GoPointer()) | |
| 112 | 101 | return cret | |
| 113 | 102 | } | |
| @@ -117,8 +106,6 @@ var xOptionContextGetIgnoreUnknownOptions func(uintptr) bool | |||
| 117 | 106 | // Returns whether unknown options are ignored or not. See | |
| 118 | 107 | // g_option_context_set_ignore_unknown_options(). | |
| 119 | 108 | func (x *OptionContext) GetIgnoreUnknownOptions() bool { | |
| 120 | - | core.LazyRegister(&xOptionContextGetIgnoreUnknownOptions, "GLIB", "g_option_context_get_ignore_unknown_options", false) | |
| 121 | - | ||
| 122 | 109 | cret := xOptionContextGetIgnoreUnknownOptions(x.GoPointer()) | |
| 123 | 110 | return cret | |
| 124 | 111 | } | |
| @@ -127,8 +114,6 @@ var xOptionContextGetMainGroup func(uintptr) uintptr | |||
| 127 | 114 | ||
| 128 | 115 | // Returns a pointer to the main group of @context. | |
| 129 | 116 | func (x *OptionContext) GetMainGroup() *OptionGroup { | |
| 130 | - | core.LazyRegister(&xOptionContextGetMainGroup, "GLIB", "g_option_context_get_main_group", false) | |
| 131 | - | ||
| 132 | 117 | cret := xOptionContextGetMainGroup(x.GoPointer()) | |
| 133 | 118 | if cret == 0 { | |
| 134 | 119 | return nil | |
| @@ -142,8 +127,6 @@ var xOptionContextGetStrictPosix func(uintptr) bool | |||
| 142 | 127 | // | |
| 143 | 128 | // See g_option_context_set_strict_posix() for more information. | |
| 144 | 129 | func (x *OptionContext) GetStrictPosix() bool { | |
| 145 | - | core.LazyRegister(&xOptionContextGetStrictPosix, "GLIB", "g_option_context_get_strict_posix", false) | |
| 146 | - | ||
| 147 | 130 | cret := xOptionContextGetStrictPosix(x.GoPointer()) | |
| 148 | 131 | return cret | |
| 149 | 132 | } | |
| @@ -152,8 +135,6 @@ var xOptionContextGetSummary func(uintptr) string | |||
| 152 | 135 | ||
| 153 | 136 | // Returns the summary. See g_option_context_set_summary(). | |
| 154 | 137 | func (x *OptionContext) GetSummary() string { | |
| 155 | - | core.LazyRegister(&xOptionContextGetSummary, "GLIB", "g_option_context_get_summary", false) | |
| 156 | - | ||
| 157 | 138 | cret := xOptionContextGetSummary(x.GoPointer()) | |
| 158 | 139 | return cret | |
| 159 | 140 | } | |
| @@ -182,7 +163,6 @@ var xOptionContextParse func(uintptr, *int, *[]string, **Error) bool | |||
| 182 | 163 | // [current locale](running.html#locale) for automatic | |
| 183 | 164 | // character set conversion of string and filename arguments. | |
| 184 | 165 | func (x *OptionContext) Parse(ArgcVar *int, ArgvVar *[]string) (bool, error) { | |
| 185 | - | core.LazyRegister(&xOptionContextParse, "GLIB", "g_option_context_parse", false) | |
| 186 | 166 | var cerr *Error | |
| 187 | 167 | ||
| 188 | 168 | cret := xOptionContextParse(x.GoPointer(), ArgcVar, ArgvVar, &cerr) | |
| @@ -211,7 +191,6 @@ var xOptionContextParseStrv func(uintptr, *[]string, **Error) bool | |||
| 211 | 191 | // This function is useful if you are trying to use #GOptionContext with | |
| 212 | 192 | // #GApplication. | |
| 213 | 193 | func (x *OptionContext) ParseStrv(ArgumentsVar *[]string) (bool, error) { | |
| 214 | - | core.LazyRegister(&xOptionContextParseStrv, "GLIB", "g_option_context_parse_strv", false) | |
| 215 | 194 | var cerr *Error | |
| 216 | 195 | ||
| 217 | 196 | cret := xOptionContextParseStrv(x.GoPointer(), ArgumentsVar, &cerr) | |
| @@ -229,8 +208,6 @@ var xOptionContextSetDescription func(uintptr, uintptr) | |||
| 229 | 208 | // Note that the summary is translated (see | |
| 230 | 209 | // g_option_context_set_translate_func()). | |
| 231 | 210 | func (x *OptionContext) SetDescription(DescriptionVar *string) { | |
| 232 | - | core.LazyRegister(&xOptionContextSetDescription, "GLIB", "g_option_context_set_description", false) | |
| 233 | - | ||
| 234 | 211 | DescriptionVarPtr := core.GStrdupNullable(DescriptionVar) | |
| 235 | 212 | defer core.GFreeNullable(DescriptionVarPtr) | |
| 236 | 213 | ||
| @@ -244,8 +221,6 @@ var xOptionContextSetHelpEnabled func(uintptr, bool) | |||
| 244 | 221 | // `-?`, `--help-all` and `--help-groupname` and creates suitable | |
| 245 | 222 | // output to stdout. | |
| 246 | 223 | func (x *OptionContext) SetHelpEnabled(HelpEnabledVar bool) { | |
| 247 | - | core.LazyRegister(&xOptionContextSetHelpEnabled, "GLIB", "g_option_context_set_help_enabled", false) | |
| 248 | - | ||
| 249 | 224 | xOptionContextSetHelpEnabled(x.GoPointer(), HelpEnabledVar) | |
| 250 | 225 | } | |
| 251 | 226 | ||
| @@ -259,8 +234,6 @@ var xOptionContextSetIgnoreUnknownOptions func(uintptr, bool) | |||
| 259 | 234 | // which don't start with a dash). But note that GOption cannot reliably | |
| 260 | 235 | // determine whether a non-option belongs to a preceding unknown option. | |
| 261 | 236 | func (x *OptionContext) SetIgnoreUnknownOptions(IgnoreUnknownVar bool) { | |
| 262 | - | core.LazyRegister(&xOptionContextSetIgnoreUnknownOptions, "GLIB", "g_option_context_set_ignore_unknown_options", false) | |
| 263 | - | ||
| 264 | 237 | xOptionContextSetIgnoreUnknownOptions(x.GoPointer(), IgnoreUnknownVar) | |
| 265 | 238 | } | |
| 266 | 239 | ||
| @@ -271,8 +244,6 @@ var xOptionContextSetMainGroup func(uintptr, *OptionGroup) | |||
| 271 | 244 | // the only difference is that the options in the main group are | |
| 272 | 245 | // treated differently when generating `--help` output. | |
| 273 | 246 | func (x *OptionContext) SetMainGroup(GroupVar *OptionGroup) { | |
| 274 | - | core.LazyRegister(&xOptionContextSetMainGroup, "GLIB", "g_option_context_set_main_group", false) | |
| 275 | - | ||
| 276 | 247 | xOptionContextSetMainGroup(x.GoPointer(), GroupVar) | |
| 277 | 248 | } | |
| 278 | 249 | ||
| @@ -303,8 +274,6 @@ var xOptionContextSetStrictPosix func(uintptr, bool) | |||
| 303 | 274 | // examining the verb name, which should be present in argv[1] after | |
| 304 | 275 | // parsing). | |
| 305 | 276 | func (x *OptionContext) SetStrictPosix(StrictPosixVar bool) { | |
| 306 | - | core.LazyRegister(&xOptionContextSetStrictPosix, "GLIB", "g_option_context_set_strict_posix", false) | |
| 307 | - | ||
| 308 | 277 | xOptionContextSetStrictPosix(x.GoPointer(), StrictPosixVar) | |
| 309 | 278 | } | |
| 310 | 279 | ||
| @@ -317,8 +286,6 @@ var xOptionContextSetSummary func(uintptr, uintptr) | |||
| 317 | 286 | // g_option_context_set_translate_func() and | |
| 318 | 287 | // g_option_context_set_translation_domain()). | |
| 319 | 288 | func (x *OptionContext) SetSummary(SummaryVar *string) { | |
| 320 | - | core.LazyRegister(&xOptionContextSetSummary, "GLIB", "g_option_context_set_summary", false) | |
| 321 | - | ||
| 322 | 289 | SummaryVarPtr := core.GStrdupNullable(SummaryVar) | |
| 323 | 290 | defer core.GFreeNullable(SummaryVarPtr) | |
| 324 | 291 | ||
| @@ -339,8 +306,6 @@ var xOptionContextSetTranslateFunc func(uintptr, uintptr, uintptr, uintptr) | |||
| 339 | 306 | // If you are using gettext(), you only need to set the translation | |
| 340 | 307 | // domain, see g_option_context_set_translation_domain(). | |
| 341 | 308 | func (x *OptionContext) SetTranslateFunc(FuncVar *TranslateFunc, DataVar uintptr, DestroyNotifyVar *DestroyNotify) { | |
| 342 | - | core.LazyRegister(&xOptionContextSetTranslateFunc, "GLIB", "g_option_context_set_translate_func", false) | |
| 343 | - | ||
| 344 | 309 | xOptionContextSetTranslateFunc(x.GoPointer(), NewCallbackNullable(FuncVar), DataVar, NewCallbackNullable(DestroyNotifyVar)) | |
| 345 | 310 | } | |
| 346 | 311 | ||
| @@ -349,8 +314,6 @@ var xOptionContextSetTranslationDomain func(uintptr, string) | |||
| 349 | 314 | // A convenience function to use gettext() for translating | |
| 350 | 315 | // user-visible strings. | |
| 351 | 316 | func (x *OptionContext) SetTranslationDomain(DomainVar string) { | |
| 352 | - | core.LazyRegister(&xOptionContextSetTranslationDomain, "GLIB", "g_option_context_set_translation_domain", false) | |
| 353 | - | ||
| 354 | 317 | xOptionContextSetTranslationDomain(x.GoPointer(), DomainVar) | |
| 355 | 318 | } | |
| 356 | 319 | ||
| @@ -421,7 +384,6 @@ type OptionGroup struct { | |||
| 421 | 384 | var xOptionGroupGLibType func() types.GType | |
| 422 | 385 | ||
| 423 | 386 | func OptionGroupGLibType() types.GType { | |
| 424 | - | core.LazyRegister(&xOptionGroupGLibType, "GLIB", "g_option_group_get_type", false) | |
| 425 | 387 | return xOptionGroupGLibType() | |
| 426 | 388 | } | |
| 427 | 389 | ||
| @@ -446,8 +408,6 @@ var xNewOptionGroup func(string, string, string, uintptr, uintptr) uintptr | |||
| 446 | 408 | // that it matches the style of built-in GLib group titles such as | |
| 447 | 409 | // ‘Application Options:’. | |
| 448 | 410 | func NewOptionGroup(NameVar string, DescriptionVar string, HelpDescriptionVar string, UserDataVar uintptr, DestroyVar *DestroyNotify) *OptionGroup { | |
| 449 | - | core.LazyRegister(&xNewOptionGroup, "GLIB", "g_option_group_new", false) | |
| 450 | - | ||
| 451 | 411 | cret := xNewOptionGroup(NameVar, DescriptionVar, HelpDescriptionVar, UserDataVar, NewCallbackNullable(DestroyVar)) | |
| 452 | 412 | if cret == 0 { | |
| 453 | 413 | return nil | |
| @@ -459,8 +419,6 @@ var xOptionGroupAddEntries func(uintptr, []OptionEntry) | |||
| 459 | 419 | ||
| 460 | 420 | // Adds the options specified in @entries to @group. | |
| 461 | 421 | func (x *OptionGroup) AddEntries(EntriesVar []OptionEntry) { | |
| 462 | - | core.LazyRegister(&xOptionGroupAddEntries, "GLIB", "g_option_group_add_entries", false) | |
| 463 | - | ||
| 464 | 422 | xOptionGroupAddEntries(x.GoPointer(), EntriesVar) | |
| 465 | 423 | } | |
| 466 | 424 | ||
| @@ -469,8 +427,6 @@ var xOptionGroupFree func(uintptr) | |||
| 469 | 427 | // Frees a #GOptionGroup. Note that you must not free groups | |
| 470 | 428 | // which have been added to a #GOptionContext. | |
| 471 | 429 | func (x *OptionGroup) Free() { | |
| 472 | - | core.LazyRegister(&xOptionGroupFree, "GLIB", "g_option_group_free", false) | |
| 473 | - | ||
| 474 | 430 | xOptionGroupFree(x.GoPointer()) | |
| 475 | 431 | } | |
| 476 | 432 | ||
| @@ -478,8 +434,6 @@ var xOptionGroupRef func(uintptr) uintptr | |||
| 478 | 434 | ||
| 479 | 435 | // Increments the reference count of @group by one. | |
| 480 | 436 | func (x *OptionGroup) Ref() *OptionGroup { | |
| 481 | - | core.LazyRegister(&xOptionGroupRef, "GLIB", "g_option_group_ref", false) | |
| 482 | - | ||
| 483 | 437 | cret := xOptionGroupRef(x.GoPointer()) | |
| 484 | 438 | if cret == 0 { | |
| 485 | 439 | return nil | |
| @@ -495,8 +449,6 @@ var xOptionGroupSetErrorHook func(uintptr, uintptr) | |||
| 495 | 449 | // Note that the user data to be passed to @error_func can be | |
| 496 | 450 | // specified when constructing the group with g_option_group_new(). | |
| 497 | 451 | func (x *OptionGroup) SetErrorHook(ErrorFuncVar *OptionErrorFunc) { | |
| 498 | - | core.LazyRegister(&xOptionGroupSetErrorHook, "GLIB", "g_option_group_set_error_hook", false) | |
| 499 | - | ||
| 500 | 452 | xOptionGroupSetErrorHook(x.GoPointer(), NewCallback(ErrorFuncVar)) | |
| 501 | 453 | } | |
| 502 | 454 | ||
| @@ -510,8 +462,6 @@ var xOptionGroupSetParseHooks func(uintptr, uintptr, uintptr) | |||
| 510 | 462 | // @post_parse_func can be specified when constructing the group | |
| 511 | 463 | // with g_option_group_new(). | |
| 512 | 464 | func (x *OptionGroup) SetParseHooks(PreParseFuncVar *OptionParseFunc, PostParseFuncVar *OptionParseFunc) { | |
| 513 | - | core.LazyRegister(&xOptionGroupSetParseHooks, "GLIB", "g_option_group_set_parse_hooks", false) | |
| 514 | - | ||
| 515 | 465 | xOptionGroupSetParseHooks(x.GoPointer(), NewCallbackNullable(PreParseFuncVar), NewCallbackNullable(PostParseFuncVar)) | |
| 516 | 466 | } | |
| 517 | 467 | ||
| @@ -524,8 +474,6 @@ var xOptionGroupSetTranslateFunc func(uintptr, uintptr, uintptr, uintptr) | |||
| 524 | 474 | // If you are using gettext(), you only need to set the translation | |
| 525 | 475 | // domain, see g_option_group_set_translation_domain(). | |
| 526 | 476 | func (x *OptionGroup) SetTranslateFunc(FuncVar *TranslateFunc, DataVar uintptr, DestroyNotifyVar *DestroyNotify) { | |
| 527 | - | core.LazyRegister(&xOptionGroupSetTranslateFunc, "GLIB", "g_option_group_set_translate_func", false) | |
| 528 | - | ||
| 529 | 477 | xOptionGroupSetTranslateFunc(x.GoPointer(), NewCallbackNullable(FuncVar), DataVar, NewCallbackNullable(DestroyNotifyVar)) | |
| 530 | 478 | } | |
| 531 | 479 | ||
| @@ -534,8 +482,6 @@ var xOptionGroupSetTranslationDomain func(uintptr, string) | |||
| 534 | 482 | // A convenience function to use gettext() for translating | |
| 535 | 483 | // user-visible strings. | |
| 536 | 484 | func (x *OptionGroup) SetTranslationDomain(DomainVar string) { | |
| 537 | - | core.LazyRegister(&xOptionGroupSetTranslationDomain, "GLIB", "g_option_group_set_translation_domain", false) | |
| 538 | - | ||
| 539 | 485 | xOptionGroupSetTranslationDomain(x.GoPointer(), DomainVar) | |
| 540 | 486 | } | |
| 541 | 487 | ||
| @@ -545,8 +491,6 @@ var xOptionGroupUnref func(uintptr) | |||
| 545 | 491 | // If the reference count drops to 0, the @group will be freed. | |
| 546 | 492 | // and all memory allocated by the @group is released. | |
| 547 | 493 | func (x *OptionGroup) Unref() { | |
| 548 | - | core.LazyRegister(&xOptionGroupUnref, "GLIB", "g_option_group_unref", false) | |
| 549 | - | ||
| 550 | 494 | xOptionGroupUnref(x.GoPointer()) | |
| 551 | 495 | } | |
| 552 | 496 | ||
| @@ -663,4 +607,46 @@ const ( | |||
| 663 | 607 | func init() { | |
| 664 | 608 | core.SetPackageName("GLIB", "glib-2.0") | |
| 665 | 609 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | |
| 610 | + | var libs []uintptr | |
| 611 | + | for _, libPath := range core.GetPaths("GLIB") { | |
| 612 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 613 | + | if err != nil { | |
| 614 | + | panic(err) | |
| 615 | + | } | |
| 616 | + | libs = append(libs, lib) | |
| 617 | + | } | |
| 618 | + | ||
| 619 | + | core.PuregoSafeRegister(&xOptionContextAddGroup, libs, "g_option_context_add_group") | |
| 620 | + | core.PuregoSafeRegister(&xOptionContextAddMainEntries, libs, "g_option_context_add_main_entries") | |
| 621 | + | core.PuregoSafeRegister(&xOptionContextFree, libs, "g_option_context_free") | |
| 622 | + | core.PuregoSafeRegister(&xOptionContextGetDescription, libs, "g_option_context_get_description") | |
| 623 | + | core.PuregoSafeRegister(&xOptionContextGetHelp, libs, "g_option_context_get_help") | |
| 624 | + | core.PuregoSafeRegister(&xOptionContextGetHelpEnabled, libs, "g_option_context_get_help_enabled") | |
| 625 | + | core.PuregoSafeRegister(&xOptionContextGetIgnoreUnknownOptions, libs, "g_option_context_get_ignore_unknown_options") | |
| 626 | + | core.PuregoSafeRegister(&xOptionContextGetMainGroup, libs, "g_option_context_get_main_group") | |
| 627 | + | core.PuregoSafeRegister(&xOptionContextGetStrictPosix, libs, "g_option_context_get_strict_posix") | |
| 628 | + | core.PuregoSafeRegister(&xOptionContextGetSummary, libs, "g_option_context_get_summary") | |
| 629 | + | core.PuregoSafeRegister(&xOptionContextParse, libs, "g_option_context_parse") | |
| 630 | + | core.PuregoSafeRegister(&xOptionContextParseStrv, libs, "g_option_context_parse_strv") | |
| 631 | + | core.PuregoSafeRegister(&xOptionContextSetDescription, libs, "g_option_context_set_description") | |
| 632 | + | core.PuregoSafeRegister(&xOptionContextSetHelpEnabled, libs, "g_option_context_set_help_enabled") | |
| 633 | + | core.PuregoSafeRegister(&xOptionContextSetIgnoreUnknownOptions, libs, "g_option_context_set_ignore_unknown_options") | |
| 634 | + | core.PuregoSafeRegister(&xOptionContextSetMainGroup, libs, "g_option_context_set_main_group") | |
| 635 | + | core.PuregoSafeRegister(&xOptionContextSetStrictPosix, libs, "g_option_context_set_strict_posix") | |
| 636 | + | core.PuregoSafeRegister(&xOptionContextSetSummary, libs, "g_option_context_set_summary") | |
| 637 | + | core.PuregoSafeRegister(&xOptionContextSetTranslateFunc, libs, "g_option_context_set_translate_func") | |
| 638 | + | core.PuregoSafeRegister(&xOptionContextSetTranslationDomain, libs, "g_option_context_set_translation_domain") | |
| 639 | + | ||
| 640 | + | core.PuregoSafeRegister(&xOptionGroupGLibType, libs, "g_option_group_get_type") | |
| 641 | + | ||
| 642 | + | core.PuregoSafeRegister(&xNewOptionGroup, libs, "g_option_group_new") | |
| 643 | + | ||
| 644 | + | core.PuregoSafeRegister(&xOptionGroupAddEntries, libs, "g_option_group_add_entries") | |
| 645 | + | core.PuregoSafeRegister(&xOptionGroupFree, libs, "g_option_group_free") | |
| 646 | + | core.PuregoSafeRegister(&xOptionGroupRef, libs, "g_option_group_ref") | |
| 647 | + | core.PuregoSafeRegister(&xOptionGroupSetErrorHook, libs, "g_option_group_set_error_hook") | |
| 648 | + | core.PuregoSafeRegister(&xOptionGroupSetParseHooks, libs, "g_option_group_set_parse_hooks") | |
| 649 | + | core.PuregoSafeRegister(&xOptionGroupSetTranslateFunc, libs, "g_option_group_set_translate_func") | |
| 650 | + | core.PuregoSafeRegister(&xOptionGroupSetTranslationDomain, libs, "g_option_group_set_translation_domain") | |
| 651 | + | core.PuregoSafeRegister(&xOptionGroupUnref, libs, "g_option_group_unref") | |
| 666 | 652 | } | |
| @@ -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 | ) | ||
| @@ -44,8 +45,6 @@ var xOptionContextAddGroup func(uintptr, *OptionGroup) | |||||
| 44 | // will recognize the options in the group. Note that this will take | 45 | // will recognize the options in the group. Note that this will take | ||
| 45 | // ownership of the @group and thus the @group should not be freed. | 46 | // ownership of the @group and thus the @group should not be freed. | ||
| 46 | func (x *OptionContext) AddGroup(GroupVar *OptionGroup) { | 47 | func (x *OptionContext) AddGroup(GroupVar *OptionGroup) { | ||
| 47 | - | core.LazyRegister(&xOptionContextAddGroup, "GLIB", "g_option_context_add_group", false) | |||
| 48 | - | ||||
| 49 | xOptionContextAddGroup(x.GoPointer(), GroupVar) | 48 | xOptionContextAddGroup(x.GoPointer(), GroupVar) | ||
| 50 | } | 49 | } | ||
| 51 | 50 | ||||
| @@ -54,8 +53,6 @@ var xOptionContextAddMainEntries func(uintptr, []OptionEntry, uintptr) | |||||
| 54 | // A convenience function which creates a main group if it doesn't | 53 | // A convenience function which creates a main group if it doesn't | ||
| 55 | // exist, adds the @entries to it and sets the translation domain. | 54 | // exist, adds the @entries to it and sets the translation domain. | ||
| 56 | func (x *OptionContext) AddMainEntries(EntriesVar []OptionEntry, TranslationDomainVar *string) { | 55 | func (x *OptionContext) AddMainEntries(EntriesVar []OptionEntry, TranslationDomainVar *string) { | ||
| 57 | - | core.LazyRegister(&xOptionContextAddMainEntries, "GLIB", "g_option_context_add_main_entries", false) | |||
| 58 | - | ||||
| 59 | TranslationDomainVarPtr := core.GStrdupNullable(TranslationDomainVar) | 56 | TranslationDomainVarPtr := core.GStrdupNullable(TranslationDomainVar) | ||
| 60 | defer core.GFreeNullable(TranslationDomainVarPtr) | 57 | defer core.GFreeNullable(TranslationDomainVarPtr) | ||
| 61 | 58 | ||||
| @@ -70,8 +67,6 @@ var xOptionContextFree func(uintptr) | |||||
| 70 | // Please note that parsed arguments need to be freed separately (see | 67 | // Please note that parsed arguments need to be freed separately (see | ||
| 71 | // #GOptionEntry). | 68 | // #GOptionEntry). | ||
| 72 | func (x *OptionContext) Free() { | 69 | func (x *OptionContext) Free() { | ||
| 73 | - | core.LazyRegister(&xOptionContextFree, "GLIB", "g_option_context_free", false) | |||
| 74 | - | ||||
| 75 | xOptionContextFree(x.GoPointer()) | 70 | xOptionContextFree(x.GoPointer()) | ||
| 76 | } | 71 | } | ||
| 77 | 72 | ||||
| @@ -79,8 +74,6 @@ var xOptionContextGetDescription func(uintptr) string | |||||
| 79 | 74 | ||||
| 80 | // Returns the description. See g_option_context_set_description(). | 75 | // Returns the description. See g_option_context_set_description(). | ||
| 81 | func (x *OptionContext) GetDescription() string { | 76 | func (x *OptionContext) GetDescription() string { | ||
| 82 | - | core.LazyRegister(&xOptionContextGetDescription, "GLIB", "g_option_context_get_description", false) | |||
| 83 | - | ||||
| 84 | cret := xOptionContextGetDescription(x.GoPointer()) | 77 | cret := xOptionContextGetDescription(x.GoPointer()) | ||
| 85 | return cret | 78 | return cret | ||
| 86 | } | 79 | } | ||
| @@ -95,8 +88,6 @@ var xOptionContextGetHelp func(uintptr, bool, *OptionGroup) string | |||||
| 95 | // To obtain the help text for an option group, call | 88 | // To obtain the help text for an option group, call | ||
| 96 | // `g_option_context_get_help (context, FALSE, group)`. | 89 | // `g_option_context_get_help (context, FALSE, group)`. | ||
| 97 | func (x *OptionContext) GetHelp(MainHelpVar bool, GroupVar *OptionGroup) string { | 90 | func (x *OptionContext) GetHelp(MainHelpVar bool, GroupVar *OptionGroup) string { | ||
| 98 | - | core.LazyRegister(&xOptionContextGetHelp, "GLIB", "g_option_context_get_help", false) | |||
| 99 | - | ||||
| 100 | cret := xOptionContextGetHelp(x.GoPointer(), MainHelpVar, GroupVar) | 91 | cret := xOptionContextGetHelp(x.GoPointer(), MainHelpVar, GroupVar) | ||
| 101 | return cret | 92 | return cret | ||
| 102 | } | 93 | } | ||
| @@ -106,8 +97,6 @@ var xOptionContextGetHelpEnabled func(uintptr) bool | |||||
| 106 | // Returns whether automatic `--help` generation | 97 | // Returns whether automatic `--help` generation | ||
| 107 | // is turned on for @context. See g_option_context_set_help_enabled(). | 98 | // is turned on for @context. See g_option_context_set_help_enabled(). | ||
| 108 | func (x *OptionContext) GetHelpEnabled() bool { | 99 | func (x *OptionContext) GetHelpEnabled() bool { | ||
| 109 | - | core.LazyRegister(&xOptionContextGetHelpEnabled, "GLIB", "g_option_context_get_help_enabled", false) | |||
| 110 | - | ||||
| 111 | cret := xOptionContextGetHelpEnabled(x.GoPointer()) | 100 | cret := xOptionContextGetHelpEnabled(x.GoPointer()) | ||
| 112 | return cret | 101 | return cret | ||
| 113 | } | 102 | } | ||
| @@ -117,8 +106,6 @@ var xOptionContextGetIgnoreUnknownOptions func(uintptr) bool | |||||
| 117 | // Returns whether unknown options are ignored or not. See | 106 | // Returns whether unknown options are ignored or not. See | ||
| 118 | // g_option_context_set_ignore_unknown_options(). | 107 | // g_option_context_set_ignore_unknown_options(). | ||
| 119 | func (x *OptionContext) GetIgnoreUnknownOptions() bool { | 108 | func (x *OptionContext) GetIgnoreUnknownOptions() bool { | ||
| 120 | - | core.LazyRegister(&xOptionContextGetIgnoreUnknownOptions, "GLIB", "g_option_context_get_ignore_unknown_options", false) | |||
| 121 | - | ||||
| 122 | cret := xOptionContextGetIgnoreUnknownOptions(x.GoPointer()) | 109 | cret := xOptionContextGetIgnoreUnknownOptions(x.GoPointer()) | ||
| 123 | return cret | 110 | return cret | ||
| 124 | } | 111 | } | ||
| @@ -127,8 +114,6 @@ var xOptionContextGetMainGroup func(uintptr) uintptr | |||||
| 127 | 114 | ||||
| 128 | // Returns a pointer to the main group of @context. | 115 | // Returns a pointer to the main group of @context. | ||
| 129 | func (x *OptionContext) GetMainGroup() *OptionGroup { | 116 | func (x *OptionContext) GetMainGroup() *OptionGroup { | ||
| 130 | - | core.LazyRegister(&xOptionContextGetMainGroup, "GLIB", "g_option_context_get_main_group", false) | |||
| 131 | - | ||||
| 132 | cret := xOptionContextGetMainGroup(x.GoPointer()) | 117 | cret := xOptionContextGetMainGroup(x.GoPointer()) | ||
| 133 | if cret == 0 { | 118 | if cret == 0 { | ||
| 134 | return nil | 119 | return nil | ||
| @@ -142,8 +127,6 @@ var xOptionContextGetStrictPosix func(uintptr) bool | |||||
| 142 | // | 127 | // | ||
| 143 | // See g_option_context_set_strict_posix() for more information. | 128 | // See g_option_context_set_strict_posix() for more information. | ||
| 144 | func (x *OptionContext) GetStrictPosix() bool { | 129 | func (x *OptionContext) GetStrictPosix() bool { | ||
| 145 | - | core.LazyRegister(&xOptionContextGetStrictPosix, "GLIB", "g_option_context_get_strict_posix", false) | |||
| 146 | - | ||||
| 147 | cret := xOptionContextGetStrictPosix(x.GoPointer()) | 130 | cret := xOptionContextGetStrictPosix(x.GoPointer()) | ||
| 148 | return cret | 131 | return cret | ||
| 149 | } | 132 | } | ||
| @@ -152,8 +135,6 @@ var xOptionContextGetSummary func(uintptr) string | |||||
| 152 | 135 | ||||
| 153 | // Returns the summary. See g_option_context_set_summary(). | 136 | // Returns the summary. See g_option_context_set_summary(). | ||
| 154 | func (x *OptionContext) GetSummary() string { | 137 | func (x *OptionContext) GetSummary() string { | ||
| 155 | - | core.LazyRegister(&xOptionContextGetSummary, "GLIB", "g_option_context_get_summary", false) | |||
| 156 | - | ||||
| 157 | cret := xOptionContextGetSummary(x.GoPointer()) | 138 | cret := xOptionContextGetSummary(x.GoPointer()) | ||
| 158 | return cret | 139 | return cret | ||
| 159 | } | 140 | } | ||
| @@ -182,7 +163,6 @@ var xOptionContextParse func(uintptr, *int, *[]string, **Error) bool | |||||
| 182 | // [current locale](running.html#locale) for automatic | 163 | // [current locale](running.html#locale) for automatic | ||
| 183 | // character set conversion of string and filename arguments. | 164 | // character set conversion of string and filename arguments. | ||
| 184 | func (x *OptionContext) Parse(ArgcVar *int, ArgvVar *[]string) (bool, error) { | 165 | func (x *OptionContext) Parse(ArgcVar *int, ArgvVar *[]string) (bool, error) { | ||
| 185 | - | core.LazyRegister(&xOptionContextParse, "GLIB", "g_option_context_parse", false) | |||
| 186 | var cerr *Error | 166 | var cerr *Error | ||
| 187 | 167 | ||||
| 188 | cret := xOptionContextParse(x.GoPointer(), ArgcVar, ArgvVar, &cerr) | 168 | cret := xOptionContextParse(x.GoPointer(), ArgcVar, ArgvVar, &cerr) | ||
| @@ -211,7 +191,6 @@ var xOptionContextParseStrv func(uintptr, *[]string, **Error) bool | |||||
| 211 | // This function is useful if you are trying to use #GOptionContext with | 191 | // This function is useful if you are trying to use #GOptionContext with | ||
| 212 | // #GApplication. | 192 | // #GApplication. | ||
| 213 | func (x *OptionContext) ParseStrv(ArgumentsVar *[]string) (bool, error) { | 193 | func (x *OptionContext) ParseStrv(ArgumentsVar *[]string) (bool, error) { | ||
| 214 | - | core.LazyRegister(&xOptionContextParseStrv, "GLIB", "g_option_context_parse_strv", false) | |||
| 215 | var cerr *Error | 194 | var cerr *Error | ||
| 216 | 195 | ||||
| 217 | cret := xOptionContextParseStrv(x.GoPointer(), ArgumentsVar, &cerr) | 196 | cret := xOptionContextParseStrv(x.GoPointer(), ArgumentsVar, &cerr) | ||
| @@ -229,8 +208,6 @@ var xOptionContextSetDescription func(uintptr, uintptr) | |||||
| 229 | // Note that the summary is translated (see | 208 | // Note that the summary is translated (see | ||
| 230 | // g_option_context_set_translate_func()). | 209 | // g_option_context_set_translate_func()). | ||
| 231 | func (x *OptionContext) SetDescription(DescriptionVar *string) { | 210 | func (x *OptionContext) SetDescription(DescriptionVar *string) { | ||
| 232 | - | core.LazyRegister(&xOptionContextSetDescription, "GLIB", "g_option_context_set_description", false) | |||
| 233 | - | ||||
| 234 | DescriptionVarPtr := core.GStrdupNullable(DescriptionVar) | 211 | DescriptionVarPtr := core.GStrdupNullable(DescriptionVar) | ||
| 235 | defer core.GFreeNullable(DescriptionVarPtr) | 212 | defer core.GFreeNullable(DescriptionVarPtr) | ||
| 236 | 213 | ||||
| @@ -244,8 +221,6 @@ var xOptionContextSetHelpEnabled func(uintptr, bool) | |||||
| 244 | // `-?`, `--help-all` and `--help-groupname` and creates suitable | 221 | // `-?`, `--help-all` and `--help-groupname` and creates suitable | ||
| 245 | // output to stdout. | 222 | // output to stdout. | ||
| 246 | func (x *OptionContext) SetHelpEnabled(HelpEnabledVar bool) { | 223 | func (x *OptionContext) SetHelpEnabled(HelpEnabledVar bool) { | ||
| 247 | - | core.LazyRegister(&xOptionContextSetHelpEnabled, "GLIB", "g_option_context_set_help_enabled", false) | |||
| 248 | - | ||||
| 249 | xOptionContextSetHelpEnabled(x.GoPointer(), HelpEnabledVar) | 224 | xOptionContextSetHelpEnabled(x.GoPointer(), HelpEnabledVar) | ||
| 250 | } | 225 | } | ||
| 251 | 226 | ||||
| @@ -259,8 +234,6 @@ var xOptionContextSetIgnoreUnknownOptions func(uintptr, bool) | |||||
| 259 | // which don't start with a dash). But note that GOption cannot reliably | 234 | // which don't start with a dash). But note that GOption cannot reliably | ||
| 260 | // determine whether a non-option belongs to a preceding unknown option. | 235 | // determine whether a non-option belongs to a preceding unknown option. | ||
| 261 | func (x *OptionContext) SetIgnoreUnknownOptions(IgnoreUnknownVar bool) { | 236 | func (x *OptionContext) SetIgnoreUnknownOptions(IgnoreUnknownVar bool) { | ||
| 262 | - | core.LazyRegister(&xOptionContextSetIgnoreUnknownOptions, "GLIB", "g_option_context_set_ignore_unknown_options", false) | |||
| 263 | - | ||||
| 264 | xOptionContextSetIgnoreUnknownOptions(x.GoPointer(), IgnoreUnknownVar) | 237 | xOptionContextSetIgnoreUnknownOptions(x.GoPointer(), IgnoreUnknownVar) | ||
| 265 | } | 238 | } | ||
| 266 | 239 | ||||
| @@ -271,8 +244,6 @@ var xOptionContextSetMainGroup func(uintptr, *OptionGroup) | |||||
| 271 | // the only difference is that the options in the main group are | 244 | // the only difference is that the options in the main group are | ||
| 272 | // treated differently when generating `--help` output. | 245 | // treated differently when generating `--help` output. | ||
| 273 | func (x *OptionContext) SetMainGroup(GroupVar *OptionGroup) { | 246 | func (x *OptionContext) SetMainGroup(GroupVar *OptionGroup) { | ||
| 274 | - | core.LazyRegister(&xOptionContextSetMainGroup, "GLIB", "g_option_context_set_main_group", false) | |||
| 275 | - | ||||
| 276 | xOptionContextSetMainGroup(x.GoPointer(), GroupVar) | 247 | xOptionContextSetMainGroup(x.GoPointer(), GroupVar) | ||
| 277 | } | 248 | } | ||
| 278 | 249 | ||||
| @@ -303,8 +274,6 @@ var xOptionContextSetStrictPosix func(uintptr, bool) | |||||
| 303 | // examining the verb name, which should be present in argv[1] after | 274 | // examining the verb name, which should be present in argv[1] after | ||
| 304 | // parsing). | 275 | // parsing). | ||
| 305 | func (x *OptionContext) SetStrictPosix(StrictPosixVar bool) { | 276 | func (x *OptionContext) SetStrictPosix(StrictPosixVar bool) { | ||
| 306 | - | core.LazyRegister(&xOptionContextSetStrictPosix, "GLIB", "g_option_context_set_strict_posix", false) | |||
| 307 | - | ||||
| 308 | xOptionContextSetStrictPosix(x.GoPointer(), StrictPosixVar) | 277 | xOptionContextSetStrictPosix(x.GoPointer(), StrictPosixVar) | ||
| 309 | } | 278 | } | ||
| 310 | 279 | ||||
| @@ -317,8 +286,6 @@ var xOptionContextSetSummary func(uintptr, uintptr) | |||||
| 317 | // g_option_context_set_translate_func() and | 286 | // g_option_context_set_translate_func() and | ||
| 318 | // g_option_context_set_translation_domain()). | 287 | // g_option_context_set_translation_domain()). | ||
| 319 | func (x *OptionContext) SetSummary(SummaryVar *string) { | 288 | func (x *OptionContext) SetSummary(SummaryVar *string) { | ||
| 320 | - | core.LazyRegister(&xOptionContextSetSummary, "GLIB", "g_option_context_set_summary", false) | |||
| 321 | - | ||||
| 322 | SummaryVarPtr := core.GStrdupNullable(SummaryVar) | 289 | SummaryVarPtr := core.GStrdupNullable(SummaryVar) | ||
| 323 | defer core.GFreeNullable(SummaryVarPtr) | 290 | defer core.GFreeNullable(SummaryVarPtr) | ||
| 324 | 291 | ||||
| @@ -339,8 +306,6 @@ var xOptionContextSetTranslateFunc func(uintptr, uintptr, uintptr, uintptr) | |||||
| 339 | // If you are using gettext(), you only need to set the translation | 306 | // If you are using gettext(), you only need to set the translation | ||
| 340 | // domain, see g_option_context_set_translation_domain(). | 307 | // domain, see g_option_context_set_translation_domain(). | ||
| 341 | func (x *OptionContext) SetTranslateFunc(FuncVar *TranslateFunc, DataVar uintptr, DestroyNotifyVar *DestroyNotify) { | 308 | func (x *OptionContext) SetTranslateFunc(FuncVar *TranslateFunc, DataVar uintptr, DestroyNotifyVar *DestroyNotify) { | ||
| 342 | - | core.LazyRegister(&xOptionContextSetTranslateFunc, "GLIB", "g_option_context_set_translate_func", false) | |||
| 343 | - | ||||
| 344 | xOptionContextSetTranslateFunc(x.GoPointer(), NewCallbackNullable(FuncVar), DataVar, NewCallbackNullable(DestroyNotifyVar)) | 309 | xOptionContextSetTranslateFunc(x.GoPointer(), NewCallbackNullable(FuncVar), DataVar, NewCallbackNullable(DestroyNotifyVar)) | ||
| 345 | } | 310 | } | ||
| 346 | 311 | ||||
| @@ -349,8 +314,6 @@ var xOptionContextSetTranslationDomain func(uintptr, string) | |||||
| 349 | // A convenience function to use gettext() for translating | 314 | // A convenience function to use gettext() for translating | ||
| 350 | // user-visible strings. | 315 | // user-visible strings. | ||
| 351 | func (x *OptionContext) SetTranslationDomain(DomainVar string) { | 316 | func (x *OptionContext) SetTranslationDomain(DomainVar string) { | ||
| 352 | - | core.LazyRegister(&xOptionContextSetTranslationDomain, "GLIB", "g_option_context_set_translation_domain", false) | |||
| 353 | - | ||||
| 354 | xOptionContextSetTranslationDomain(x.GoPointer(), DomainVar) | 317 | xOptionContextSetTranslationDomain(x.GoPointer(), DomainVar) | ||
| 355 | } | 318 | } | ||
| 356 | 319 | ||||
| @@ -421,7 +384,6 @@ type OptionGroup struct { | |||||
| 421 | var xOptionGroupGLibType func() types.GType | 384 | var xOptionGroupGLibType func() types.GType | ||
| 422 | 385 | ||||
| 423 | func OptionGroupGLibType() types.GType { | 386 | func OptionGroupGLibType() types.GType { | ||
| 424 | - | core.LazyRegister(&xOptionGroupGLibType, "GLIB", "g_option_group_get_type", false) | |||
| 425 | return xOptionGroupGLibType() | 387 | return xOptionGroupGLibType() | ||
| 426 | } | 388 | } | ||
| 427 | 389 | ||||
| @@ -446,8 +408,6 @@ var xNewOptionGroup func(string, string, string, uintptr, uintptr) uintptr | |||||
| 446 | // that it matches the style of built-in GLib group titles such as | 408 | // that it matches the style of built-in GLib group titles such as | ||
| 447 | // ‘Application Options:’. | 409 | // ‘Application Options:’. | ||
| 448 | func NewOptionGroup(NameVar string, DescriptionVar string, HelpDescriptionVar string, UserDataVar uintptr, DestroyVar *DestroyNotify) *OptionGroup { | 410 | func NewOptionGroup(NameVar string, DescriptionVar string, HelpDescriptionVar string, UserDataVar uintptr, DestroyVar *DestroyNotify) *OptionGroup { | ||
| 449 | - | core.LazyRegister(&xNewOptionGroup, "GLIB", "g_option_group_new", false) | |||
| 450 | - | ||||
| 451 | cret := xNewOptionGroup(NameVar, DescriptionVar, HelpDescriptionVar, UserDataVar, NewCallbackNullable(DestroyVar)) | 411 | cret := xNewOptionGroup(NameVar, DescriptionVar, HelpDescriptionVar, UserDataVar, NewCallbackNullable(DestroyVar)) | ||
| 452 | if cret == 0 { | 412 | if cret == 0 { | ||
| 453 | return nil | 413 | return nil | ||
| @@ -459,8 +419,6 @@ var xOptionGroupAddEntries func(uintptr, []OptionEntry) | |||||
| 459 | 419 | ||||
| 460 | // Adds the options specified in @entries to @group. | 420 | // Adds the options specified in @entries to @group. | ||
| 461 | func (x *OptionGroup) AddEntries(EntriesVar []OptionEntry) { | 421 | func (x *OptionGroup) AddEntries(EntriesVar []OptionEntry) { | ||
| 462 | - | core.LazyRegister(&xOptionGroupAddEntries, "GLIB", "g_option_group_add_entries", false) | |||
| 463 | - | ||||
| 464 | xOptionGroupAddEntries(x.GoPointer(), EntriesVar) | 422 | xOptionGroupAddEntries(x.GoPointer(), EntriesVar) | ||
| 465 | } | 423 | } | ||
| 466 | 424 | ||||
| @@ -469,8 +427,6 @@ var xOptionGroupFree func(uintptr) | |||||
| 469 | // Frees a #GOptionGroup. Note that you must not free groups | 427 | // Frees a #GOptionGroup. Note that you must not free groups | ||
| 470 | // which have been added to a #GOptionContext. | 428 | // which have been added to a #GOptionContext. | ||
| 471 | func (x *OptionGroup) Free() { | 429 | func (x *OptionGroup) Free() { | ||
| 472 | - | core.LazyRegister(&xOptionGroupFree, "GLIB", "g_option_group_free", false) | |||
| 473 | - | ||||
| 474 | xOptionGroupFree(x.GoPointer()) | 430 | xOptionGroupFree(x.GoPointer()) | ||
| 475 | } | 431 | } | ||
| 476 | 432 | ||||
| @@ -478,8 +434,6 @@ var xOptionGroupRef func(uintptr) uintptr | |||||
| 478 | 434 | ||||
| 479 | // Increments the reference count of @group by one. | 435 | // Increments the reference count of @group by one. | ||
| 480 | func (x *OptionGroup) Ref() *OptionGroup { | 436 | func (x *OptionGroup) Ref() *OptionGroup { | ||
| 481 | - | core.LazyRegister(&xOptionGroupRef, "GLIB", "g_option_group_ref", false) | |||
| 482 | - | ||||
| 483 | cret := xOptionGroupRef(x.GoPointer()) | 437 | cret := xOptionGroupRef(x.GoPointer()) | ||
| 484 | if cret == 0 { | 438 | if cret == 0 { | ||
| 485 | return nil | 439 | return nil | ||
| @@ -495,8 +449,6 @@ var xOptionGroupSetErrorHook func(uintptr, uintptr) | |||||
| 495 | // Note that the user data to be passed to @error_func can be | 449 | // Note that the user data to be passed to @error_func can be | ||
| 496 | // specified when constructing the group with g_option_group_new(). | 450 | // specified when constructing the group with g_option_group_new(). | ||
| 497 | func (x *OptionGroup) SetErrorHook(ErrorFuncVar *OptionErrorFunc) { | 451 | func (x *OptionGroup) SetErrorHook(ErrorFuncVar *OptionErrorFunc) { | ||
| 498 | - | core.LazyRegister(&xOptionGroupSetErrorHook, "GLIB", "g_option_group_set_error_hook", false) | |||
| 499 | - | ||||
| 500 | xOptionGroupSetErrorHook(x.GoPointer(), NewCallback(ErrorFuncVar)) | 452 | xOptionGroupSetErrorHook(x.GoPointer(), NewCallback(ErrorFuncVar)) | ||
| 501 | } | 453 | } | ||
| 502 | 454 | ||||
| @@ -510,8 +462,6 @@ var xOptionGroupSetParseHooks func(uintptr, uintptr, uintptr) | |||||
| 510 | // @post_parse_func can be specified when constructing the group | 462 | // @post_parse_func can be specified when constructing the group | ||
| 511 | // with g_option_group_new(). | 463 | // with g_option_group_new(). | ||
| 512 | func (x *OptionGroup) SetParseHooks(PreParseFuncVar *OptionParseFunc, PostParseFuncVar *OptionParseFunc) { | 464 | func (x *OptionGroup) SetParseHooks(PreParseFuncVar *OptionParseFunc, PostParseFuncVar *OptionParseFunc) { | ||
| 513 | - | core.LazyRegister(&xOptionGroupSetParseHooks, "GLIB", "g_option_group_set_parse_hooks", false) | |||
| 514 | - | ||||
| 515 | xOptionGroupSetParseHooks(x.GoPointer(), NewCallbackNullable(PreParseFuncVar), NewCallbackNullable(PostParseFuncVar)) | 465 | xOptionGroupSetParseHooks(x.GoPointer(), NewCallbackNullable(PreParseFuncVar), NewCallbackNullable(PostParseFuncVar)) | ||
| 516 | } | 466 | } | ||
| 517 | 467 | ||||
| @@ -524,8 +474,6 @@ var xOptionGroupSetTranslateFunc func(uintptr, uintptr, uintptr, uintptr) | |||||
| 524 | // If you are using gettext(), you only need to set the translation | 474 | // If you are using gettext(), you only need to set the translation | ||
| 525 | // domain, see g_option_group_set_translation_domain(). | 475 | // domain, see g_option_group_set_translation_domain(). | ||
| 526 | func (x *OptionGroup) SetTranslateFunc(FuncVar *TranslateFunc, DataVar uintptr, DestroyNotifyVar *DestroyNotify) { | 476 | func (x *OptionGroup) SetTranslateFunc(FuncVar *TranslateFunc, DataVar uintptr, DestroyNotifyVar *DestroyNotify) { | ||
| 527 | - | core.LazyRegister(&xOptionGroupSetTranslateFunc, "GLIB", "g_option_group_set_translate_func", false) | |||
| 528 | - | ||||
| 529 | xOptionGroupSetTranslateFunc(x.GoPointer(), NewCallbackNullable(FuncVar), DataVar, NewCallbackNullable(DestroyNotifyVar)) | 477 | xOptionGroupSetTranslateFunc(x.GoPointer(), NewCallbackNullable(FuncVar), DataVar, NewCallbackNullable(DestroyNotifyVar)) | ||
| 530 | } | 478 | } | ||
| 531 | 479 | ||||
| @@ -534,8 +482,6 @@ var xOptionGroupSetTranslationDomain func(uintptr, string) | |||||
| 534 | // A convenience function to use gettext() for translating | 482 | // A convenience function to use gettext() for translating | ||
| 535 | // user-visible strings. | 483 | // user-visible strings. | ||
| 536 | func (x *OptionGroup) SetTranslationDomain(DomainVar string) { | 484 | func (x *OptionGroup) SetTranslationDomain(DomainVar string) { | ||
| 537 | - | core.LazyRegister(&xOptionGroupSetTranslationDomain, "GLIB", "g_option_group_set_translation_domain", false) | |||
| 538 | - | ||||
| 539 | xOptionGroupSetTranslationDomain(x.GoPointer(), DomainVar) | 485 | xOptionGroupSetTranslationDomain(x.GoPointer(), DomainVar) | ||
| 540 | } | 486 | } | ||
| 541 | 487 | ||||
| @@ -545,8 +491,6 @@ var xOptionGroupUnref func(uintptr) | |||||
| 545 | // If the reference count drops to 0, the @group will be freed. | 491 | // If the reference count drops to 0, the @group will be freed. | ||
| 546 | // and all memory allocated by the @group is released. | 492 | // and all memory allocated by the @group is released. | ||
| 547 | func (x *OptionGroup) Unref() { | 493 | func (x *OptionGroup) Unref() { | ||
| 548 | - | core.LazyRegister(&xOptionGroupUnref, "GLIB", "g_option_group_unref", false) | |||
| 549 | - | ||||
| 550 | xOptionGroupUnref(x.GoPointer()) | 494 | xOptionGroupUnref(x.GoPointer()) | ||
| 551 | } | 495 | } | ||
| 552 | 496 | ||||
| @@ -663,4 +607,46 @@ const ( | |||||
| 663 | func init() { | 607 | func init() { | ||
| 664 | core.SetPackageName("GLIB", "glib-2.0") | 608 | core.SetPackageName("GLIB", "glib-2.0") | ||
| 665 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | 609 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | ||
| 610 | + | var libs []uintptr | |||
| 611 | + | for _, libPath := range core.GetPaths("GLIB") { | |||
| 612 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 613 | + | if err != nil { | |||
| 614 | + | panic(err) | |||
| 615 | + | } | |||
| 616 | + | libs = append(libs, lib) | |||
| 617 | + | } | |||
| 618 | + | ||||
| 619 | + | core.PuregoSafeRegister(&xOptionContextAddGroup, libs, "g_option_context_add_group") | |||
| 620 | + | core.PuregoSafeRegister(&xOptionContextAddMainEntries, libs, "g_option_context_add_main_entries") | |||
| 621 | + | core.PuregoSafeRegister(&xOptionContextFree, libs, "g_option_context_free") | |||
| 622 | + | core.PuregoSafeRegister(&xOptionContextGetDescription, libs, "g_option_context_get_description") | |||
| 623 | + | core.PuregoSafeRegister(&xOptionContextGetHelp, libs, "g_option_context_get_help") | |||
| 624 | + | core.PuregoSafeRegister(&xOptionContextGetHelpEnabled, libs, "g_option_context_get_help_enabled") | |||
| 625 | + | core.PuregoSafeRegister(&xOptionContextGetIgnoreUnknownOptions, libs, "g_option_context_get_ignore_unknown_options") | |||
| 626 | + | core.PuregoSafeRegister(&xOptionContextGetMainGroup, libs, "g_option_context_get_main_group") | |||
| 627 | + | core.PuregoSafeRegister(&xOptionContextGetStrictPosix, libs, "g_option_context_get_strict_posix") | |||
| 628 | + | core.PuregoSafeRegister(&xOptionContextGetSummary, libs, "g_option_context_get_summary") | |||
| 629 | + | core.PuregoSafeRegister(&xOptionContextParse, libs, "g_option_context_parse") | |||
| 630 | + | core.PuregoSafeRegister(&xOptionContextParseStrv, libs, "g_option_context_parse_strv") | |||
| 631 | + | core.PuregoSafeRegister(&xOptionContextSetDescription, libs, "g_option_context_set_description") | |||
| 632 | + | core.PuregoSafeRegister(&xOptionContextSetHelpEnabled, libs, "g_option_context_set_help_enabled") | |||
| 633 | + | core.PuregoSafeRegister(&xOptionContextSetIgnoreUnknownOptions, libs, "g_option_context_set_ignore_unknown_options") | |||
| 634 | + | core.PuregoSafeRegister(&xOptionContextSetMainGroup, libs, "g_option_context_set_main_group") | |||
| 635 | + | core.PuregoSafeRegister(&xOptionContextSetStrictPosix, libs, "g_option_context_set_strict_posix") | |||
| 636 | + | core.PuregoSafeRegister(&xOptionContextSetSummary, libs, "g_option_context_set_summary") | |||
| 637 | + | core.PuregoSafeRegister(&xOptionContextSetTranslateFunc, libs, "g_option_context_set_translate_func") | |||
| 638 | + | core.PuregoSafeRegister(&xOptionContextSetTranslationDomain, libs, "g_option_context_set_translation_domain") | |||
| 639 | + | ||||
| 640 | + | core.PuregoSafeRegister(&xOptionGroupGLibType, libs, "g_option_group_get_type") | |||
| 641 | + | ||||
| 642 | + | core.PuregoSafeRegister(&xNewOptionGroup, libs, "g_option_group_new") | |||
| 643 | + | ||||
| 644 | + | core.PuregoSafeRegister(&xOptionGroupAddEntries, libs, "g_option_group_add_entries") | |||
| 645 | + | core.PuregoSafeRegister(&xOptionGroupFree, libs, "g_option_group_free") | |||
| 646 | + | core.PuregoSafeRegister(&xOptionGroupRef, libs, "g_option_group_ref") | |||
| 647 | + | core.PuregoSafeRegister(&xOptionGroupSetErrorHook, libs, "g_option_group_set_error_hook") | |||
| 648 | + | core.PuregoSafeRegister(&xOptionGroupSetParseHooks, libs, "g_option_group_set_parse_hooks") | |||
| 649 | + | core.PuregoSafeRegister(&xOptionGroupSetTranslateFunc, libs, "g_option_group_set_translate_func") | |||
| 650 | + | core.PuregoSafeRegister(&xOptionGroupSetTranslationDomain, libs, "g_option_group_set_translation_domain") | |||
| 651 | + | core.PuregoSafeRegister(&xOptionGroupUnref, libs, "g_option_group_unref") | |||
| 666 | } | 652 | } | ||