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
| @@ -5,6 +5,7 @@ import ( | |||
| 5 | 5 | "structs" | |
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | + | "github.com/bnema/purego" | |
| 8 | 9 | "github.com/bnema/puregotk/pkg/core" | |
| 9 | 10 | "github.com/bnema/puregotk/v4/glib" | |
| 10 | 11 | "github.com/bnema/puregotk/v4/gobject/types" | |
| @@ -114,7 +115,6 @@ type SettingsSchema struct { | |||
| 114 | 115 | var xSettingsSchemaGLibType func() types.GType | |
| 115 | 116 | ||
| 116 | 117 | func SettingsSchemaGLibType() types.GType { | |
| 117 | - | core.LazyRegister(&xSettingsSchemaGLibType, "GIO", "g_settings_schema_get_type", false) | |
| 118 | 118 | return xSettingsSchemaGLibType() | |
| 119 | 119 | } | |
| 120 | 120 | ||
| @@ -134,8 +134,6 @@ var xSettingsSchemaGetId func(uintptr) string | |||
| 134 | 134 | ||
| 135 | 135 | // Get the ID of @schema. | |
| 136 | 136 | func (x *SettingsSchema) GetId() string { | |
| 137 | - | core.LazyRegister(&xSettingsSchemaGetId, "GIO", "g_settings_schema_get_id", false) | |
| 138 | - | ||
| 139 | 137 | cret := xSettingsSchemaGetId(x.GoPointer()) | |
| 140 | 138 | return cret | |
| 141 | 139 | } | |
| @@ -147,8 +145,6 @@ var xSettingsSchemaGetKey func(uintptr, string) uintptr | |||
| 147 | 145 | // It is a programmer error to request a key that does not exist. See | |
| 148 | 146 | // g_settings_schema_list_keys(). | |
| 149 | 147 | func (x *SettingsSchema) GetKey(NameVar string) *SettingsSchemaKey { | |
| 150 | - | core.LazyRegister(&xSettingsSchemaGetKey, "GIO", "g_settings_schema_get_key", false) | |
| 151 | - | ||
| 152 | 148 | cret := xSettingsSchemaGetKey(x.GoPointer(), NameVar) | |
| 153 | 149 | if cret == 0 { | |
| 154 | 150 | return nil | |
| @@ -168,8 +164,6 @@ var xSettingsSchemaGetPath func(uintptr) string | |||
| 168 | 164 | // therefore describe multiple sets of keys at different locations. For | |
| 169 | 165 | // relocatable schemas, this function will return %NULL. | |
| 170 | 166 | func (x *SettingsSchema) GetPath() string { | |
| 171 | - | core.LazyRegister(&xSettingsSchemaGetPath, "GIO", "g_settings_schema_get_path", false) | |
| 172 | - | ||
| 173 | 167 | cret := xSettingsSchemaGetPath(x.GoPointer()) | |
| 174 | 168 | return cret | |
| 175 | 169 | } | |
| @@ -178,8 +172,6 @@ var xSettingsSchemaHasKey func(uintptr, string) bool | |||
| 178 | 172 | ||
| 179 | 173 | // Checks if @schema has a key named @name. | |
| 180 | 174 | func (x *SettingsSchema) HasKey(NameVar string) bool { | |
| 181 | - | core.LazyRegister(&xSettingsSchemaHasKey, "GIO", "g_settings_schema_has_key", false) | |
| 182 | - | ||
| 183 | 175 | cret := xSettingsSchemaHasKey(x.GoPointer(), NameVar) | |
| 184 | 176 | return cret | |
| 185 | 177 | } | |
| @@ -191,8 +183,6 @@ var xSettingsSchemaListChildren func(uintptr) []string | |||
| 191 | 183 | // You should free the return value with g_strfreev() when you are done | |
| 192 | 184 | // with it. | |
| 193 | 185 | func (x *SettingsSchema) ListChildren() []string { | |
| 194 | - | core.LazyRegister(&xSettingsSchemaListChildren, "GIO", "g_settings_schema_list_children", false) | |
| 195 | - | ||
| 196 | 186 | cret := xSettingsSchemaListChildren(x.GoPointer()) | |
| 197 | 187 | return cret | |
| 198 | 188 | } | |
| @@ -205,8 +195,6 @@ var xSettingsSchemaListKeys func(uintptr) []string | |||
| 205 | 195 | // (since you should already know what keys are in your schema). This | |
| 206 | 196 | // function is intended for introspection reasons. | |
| 207 | 197 | func (x *SettingsSchema) ListKeys() []string { | |
| 208 | - | core.LazyRegister(&xSettingsSchemaListKeys, "GIO", "g_settings_schema_list_keys", false) | |
| 209 | - | ||
| 210 | 198 | cret := xSettingsSchemaListKeys(x.GoPointer()) | |
| 211 | 199 | return cret | |
| 212 | 200 | } | |
| @@ -215,8 +203,6 @@ var xSettingsSchemaRef func(uintptr) uintptr | |||
| 215 | 203 | ||
| 216 | 204 | // Increase the reference count of @schema, returning a new reference. | |
| 217 | 205 | func (x *SettingsSchema) Ref() *SettingsSchema { | |
| 218 | - | core.LazyRegister(&xSettingsSchemaRef, "GIO", "g_settings_schema_ref", false) | |
| 219 | - | ||
| 220 | 206 | cret := xSettingsSchemaRef(x.GoPointer()) | |
| 221 | 207 | if cret == 0 { | |
| 222 | 208 | return nil | |
| @@ -228,8 +214,6 @@ var xSettingsSchemaUnref func(uintptr) | |||
| 228 | 214 | ||
| 229 | 215 | // Decrease the reference count of @schema, possibly freeing it. | |
| 230 | 216 | func (x *SettingsSchema) Unref() { | |
| 231 | - | core.LazyRegister(&xSettingsSchemaUnref, "GIO", "g_settings_schema_unref", false) | |
| 232 | - | ||
| 233 | 217 | xSettingsSchemaUnref(x.GoPointer()) | |
| 234 | 218 | } | |
| 235 | 219 | ||
| @@ -242,7 +226,6 @@ type SettingsSchemaKey struct { | |||
| 242 | 226 | var xSettingsSchemaKeyGLibType func() types.GType | |
| 243 | 227 | ||
| 244 | 228 | func SettingsSchemaKeyGLibType() types.GType { | |
| 245 | - | core.LazyRegister(&xSettingsSchemaKeyGLibType, "GIO", "g_settings_schema_key_get_type", false) | |
| 246 | 229 | return xSettingsSchemaKeyGLibType() | |
| 247 | 230 | } | |
| 248 | 231 | ||
| @@ -265,8 +248,6 @@ var xSettingsSchemaKeyGetDefaultValue func(uintptr) uintptr | |||
| 265 | 248 | // Note that this is the default value according to the schema. System | |
| 266 | 249 | // administrator defaults and lockdown are not visible via this API. | |
| 267 | 250 | func (x *SettingsSchemaKey) GetDefaultValue() *glib.Variant { | |
| 268 | - | core.LazyRegister(&xSettingsSchemaKeyGetDefaultValue, "GIO", "g_settings_schema_key_get_default_value", false) | |
| 269 | - | ||
| 270 | 251 | cret := xSettingsSchemaKeyGetDefaultValue(x.GoPointer()) | |
| 271 | 252 | if cret == 0 { | |
| 272 | 253 | return nil | |
| @@ -291,8 +272,6 @@ var xSettingsSchemaKeyGetDescription func(uintptr) string | |||
| 291 | 272 | // function has to parse all of the source XML files in the schema | |
| 292 | 273 | // directory. | |
| 293 | 274 | func (x *SettingsSchemaKey) GetDescription() string { | |
| 294 | - | core.LazyRegister(&xSettingsSchemaKeyGetDescription, "GIO", "g_settings_schema_key_get_description", false) | |
| 295 | - | ||
| 296 | 275 | cret := xSettingsSchemaKeyGetDescription(x.GoPointer()) | |
| 297 | 276 | return cret | |
| 298 | 277 | } | |
| @@ -301,8 +280,6 @@ var xSettingsSchemaKeyGetName func(uintptr) string | |||
| 301 | 280 | ||
| 302 | 281 | // Gets the name of @key. | |
| 303 | 282 | func (x *SettingsSchemaKey) GetName() string { | |
| 304 | - | core.LazyRegister(&xSettingsSchemaKeyGetName, "GIO", "g_settings_schema_key_get_name", false) | |
| 305 | - | ||
| 306 | 283 | cret := xSettingsSchemaKeyGetName(x.GoPointer()) | |
| 307 | 284 | return cret | |
| 308 | 285 | } | |
| @@ -346,8 +323,6 @@ var xSettingsSchemaKeyGetRange func(uintptr) uintptr | |||
| 346 | 323 | // You should free the returned value with g_variant_unref() when it is | |
| 347 | 324 | // no longer needed. | |
| 348 | 325 | func (x *SettingsSchemaKey) GetRange() *glib.Variant { | |
| 349 | - | core.LazyRegister(&xSettingsSchemaKeyGetRange, "GIO", "g_settings_schema_key_get_range", false) | |
| 350 | - | ||
| 351 | 326 | cret := xSettingsSchemaKeyGetRange(x.GoPointer()) | |
| 352 | 327 | if cret == 0 { | |
| 353 | 328 | return nil | |
| @@ -371,8 +346,6 @@ var xSettingsSchemaKeyGetSummary func(uintptr) string | |||
| 371 | 346 | // function has to parse all of the source XML files in the schema | |
| 372 | 347 | // directory. | |
| 373 | 348 | func (x *SettingsSchemaKey) GetSummary() string { | |
| 374 | - | core.LazyRegister(&xSettingsSchemaKeyGetSummary, "GIO", "g_settings_schema_key_get_summary", false) | |
| 375 | - | ||
| 376 | 349 | cret := xSettingsSchemaKeyGetSummary(x.GoPointer()) | |
| 377 | 350 | return cret | |
| 378 | 351 | } | |
| @@ -381,8 +354,6 @@ var xSettingsSchemaKeyGetValueType func(uintptr) uintptr | |||
| 381 | 354 | ||
| 382 | 355 | // Gets the #GVariantType of @key. | |
| 383 | 356 | func (x *SettingsSchemaKey) GetValueType() *glib.VariantType { | |
| 384 | - | core.LazyRegister(&xSettingsSchemaKeyGetValueType, "GIO", "g_settings_schema_key_get_value_type", false) | |
| 385 | - | ||
| 386 | 357 | cret := xSettingsSchemaKeyGetValueType(x.GoPointer()) | |
| 387 | 358 | if cret == 0 { | |
| 388 | 359 | return nil | |
| @@ -398,8 +369,6 @@ var xSettingsSchemaKeyRangeCheck func(uintptr, *glib.Variant) bool | |||
| 398 | 369 | // It is a programmer error if @value is not of the correct type — you | |
| 399 | 370 | // must check for this first. | |
| 400 | 371 | func (x *SettingsSchemaKey) RangeCheck(ValueVar *glib.Variant) bool { | |
| 401 | - | core.LazyRegister(&xSettingsSchemaKeyRangeCheck, "GIO", "g_settings_schema_key_range_check", false) | |
| 402 | - | ||
| 403 | 372 | cret := xSettingsSchemaKeyRangeCheck(x.GoPointer(), ValueVar) | |
| 404 | 373 | return cret | |
| 405 | 374 | } | |
| @@ -408,8 +377,6 @@ var xSettingsSchemaKeyRef func(uintptr) uintptr | |||
| 408 | 377 | ||
| 409 | 378 | // Increase the reference count of @key, returning a new reference. | |
| 410 | 379 | func (x *SettingsSchemaKey) Ref() *SettingsSchemaKey { | |
| 411 | - | core.LazyRegister(&xSettingsSchemaKeyRef, "GIO", "g_settings_schema_key_ref", false) | |
| 412 | - | ||
| 413 | 380 | cret := xSettingsSchemaKeyRef(x.GoPointer()) | |
| 414 | 381 | if cret == 0 { | |
| 415 | 382 | return nil | |
| @@ -421,8 +388,6 @@ var xSettingsSchemaKeyUnref func(uintptr) | |||
| 421 | 388 | ||
| 422 | 389 | // Decrease the reference count of @key, possibly freeing it. | |
| 423 | 390 | func (x *SettingsSchemaKey) Unref() { | |
| 424 | - | core.LazyRegister(&xSettingsSchemaKeyUnref, "GIO", "g_settings_schema_key_unref", false) | |
| 425 | - | ||
| 426 | 391 | xSettingsSchemaKeyUnref(x.GoPointer()) | |
| 427 | 392 | } | |
| 428 | 393 | ||
| @@ -434,7 +399,6 @@ type SettingsSchemaSource struct { | |||
| 434 | 399 | var xSettingsSchemaSourceGLibType func() types.GType | |
| 435 | 400 | ||
| 436 | 401 | func SettingsSchemaSourceGLibType() types.GType { | |
| 437 | - | core.LazyRegister(&xSettingsSchemaSourceGLibType, "GIO", "g_settings_schema_source_get_type", false) | |
| 438 | 402 | return xSettingsSchemaSourceGLibType() | |
| 439 | 403 | } | |
| 440 | 404 | ||
| @@ -484,7 +448,6 @@ var xNewSettingsSchemaSourceFromDirectory func(string, *SettingsSchemaSource, bo | |||
| 484 | 448 | // @parent should probably be given as the default schema source, as | |
| 485 | 449 | // returned by g_settings_schema_source_get_default(). | |
| 486 | 450 | func NewSettingsSchemaSourceFromDirectory(DirectoryVar string, ParentVar *SettingsSchemaSource, TrustedVar bool) (*SettingsSchemaSource, error) { | |
| 487 | - | core.LazyRegister(&xNewSettingsSchemaSourceFromDirectory, "GIO", "g_settings_schema_source_new_from_directory", false) | |
| 488 | 451 | var cerr *glib.Error | |
| 489 | 452 | ||
| 490 | 453 | cret := xNewSettingsSchemaSourceFromDirectory(DirectoryVar, ParentVar, TrustedVar, &cerr) | |
| @@ -512,8 +475,6 @@ var xSettingsSchemaSourceListSchemas func(uintptr, bool, *[]string, *[]string) | |||
| 512 | 475 | // Do not call this function from normal programs. This is designed for | |
| 513 | 476 | // use by database editors, commandline tools, etc. | |
| 514 | 477 | func (x *SettingsSchemaSource) ListSchemas(RecursiveVar bool, NonRelocatableVar *[]string, RelocatableVar *[]string) { | |
| 515 | - | core.LazyRegister(&xSettingsSchemaSourceListSchemas, "GIO", "g_settings_schema_source_list_schemas", false) | |
| 516 | - | ||
| 517 | 478 | xSettingsSchemaSourceListSchemas(x.GoPointer(), RecursiveVar, NonRelocatableVar, RelocatableVar) | |
| 518 | 479 | } | |
| 519 | 480 | ||
| @@ -530,8 +491,6 @@ var xSettingsSchemaSourceLookup func(uintptr, string, bool) uintptr | |||
| 530 | 491 | // | |
| 531 | 492 | // If the schema isn't found, %NULL is returned. | |
| 532 | 493 | func (x *SettingsSchemaSource) Lookup(SchemaIdVar string, RecursiveVar bool) *SettingsSchema { | |
| 533 | - | core.LazyRegister(&xSettingsSchemaSourceLookup, "GIO", "g_settings_schema_source_lookup", false) | |
| 534 | - | ||
| 535 | 494 | cret := xSettingsSchemaSourceLookup(x.GoPointer(), SchemaIdVar, RecursiveVar) | |
| 536 | 495 | if cret == 0 { | |
| 537 | 496 | return nil | |
| @@ -543,8 +502,6 @@ var xSettingsSchemaSourceRef func(uintptr) uintptr | |||
| 543 | 502 | ||
| 544 | 503 | // Increase the reference count of @source, returning a new reference. | |
| 545 | 504 | func (x *SettingsSchemaSource) Ref() *SettingsSchemaSource { | |
| 546 | - | core.LazyRegister(&xSettingsSchemaSourceRef, "GIO", "g_settings_schema_source_ref", false) | |
| 547 | - | ||
| 548 | 505 | cret := xSettingsSchemaSourceRef(x.GoPointer()) | |
| 549 | 506 | if cret == 0 { | |
| 550 | 507 | return nil | |
| @@ -556,8 +513,6 @@ var xSettingsSchemaSourceUnref func(uintptr) | |||
| 556 | 513 | ||
| 557 | 514 | // Decrease the reference count of @source, possibly freeing it. | |
| 558 | 515 | func (x *SettingsSchemaSource) Unref() { | |
| 559 | - | core.LazyRegister(&xSettingsSchemaSourceUnref, "GIO", "g_settings_schema_source_unref", false) | |
| 560 | - | ||
| 561 | 516 | xSettingsSchemaSourceUnref(x.GoPointer()) | |
| 562 | 517 | } | |
| 563 | 518 | ||
| @@ -577,8 +532,6 @@ var xSettingsSchemaSourceGetDefault func() uintptr | |||
| 577 | 532 | // lookups performed against the default source should probably be done | |
| 578 | 533 | // recursively. | |
| 579 | 534 | func SettingsSchemaSourceGetDefault() *SettingsSchemaSource { | |
| 580 | - | core.LazyRegister(&xSettingsSchemaSourceGetDefault, "GIO", "g_settings_schema_source_get_default", false) | |
| 581 | - | ||
| 582 | 535 | cret := xSettingsSchemaSourceGetDefault() | |
| 583 | 536 | if cret == 0 { | |
| 584 | 537 | return nil | |
| @@ -589,4 +542,46 @@ func SettingsSchemaSourceGetDefault() *SettingsSchemaSource { | |||
| 589 | 542 | func init() { | |
| 590 | 543 | core.SetPackageName("GIO", "gio-2.0") | |
| 591 | 544 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | |
| 545 | + | var libs []uintptr | |
| 546 | + | for _, libPath := range core.GetPaths("GIO") { | |
| 547 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 548 | + | if err != nil { | |
| 549 | + | panic(err) | |
| 550 | + | } | |
| 551 | + | libs = append(libs, lib) | |
| 552 | + | } | |
| 553 | + | ||
| 554 | + | core.PuregoSafeRegister(&xSettingsSchemaSourceGetDefault, libs, "g_settings_schema_source_get_default") | |
| 555 | + | ||
| 556 | + | core.PuregoSafeRegister(&xSettingsSchemaGLibType, libs, "g_settings_schema_get_type") | |
| 557 | + | ||
| 558 | + | core.PuregoSafeRegister(&xSettingsSchemaGetId, libs, "g_settings_schema_get_id") | |
| 559 | + | core.PuregoSafeRegister(&xSettingsSchemaGetKey, libs, "g_settings_schema_get_key") | |
| 560 | + | core.PuregoSafeRegister(&xSettingsSchemaGetPath, libs, "g_settings_schema_get_path") | |
| 561 | + | core.PuregoSafeRegister(&xSettingsSchemaHasKey, libs, "g_settings_schema_has_key") | |
| 562 | + | core.PuregoSafeRegister(&xSettingsSchemaListChildren, libs, "g_settings_schema_list_children") | |
| 563 | + | core.PuregoSafeRegister(&xSettingsSchemaListKeys, libs, "g_settings_schema_list_keys") | |
| 564 | + | core.PuregoSafeRegister(&xSettingsSchemaRef, libs, "g_settings_schema_ref") | |
| 565 | + | core.PuregoSafeRegister(&xSettingsSchemaUnref, libs, "g_settings_schema_unref") | |
| 566 | + | ||
| 567 | + | core.PuregoSafeRegister(&xSettingsSchemaKeyGLibType, libs, "g_settings_schema_key_get_type") | |
| 568 | + | ||
| 569 | + | core.PuregoSafeRegister(&xSettingsSchemaKeyGetDefaultValue, libs, "g_settings_schema_key_get_default_value") | |
| 570 | + | core.PuregoSafeRegister(&xSettingsSchemaKeyGetDescription, libs, "g_settings_schema_key_get_description") | |
| 571 | + | core.PuregoSafeRegister(&xSettingsSchemaKeyGetName, libs, "g_settings_schema_key_get_name") | |
| 572 | + | core.PuregoSafeRegister(&xSettingsSchemaKeyGetRange, libs, "g_settings_schema_key_get_range") | |
| 573 | + | core.PuregoSafeRegister(&xSettingsSchemaKeyGetSummary, libs, "g_settings_schema_key_get_summary") | |
| 574 | + | core.PuregoSafeRegister(&xSettingsSchemaKeyGetValueType, libs, "g_settings_schema_key_get_value_type") | |
| 575 | + | core.PuregoSafeRegister(&xSettingsSchemaKeyRangeCheck, libs, "g_settings_schema_key_range_check") | |
| 576 | + | core.PuregoSafeRegister(&xSettingsSchemaKeyRef, libs, "g_settings_schema_key_ref") | |
| 577 | + | core.PuregoSafeRegister(&xSettingsSchemaKeyUnref, libs, "g_settings_schema_key_unref") | |
| 578 | + | ||
| 579 | + | core.PuregoSafeRegister(&xSettingsSchemaSourceGLibType, libs, "g_settings_schema_source_get_type") | |
| 580 | + | ||
| 581 | + | core.PuregoSafeRegister(&xNewSettingsSchemaSourceFromDirectory, libs, "g_settings_schema_source_new_from_directory") | |
| 582 | + | ||
| 583 | + | core.PuregoSafeRegister(&xSettingsSchemaSourceListSchemas, libs, "g_settings_schema_source_list_schemas") | |
| 584 | + | core.PuregoSafeRegister(&xSettingsSchemaSourceLookup, libs, "g_settings_schema_source_lookup") | |
| 585 | + | core.PuregoSafeRegister(&xSettingsSchemaSourceRef, libs, "g_settings_schema_source_ref") | |
| 586 | + | core.PuregoSafeRegister(&xSettingsSchemaSourceUnref, libs, "g_settings_schema_source_unref") | |
| 592 | 587 | } | |
| @@ -5,6 +5,7 @@ import ( | |||||
| 5 | "structs" | 5 | "structs" | ||
| 6 | "unsafe" | 6 | "unsafe" | ||
| 7 | 7 | ||||
| 8 | + | "github.com/bnema/purego" | |||
| 8 | "github.com/bnema/puregotk/pkg/core" | 9 | "github.com/bnema/puregotk/pkg/core" | ||
| 9 | "github.com/bnema/puregotk/v4/glib" | 10 | "github.com/bnema/puregotk/v4/glib" | ||
| 10 | "github.com/bnema/puregotk/v4/gobject/types" | 11 | "github.com/bnema/puregotk/v4/gobject/types" | ||
| @@ -114,7 +115,6 @@ type SettingsSchema struct { | |||||
| 114 | var xSettingsSchemaGLibType func() types.GType | 115 | var xSettingsSchemaGLibType func() types.GType | ||
| 115 | 116 | ||||
| 116 | func SettingsSchemaGLibType() types.GType { | 117 | func SettingsSchemaGLibType() types.GType { | ||
| 117 | - | core.LazyRegister(&xSettingsSchemaGLibType, "GIO", "g_settings_schema_get_type", false) | |||
| 118 | return xSettingsSchemaGLibType() | 118 | return xSettingsSchemaGLibType() | ||
| 119 | } | 119 | } | ||
| 120 | 120 | ||||
| @@ -134,8 +134,6 @@ var xSettingsSchemaGetId func(uintptr) string | |||||
| 134 | 134 | ||||
| 135 | // Get the ID of @schema. | 135 | // Get the ID of @schema. | ||
| 136 | func (x *SettingsSchema) GetId() string { | 136 | func (x *SettingsSchema) GetId() string { | ||
| 137 | - | core.LazyRegister(&xSettingsSchemaGetId, "GIO", "g_settings_schema_get_id", false) | |||
| 138 | - | ||||
| 139 | cret := xSettingsSchemaGetId(x.GoPointer()) | 137 | cret := xSettingsSchemaGetId(x.GoPointer()) | ||
| 140 | return cret | 138 | return cret | ||
| 141 | } | 139 | } | ||
| @@ -147,8 +145,6 @@ var xSettingsSchemaGetKey func(uintptr, string) uintptr | |||||
| 147 | // It is a programmer error to request a key that does not exist. See | 145 | // It is a programmer error to request a key that does not exist. See | ||
| 148 | // g_settings_schema_list_keys(). | 146 | // g_settings_schema_list_keys(). | ||
| 149 | func (x *SettingsSchema) GetKey(NameVar string) *SettingsSchemaKey { | 147 | func (x *SettingsSchema) GetKey(NameVar string) *SettingsSchemaKey { | ||
| 150 | - | core.LazyRegister(&xSettingsSchemaGetKey, "GIO", "g_settings_schema_get_key", false) | |||
| 151 | - | ||||
| 152 | cret := xSettingsSchemaGetKey(x.GoPointer(), NameVar) | 148 | cret := xSettingsSchemaGetKey(x.GoPointer(), NameVar) | ||
| 153 | if cret == 0 { | 149 | if cret == 0 { | ||
| 154 | return nil | 150 | return nil | ||
| @@ -168,8 +164,6 @@ var xSettingsSchemaGetPath func(uintptr) string | |||||
| 168 | // therefore describe multiple sets of keys at different locations. For | 164 | // therefore describe multiple sets of keys at different locations. For | ||
| 169 | // relocatable schemas, this function will return %NULL. | 165 | // relocatable schemas, this function will return %NULL. | ||
| 170 | func (x *SettingsSchema) GetPath() string { | 166 | func (x *SettingsSchema) GetPath() string { | ||
| 171 | - | core.LazyRegister(&xSettingsSchemaGetPath, "GIO", "g_settings_schema_get_path", false) | |||
| 172 | - | ||||
| 173 | cret := xSettingsSchemaGetPath(x.GoPointer()) | 167 | cret := xSettingsSchemaGetPath(x.GoPointer()) | ||
| 174 | return cret | 168 | return cret | ||
| 175 | } | 169 | } | ||
| @@ -178,8 +172,6 @@ var xSettingsSchemaHasKey func(uintptr, string) bool | |||||
| 178 | 172 | ||||
| 179 | // Checks if @schema has a key named @name. | 173 | // Checks if @schema has a key named @name. | ||
| 180 | func (x *SettingsSchema) HasKey(NameVar string) bool { | 174 | func (x *SettingsSchema) HasKey(NameVar string) bool { | ||
| 181 | - | core.LazyRegister(&xSettingsSchemaHasKey, "GIO", "g_settings_schema_has_key", false) | |||
| 182 | - | ||||
| 183 | cret := xSettingsSchemaHasKey(x.GoPointer(), NameVar) | 175 | cret := xSettingsSchemaHasKey(x.GoPointer(), NameVar) | ||
| 184 | return cret | 176 | return cret | ||
| 185 | } | 177 | } | ||
| @@ -191,8 +183,6 @@ var xSettingsSchemaListChildren func(uintptr) []string | |||||
| 191 | // You should free the return value with g_strfreev() when you are done | 183 | // You should free the return value with g_strfreev() when you are done | ||
| 192 | // with it. | 184 | // with it. | ||
| 193 | func (x *SettingsSchema) ListChildren() []string { | 185 | func (x *SettingsSchema) ListChildren() []string { | ||
| 194 | - | core.LazyRegister(&xSettingsSchemaListChildren, "GIO", "g_settings_schema_list_children", false) | |||
| 195 | - | ||||
| 196 | cret := xSettingsSchemaListChildren(x.GoPointer()) | 186 | cret := xSettingsSchemaListChildren(x.GoPointer()) | ||
| 197 | return cret | 187 | return cret | ||
| 198 | } | 188 | } | ||
| @@ -205,8 +195,6 @@ var xSettingsSchemaListKeys func(uintptr) []string | |||||
| 205 | // (since you should already know what keys are in your schema). This | 195 | // (since you should already know what keys are in your schema). This | ||
| 206 | // function is intended for introspection reasons. | 196 | // function is intended for introspection reasons. | ||
| 207 | func (x *SettingsSchema) ListKeys() []string { | 197 | func (x *SettingsSchema) ListKeys() []string { | ||
| 208 | - | core.LazyRegister(&xSettingsSchemaListKeys, "GIO", "g_settings_schema_list_keys", false) | |||
| 209 | - | ||||
| 210 | cret := xSettingsSchemaListKeys(x.GoPointer()) | 198 | cret := xSettingsSchemaListKeys(x.GoPointer()) | ||
| 211 | return cret | 199 | return cret | ||
| 212 | } | 200 | } | ||
| @@ -215,8 +203,6 @@ var xSettingsSchemaRef func(uintptr) uintptr | |||||
| 215 | 203 | ||||
| 216 | // Increase the reference count of @schema, returning a new reference. | 204 | // Increase the reference count of @schema, returning a new reference. | ||
| 217 | func (x *SettingsSchema) Ref() *SettingsSchema { | 205 | func (x *SettingsSchema) Ref() *SettingsSchema { | ||
| 218 | - | core.LazyRegister(&xSettingsSchemaRef, "GIO", "g_settings_schema_ref", false) | |||
| 219 | - | ||||
| 220 | cret := xSettingsSchemaRef(x.GoPointer()) | 206 | cret := xSettingsSchemaRef(x.GoPointer()) | ||
| 221 | if cret == 0 { | 207 | if cret == 0 { | ||
| 222 | return nil | 208 | return nil | ||
| @@ -228,8 +214,6 @@ var xSettingsSchemaUnref func(uintptr) | |||||
| 228 | 214 | ||||
| 229 | // Decrease the reference count of @schema, possibly freeing it. | 215 | // Decrease the reference count of @schema, possibly freeing it. | ||
| 230 | func (x *SettingsSchema) Unref() { | 216 | func (x *SettingsSchema) Unref() { | ||
| 231 | - | core.LazyRegister(&xSettingsSchemaUnref, "GIO", "g_settings_schema_unref", false) | |||
| 232 | - | ||||
| 233 | xSettingsSchemaUnref(x.GoPointer()) | 217 | xSettingsSchemaUnref(x.GoPointer()) | ||
| 234 | } | 218 | } | ||
| 235 | 219 | ||||
| @@ -242,7 +226,6 @@ type SettingsSchemaKey struct { | |||||
| 242 | var xSettingsSchemaKeyGLibType func() types.GType | 226 | var xSettingsSchemaKeyGLibType func() types.GType | ||
| 243 | 227 | ||||
| 244 | func SettingsSchemaKeyGLibType() types.GType { | 228 | func SettingsSchemaKeyGLibType() types.GType { | ||
| 245 | - | core.LazyRegister(&xSettingsSchemaKeyGLibType, "GIO", "g_settings_schema_key_get_type", false) | |||
| 246 | return xSettingsSchemaKeyGLibType() | 229 | return xSettingsSchemaKeyGLibType() | ||
| 247 | } | 230 | } | ||
| 248 | 231 | ||||
| @@ -265,8 +248,6 @@ var xSettingsSchemaKeyGetDefaultValue func(uintptr) uintptr | |||||
| 265 | // Note that this is the default value according to the schema. System | 248 | // Note that this is the default value according to the schema. System | ||
| 266 | // administrator defaults and lockdown are not visible via this API. | 249 | // administrator defaults and lockdown are not visible via this API. | ||
| 267 | func (x *SettingsSchemaKey) GetDefaultValue() *glib.Variant { | 250 | func (x *SettingsSchemaKey) GetDefaultValue() *glib.Variant { | ||
| 268 | - | core.LazyRegister(&xSettingsSchemaKeyGetDefaultValue, "GIO", "g_settings_schema_key_get_default_value", false) | |||
| 269 | - | ||||
| 270 | cret := xSettingsSchemaKeyGetDefaultValue(x.GoPointer()) | 251 | cret := xSettingsSchemaKeyGetDefaultValue(x.GoPointer()) | ||
| 271 | if cret == 0 { | 252 | if cret == 0 { | ||
| 272 | return nil | 253 | return nil | ||
| @@ -291,8 +272,6 @@ var xSettingsSchemaKeyGetDescription func(uintptr) string | |||||
| 291 | // function has to parse all of the source XML files in the schema | 272 | // function has to parse all of the source XML files in the schema | ||
| 292 | // directory. | 273 | // directory. | ||
| 293 | func (x *SettingsSchemaKey) GetDescription() string { | 274 | func (x *SettingsSchemaKey) GetDescription() string { | ||
| 294 | - | core.LazyRegister(&xSettingsSchemaKeyGetDescription, "GIO", "g_settings_schema_key_get_description", false) | |||
| 295 | - | ||||
| 296 | cret := xSettingsSchemaKeyGetDescription(x.GoPointer()) | 275 | cret := xSettingsSchemaKeyGetDescription(x.GoPointer()) | ||
| 297 | return cret | 276 | return cret | ||
| 298 | } | 277 | } | ||
| @@ -301,8 +280,6 @@ var xSettingsSchemaKeyGetName func(uintptr) string | |||||
| 301 | 280 | ||||
| 302 | // Gets the name of @key. | 281 | // Gets the name of @key. | ||
| 303 | func (x *SettingsSchemaKey) GetName() string { | 282 | func (x *SettingsSchemaKey) GetName() string { | ||
| 304 | - | core.LazyRegister(&xSettingsSchemaKeyGetName, "GIO", "g_settings_schema_key_get_name", false) | |||
| 305 | - | ||||
| 306 | cret := xSettingsSchemaKeyGetName(x.GoPointer()) | 283 | cret := xSettingsSchemaKeyGetName(x.GoPointer()) | ||
| 307 | return cret | 284 | return cret | ||
| 308 | } | 285 | } | ||
| @@ -346,8 +323,6 @@ var xSettingsSchemaKeyGetRange func(uintptr) uintptr | |||||
| 346 | // You should free the returned value with g_variant_unref() when it is | 323 | // You should free the returned value with g_variant_unref() when it is | ||
| 347 | // no longer needed. | 324 | // no longer needed. | ||
| 348 | func (x *SettingsSchemaKey) GetRange() *glib.Variant { | 325 | func (x *SettingsSchemaKey) GetRange() *glib.Variant { | ||
| 349 | - | core.LazyRegister(&xSettingsSchemaKeyGetRange, "GIO", "g_settings_schema_key_get_range", false) | |||
| 350 | - | ||||
| 351 | cret := xSettingsSchemaKeyGetRange(x.GoPointer()) | 326 | cret := xSettingsSchemaKeyGetRange(x.GoPointer()) | ||
| 352 | if cret == 0 { | 327 | if cret == 0 { | ||
| 353 | return nil | 328 | return nil | ||
| @@ -371,8 +346,6 @@ var xSettingsSchemaKeyGetSummary func(uintptr) string | |||||
| 371 | // function has to parse all of the source XML files in the schema | 346 | // function has to parse all of the source XML files in the schema | ||
| 372 | // directory. | 347 | // directory. | ||
| 373 | func (x *SettingsSchemaKey) GetSummary() string { | 348 | func (x *SettingsSchemaKey) GetSummary() string { | ||
| 374 | - | core.LazyRegister(&xSettingsSchemaKeyGetSummary, "GIO", "g_settings_schema_key_get_summary", false) | |||
| 375 | - | ||||
| 376 | cret := xSettingsSchemaKeyGetSummary(x.GoPointer()) | 349 | cret := xSettingsSchemaKeyGetSummary(x.GoPointer()) | ||
| 377 | return cret | 350 | return cret | ||
| 378 | } | 351 | } | ||
| @@ -381,8 +354,6 @@ var xSettingsSchemaKeyGetValueType func(uintptr) uintptr | |||||
| 381 | 354 | ||||
| 382 | // Gets the #GVariantType of @key. | 355 | // Gets the #GVariantType of @key. | ||
| 383 | func (x *SettingsSchemaKey) GetValueType() *glib.VariantType { | 356 | func (x *SettingsSchemaKey) GetValueType() *glib.VariantType { | ||
| 384 | - | core.LazyRegister(&xSettingsSchemaKeyGetValueType, "GIO", "g_settings_schema_key_get_value_type", false) | |||
| 385 | - | ||||
| 386 | cret := xSettingsSchemaKeyGetValueType(x.GoPointer()) | 357 | cret := xSettingsSchemaKeyGetValueType(x.GoPointer()) | ||
| 387 | if cret == 0 { | 358 | if cret == 0 { | ||
| 388 | return nil | 359 | return nil | ||
| @@ -398,8 +369,6 @@ var xSettingsSchemaKeyRangeCheck func(uintptr, *glib.Variant) bool | |||||
| 398 | // It is a programmer error if @value is not of the correct type — you | 369 | // It is a programmer error if @value is not of the correct type — you | ||
| 399 | // must check for this first. | 370 | // must check for this first. | ||
| 400 | func (x *SettingsSchemaKey) RangeCheck(ValueVar *glib.Variant) bool { | 371 | func (x *SettingsSchemaKey) RangeCheck(ValueVar *glib.Variant) bool { | ||
| 401 | - | core.LazyRegister(&xSettingsSchemaKeyRangeCheck, "GIO", "g_settings_schema_key_range_check", false) | |||
| 402 | - | ||||
| 403 | cret := xSettingsSchemaKeyRangeCheck(x.GoPointer(), ValueVar) | 372 | cret := xSettingsSchemaKeyRangeCheck(x.GoPointer(), ValueVar) | ||
| 404 | return cret | 373 | return cret | ||
| 405 | } | 374 | } | ||
| @@ -408,8 +377,6 @@ var xSettingsSchemaKeyRef func(uintptr) uintptr | |||||
| 408 | 377 | ||||
| 409 | // Increase the reference count of @key, returning a new reference. | 378 | // Increase the reference count of @key, returning a new reference. | ||
| 410 | func (x *SettingsSchemaKey) Ref() *SettingsSchemaKey { | 379 | func (x *SettingsSchemaKey) Ref() *SettingsSchemaKey { | ||
| 411 | - | core.LazyRegister(&xSettingsSchemaKeyRef, "GIO", "g_settings_schema_key_ref", false) | |||
| 412 | - | ||||
| 413 | cret := xSettingsSchemaKeyRef(x.GoPointer()) | 380 | cret := xSettingsSchemaKeyRef(x.GoPointer()) | ||
| 414 | if cret == 0 { | 381 | if cret == 0 { | ||
| 415 | return nil | 382 | return nil | ||
| @@ -421,8 +388,6 @@ var xSettingsSchemaKeyUnref func(uintptr) | |||||
| 421 | 388 | ||||
| 422 | // Decrease the reference count of @key, possibly freeing it. | 389 | // Decrease the reference count of @key, possibly freeing it. | ||
| 423 | func (x *SettingsSchemaKey) Unref() { | 390 | func (x *SettingsSchemaKey) Unref() { | ||
| 424 | - | core.LazyRegister(&xSettingsSchemaKeyUnref, "GIO", "g_settings_schema_key_unref", false) | |||
| 425 | - | ||||
| 426 | xSettingsSchemaKeyUnref(x.GoPointer()) | 391 | xSettingsSchemaKeyUnref(x.GoPointer()) | ||
| 427 | } | 392 | } | ||
| 428 | 393 | ||||
| @@ -434,7 +399,6 @@ type SettingsSchemaSource struct { | |||||
| 434 | var xSettingsSchemaSourceGLibType func() types.GType | 399 | var xSettingsSchemaSourceGLibType func() types.GType | ||
| 435 | 400 | ||||
| 436 | func SettingsSchemaSourceGLibType() types.GType { | 401 | func SettingsSchemaSourceGLibType() types.GType { | ||
| 437 | - | core.LazyRegister(&xSettingsSchemaSourceGLibType, "GIO", "g_settings_schema_source_get_type", false) | |||
| 438 | return xSettingsSchemaSourceGLibType() | 402 | return xSettingsSchemaSourceGLibType() | ||
| 439 | } | 403 | } | ||
| 440 | 404 | ||||
| @@ -484,7 +448,6 @@ var xNewSettingsSchemaSourceFromDirectory func(string, *SettingsSchemaSource, bo | |||||
| 484 | // @parent should probably be given as the default schema source, as | 448 | // @parent should probably be given as the default schema source, as | ||
| 485 | // returned by g_settings_schema_source_get_default(). | 449 | // returned by g_settings_schema_source_get_default(). | ||
| 486 | func NewSettingsSchemaSourceFromDirectory(DirectoryVar string, ParentVar *SettingsSchemaSource, TrustedVar bool) (*SettingsSchemaSource, error) { | 450 | func NewSettingsSchemaSourceFromDirectory(DirectoryVar string, ParentVar *SettingsSchemaSource, TrustedVar bool) (*SettingsSchemaSource, error) { | ||
| 487 | - | core.LazyRegister(&xNewSettingsSchemaSourceFromDirectory, "GIO", "g_settings_schema_source_new_from_directory", false) | |||
| 488 | var cerr *glib.Error | 451 | var cerr *glib.Error | ||
| 489 | 452 | ||||
| 490 | cret := xNewSettingsSchemaSourceFromDirectory(DirectoryVar, ParentVar, TrustedVar, &cerr) | 453 | cret := xNewSettingsSchemaSourceFromDirectory(DirectoryVar, ParentVar, TrustedVar, &cerr) | ||
| @@ -512,8 +475,6 @@ var xSettingsSchemaSourceListSchemas func(uintptr, bool, *[]string, *[]string) | |||||
| 512 | // Do not call this function from normal programs. This is designed for | 475 | // Do not call this function from normal programs. This is designed for | ||
| 513 | // use by database editors, commandline tools, etc. | 476 | // use by database editors, commandline tools, etc. | ||
| 514 | func (x *SettingsSchemaSource) ListSchemas(RecursiveVar bool, NonRelocatableVar *[]string, RelocatableVar *[]string) { | 477 | func (x *SettingsSchemaSource) ListSchemas(RecursiveVar bool, NonRelocatableVar *[]string, RelocatableVar *[]string) { | ||
| 515 | - | core.LazyRegister(&xSettingsSchemaSourceListSchemas, "GIO", "g_settings_schema_source_list_schemas", false) | |||
| 516 | - | ||||
| 517 | xSettingsSchemaSourceListSchemas(x.GoPointer(), RecursiveVar, NonRelocatableVar, RelocatableVar) | 478 | xSettingsSchemaSourceListSchemas(x.GoPointer(), RecursiveVar, NonRelocatableVar, RelocatableVar) | ||
| 518 | } | 479 | } | ||
| 519 | 480 | ||||
| @@ -530,8 +491,6 @@ var xSettingsSchemaSourceLookup func(uintptr, string, bool) uintptr | |||||
| 530 | // | 491 | // | ||
| 531 | // If the schema isn't found, %NULL is returned. | 492 | // If the schema isn't found, %NULL is returned. | ||
| 532 | func (x *SettingsSchemaSource) Lookup(SchemaIdVar string, RecursiveVar bool) *SettingsSchema { | 493 | func (x *SettingsSchemaSource) Lookup(SchemaIdVar string, RecursiveVar bool) *SettingsSchema { | ||
| 533 | - | core.LazyRegister(&xSettingsSchemaSourceLookup, "GIO", "g_settings_schema_source_lookup", false) | |||
| 534 | - | ||||
| 535 | cret := xSettingsSchemaSourceLookup(x.GoPointer(), SchemaIdVar, RecursiveVar) | 494 | cret := xSettingsSchemaSourceLookup(x.GoPointer(), SchemaIdVar, RecursiveVar) | ||
| 536 | if cret == 0 { | 495 | if cret == 0 { | ||
| 537 | return nil | 496 | return nil | ||
| @@ -543,8 +502,6 @@ var xSettingsSchemaSourceRef func(uintptr) uintptr | |||||
| 543 | 502 | ||||
| 544 | // Increase the reference count of @source, returning a new reference. | 503 | // Increase the reference count of @source, returning a new reference. | ||
| 545 | func (x *SettingsSchemaSource) Ref() *SettingsSchemaSource { | 504 | func (x *SettingsSchemaSource) Ref() *SettingsSchemaSource { | ||
| 546 | - | core.LazyRegister(&xSettingsSchemaSourceRef, "GIO", "g_settings_schema_source_ref", false) | |||
| 547 | - | ||||
| 548 | cret := xSettingsSchemaSourceRef(x.GoPointer()) | 505 | cret := xSettingsSchemaSourceRef(x.GoPointer()) | ||
| 549 | if cret == 0 { | 506 | if cret == 0 { | ||
| 550 | return nil | 507 | return nil | ||
| @@ -556,8 +513,6 @@ var xSettingsSchemaSourceUnref func(uintptr) | |||||
| 556 | 513 | ||||
| 557 | // Decrease the reference count of @source, possibly freeing it. | 514 | // Decrease the reference count of @source, possibly freeing it. | ||
| 558 | func (x *SettingsSchemaSource) Unref() { | 515 | func (x *SettingsSchemaSource) Unref() { | ||
| 559 | - | core.LazyRegister(&xSettingsSchemaSourceUnref, "GIO", "g_settings_schema_source_unref", false) | |||
| 560 | - | ||||
| 561 | xSettingsSchemaSourceUnref(x.GoPointer()) | 516 | xSettingsSchemaSourceUnref(x.GoPointer()) | ||
| 562 | } | 517 | } | ||
| 563 | 518 | ||||
| @@ -577,8 +532,6 @@ var xSettingsSchemaSourceGetDefault func() uintptr | |||||
| 577 | // lookups performed against the default source should probably be done | 532 | // lookups performed against the default source should probably be done | ||
| 578 | // recursively. | 533 | // recursively. | ||
| 579 | func SettingsSchemaSourceGetDefault() *SettingsSchemaSource { | 534 | func SettingsSchemaSourceGetDefault() *SettingsSchemaSource { | ||
| 580 | - | core.LazyRegister(&xSettingsSchemaSourceGetDefault, "GIO", "g_settings_schema_source_get_default", false) | |||
| 581 | - | ||||
| 582 | cret := xSettingsSchemaSourceGetDefault() | 535 | cret := xSettingsSchemaSourceGetDefault() | ||
| 583 | if cret == 0 { | 536 | if cret == 0 { | ||
| 584 | return nil | 537 | return nil | ||
| @@ -589,4 +542,46 @@ func SettingsSchemaSourceGetDefault() *SettingsSchemaSource { | |||||
| 589 | func init() { | 542 | func init() { | ||
| 590 | core.SetPackageName("GIO", "gio-2.0") | 543 | core.SetPackageName("GIO", "gio-2.0") | ||
| 591 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | 544 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | ||
| 545 | + | var libs []uintptr | |||
| 546 | + | for _, libPath := range core.GetPaths("GIO") { | |||
| 547 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 548 | + | if err != nil { | |||
| 549 | + | panic(err) | |||
| 550 | + | } | |||
| 551 | + | libs = append(libs, lib) | |||
| 552 | + | } | |||
| 553 | + | ||||
| 554 | + | core.PuregoSafeRegister(&xSettingsSchemaSourceGetDefault, libs, "g_settings_schema_source_get_default") | |||
| 555 | + | ||||
| 556 | + | core.PuregoSafeRegister(&xSettingsSchemaGLibType, libs, "g_settings_schema_get_type") | |||
| 557 | + | ||||
| 558 | + | core.PuregoSafeRegister(&xSettingsSchemaGetId, libs, "g_settings_schema_get_id") | |||
| 559 | + | core.PuregoSafeRegister(&xSettingsSchemaGetKey, libs, "g_settings_schema_get_key") | |||
| 560 | + | core.PuregoSafeRegister(&xSettingsSchemaGetPath, libs, "g_settings_schema_get_path") | |||
| 561 | + | core.PuregoSafeRegister(&xSettingsSchemaHasKey, libs, "g_settings_schema_has_key") | |||
| 562 | + | core.PuregoSafeRegister(&xSettingsSchemaListChildren, libs, "g_settings_schema_list_children") | |||
| 563 | + | core.PuregoSafeRegister(&xSettingsSchemaListKeys, libs, "g_settings_schema_list_keys") | |||
| 564 | + | core.PuregoSafeRegister(&xSettingsSchemaRef, libs, "g_settings_schema_ref") | |||
| 565 | + | core.PuregoSafeRegister(&xSettingsSchemaUnref, libs, "g_settings_schema_unref") | |||
| 566 | + | ||||
| 567 | + | core.PuregoSafeRegister(&xSettingsSchemaKeyGLibType, libs, "g_settings_schema_key_get_type") | |||
| 568 | + | ||||
| 569 | + | core.PuregoSafeRegister(&xSettingsSchemaKeyGetDefaultValue, libs, "g_settings_schema_key_get_default_value") | |||
| 570 | + | core.PuregoSafeRegister(&xSettingsSchemaKeyGetDescription, libs, "g_settings_schema_key_get_description") | |||
| 571 | + | core.PuregoSafeRegister(&xSettingsSchemaKeyGetName, libs, "g_settings_schema_key_get_name") | |||
| 572 | + | core.PuregoSafeRegister(&xSettingsSchemaKeyGetRange, libs, "g_settings_schema_key_get_range") | |||
| 573 | + | core.PuregoSafeRegister(&xSettingsSchemaKeyGetSummary, libs, "g_settings_schema_key_get_summary") | |||
| 574 | + | core.PuregoSafeRegister(&xSettingsSchemaKeyGetValueType, libs, "g_settings_schema_key_get_value_type") | |||
| 575 | + | core.PuregoSafeRegister(&xSettingsSchemaKeyRangeCheck, libs, "g_settings_schema_key_range_check") | |||
| 576 | + | core.PuregoSafeRegister(&xSettingsSchemaKeyRef, libs, "g_settings_schema_key_ref") | |||
| 577 | + | core.PuregoSafeRegister(&xSettingsSchemaKeyUnref, libs, "g_settings_schema_key_unref") | |||
| 578 | + | ||||
| 579 | + | core.PuregoSafeRegister(&xSettingsSchemaSourceGLibType, libs, "g_settings_schema_source_get_type") | |||
| 580 | + | ||||
| 581 | + | core.PuregoSafeRegister(&xNewSettingsSchemaSourceFromDirectory, libs, "g_settings_schema_source_new_from_directory") | |||
| 582 | + | ||||
| 583 | + | core.PuregoSafeRegister(&xSettingsSchemaSourceListSchemas, libs, "g_settings_schema_source_list_schemas") | |||
| 584 | + | core.PuregoSafeRegister(&xSettingsSchemaSourceLookup, libs, "g_settings_schema_source_lookup") | |||
| 585 | + | core.PuregoSafeRegister(&xSettingsSchemaSourceRef, libs, "g_settings_schema_source_ref") | |||
| 586 | + | core.PuregoSafeRegister(&xSettingsSchemaSourceUnref, libs, "g_settings_schema_source_unref") | |||
| 592 | } | 587 | } | ||