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
| @@ -61,7 +61,7 @@ func (x *FileEnumeratorClass) OverrideNextFile(cb func(*FileEnumerator, *Cancell | |||
| 61 | 61 | if cb == nil { | |
| 62 | 62 | x.xNextFile = 0 | |
| 63 | 63 | } else { | |
| 64 | - | x.xNextFile = purego.NewCallback(func(EnumeratorVarp uintptr, CancellableVarp uintptr, cerrp **glib.Error) uintptr { | |
| 64 | + | x.xNextFile = purego.NewCallback(func(EnumeratorVarp uintptr, CancellableVarp uintptr) uintptr { | |
| 65 | 65 | ret := cb(FileEnumeratorNewFromInternalPtr(EnumeratorVarp), CancellableNewFromInternalPtr(CancellableVarp)) | |
| 66 | 66 | if ret == nil { | |
| 67 | 67 | return 0 | |
| @@ -76,11 +76,10 @@ func (x *FileEnumeratorClass) GetNextFile() func(*FileEnumerator, *Cancellable) | |||
| 76 | 76 | if x.xNextFile == 0 { | |
| 77 | 77 | return nil | |
| 78 | 78 | } | |
| 79 | - | var rawCallback func(EnumeratorVarp uintptr, CancellableVarp uintptr, cerrp **glib.Error) uintptr | |
| 79 | + | var rawCallback func(EnumeratorVarp uintptr, CancellableVarp uintptr) uintptr | |
| 80 | 80 | purego.RegisterFunc(&rawCallback, x.xNextFile) | |
| 81 | 81 | return func(EnumeratorVar *FileEnumerator, CancellableVar *Cancellable) *FileInfo { | |
| 82 | - | var cerr *glib.Error | |
| 83 | - | rawRet := rawCallback(EnumeratorVar.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 82 | + | rawRet := rawCallback(EnumeratorVar.GoPointer(), CancellableVar.GoPointer()) | |
| 84 | 83 | if rawRet == 0 { | |
| 85 | 84 | return nil | |
| 86 | 85 | } | |
| @@ -95,7 +94,7 @@ func (x *FileEnumeratorClass) OverrideCloseFn(cb func(*FileEnumerator, *Cancella | |||
| 95 | 94 | if cb == nil { | |
| 96 | 95 | x.xCloseFn = 0 | |
| 97 | 96 | } else { | |
| 98 | - | x.xCloseFn = purego.NewCallback(func(EnumeratorVarp uintptr, CancellableVarp uintptr, cerrp **glib.Error) bool { | |
| 97 | + | x.xCloseFn = purego.NewCallback(func(EnumeratorVarp uintptr, CancellableVarp uintptr) bool { | |
| 99 | 98 | return cb(FileEnumeratorNewFromInternalPtr(EnumeratorVarp), CancellableNewFromInternalPtr(CancellableVarp)) | |
| 100 | 99 | }) | |
| 101 | 100 | } | |
| @@ -106,11 +105,10 @@ func (x *FileEnumeratorClass) GetCloseFn() func(*FileEnumerator, *Cancellable) b | |||
| 106 | 105 | if x.xCloseFn == 0 { | |
| 107 | 106 | return nil | |
| 108 | 107 | } | |
| 109 | - | var rawCallback func(EnumeratorVarp uintptr, CancellableVarp uintptr, cerrp **glib.Error) bool | |
| 108 | + | var rawCallback func(EnumeratorVarp uintptr, CancellableVarp uintptr) bool | |
| 110 | 109 | purego.RegisterFunc(&rawCallback, x.xCloseFn) | |
| 111 | 110 | return func(EnumeratorVar *FileEnumerator, CancellableVar *Cancellable) bool { | |
| 112 | - | var cerr *glib.Error | |
| 113 | - | return rawCallback(EnumeratorVar.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 111 | + | return rawCallback(EnumeratorVar.GoPointer(), CancellableVar.GoPointer()) | |
| 114 | 112 | } | |
| 115 | 113 | } | |
| 116 | 114 | ||
| @@ -142,7 +140,7 @@ func (x *FileEnumeratorClass) OverrideNextFilesFinish(cb func(*FileEnumerator, A | |||
| 142 | 140 | if cb == nil { | |
| 143 | 141 | x.xNextFilesFinish = 0 | |
| 144 | 142 | } else { | |
| 145 | - | x.xNextFilesFinish = purego.NewCallback(func(EnumeratorVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) uintptr { | |
| 143 | + | x.xNextFilesFinish = purego.NewCallback(func(EnumeratorVarp uintptr, ResultVarp uintptr) uintptr { | |
| 146 | 144 | ret := cb(FileEnumeratorNewFromInternalPtr(EnumeratorVarp), &AsyncResultBase{Ptr: ResultVarp}) | |
| 147 | 145 | if ret == nil { | |
| 148 | 146 | return 0 | |
| @@ -157,11 +155,10 @@ func (x *FileEnumeratorClass) GetNextFilesFinish() func(*FileEnumerator, AsyncRe | |||
| 157 | 155 | if x.xNextFilesFinish == 0 { | |
| 158 | 156 | return nil | |
| 159 | 157 | } | |
| 160 | - | var rawCallback func(EnumeratorVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) uintptr | |
| 158 | + | var rawCallback func(EnumeratorVarp uintptr, ResultVarp uintptr) uintptr | |
| 161 | 159 | purego.RegisterFunc(&rawCallback, x.xNextFilesFinish) | |
| 162 | 160 | return func(EnumeratorVar *FileEnumerator, ResultVar AsyncResult) *glib.List { | |
| 163 | - | var cerr *glib.Error | |
| 164 | - | rawRet := rawCallback(EnumeratorVar.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 161 | + | rawRet := rawCallback(EnumeratorVar.GoPointer(), ResultVar.GoPointer()) | |
| 165 | 162 | if rawRet == 0 { | |
| 166 | 163 | return nil | |
| 167 | 164 | } | |
| @@ -197,7 +194,7 @@ func (x *FileEnumeratorClass) OverrideCloseFinish(cb func(*FileEnumerator, Async | |||
| 197 | 194 | if cb == nil { | |
| 198 | 195 | x.xCloseFinish = 0 | |
| 199 | 196 | } else { | |
| 200 | - | x.xCloseFinish = purego.NewCallback(func(EnumeratorVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) bool { | |
| 197 | + | x.xCloseFinish = purego.NewCallback(func(EnumeratorVarp uintptr, ResultVarp uintptr) bool { | |
| 201 | 198 | return cb(FileEnumeratorNewFromInternalPtr(EnumeratorVarp), &AsyncResultBase{Ptr: ResultVarp}) | |
| 202 | 199 | }) | |
| 203 | 200 | } | |
| @@ -208,11 +205,10 @@ func (x *FileEnumeratorClass) GetCloseFinish() func(*FileEnumerator, AsyncResult | |||
| 208 | 205 | if x.xCloseFinish == 0 { | |
| 209 | 206 | return nil | |
| 210 | 207 | } | |
| 211 | - | var rawCallback func(EnumeratorVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) bool | |
| 208 | + | var rawCallback func(EnumeratorVarp uintptr, ResultVarp uintptr) bool | |
| 212 | 209 | purego.RegisterFunc(&rawCallback, x.xCloseFinish) | |
| 213 | 210 | return func(EnumeratorVar *FileEnumerator, ResultVar AsyncResult) bool { | |
| 214 | - | var cerr *glib.Error | |
| 215 | - | return rawCallback(EnumeratorVar.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 211 | + | return rawCallback(EnumeratorVar.GoPointer(), ResultVar.GoPointer()) | |
| 216 | 212 | } | |
| 217 | 213 | } | |
| 218 | 214 | ||
| @@ -426,7 +422,6 @@ type FileEnumerator struct { | |||
| 426 | 422 | var xFileEnumeratorGLibType func() types.GType | |
| 427 | 423 | ||
| 428 | 424 | func FileEnumeratorGLibType() types.GType { | |
| 429 | - | core.LazyRegister(&xFileEnumeratorGLibType, "GIO", "g_file_enumerator_get_type", false) | |
| 430 | 425 | return xFileEnumeratorGLibType() | |
| 431 | 426 | } | |
| 432 | 427 | ||
| @@ -445,7 +440,6 @@ var xFileEnumeratorClose func(uintptr, uintptr, **glib.Error) bool | |||
| 445 | 440 | // is dropped, but you might want to call this function to make | |
| 446 | 441 | // sure resources are released as early as possible. | |
| 447 | 442 | func (x *FileEnumerator) Close(CancellableVar *Cancellable) (bool, error) { | |
| 448 | - | core.LazyRegister(&xFileEnumeratorClose, "GIO", "g_file_enumerator_close", false) | |
| 449 | 443 | var cerr *glib.Error | |
| 450 | 444 | ||
| 451 | 445 | cret := xFileEnumeratorClose(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| @@ -464,8 +458,6 @@ var xFileEnumeratorCloseAsync func(uintptr, int, uintptr, uintptr, uintptr) | |||
| 464 | 458 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned in | |
| 465 | 459 | // g_file_enumerator_close_finish(). | |
| 466 | 460 | func (x *FileEnumerator) CloseAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 467 | - | core.LazyRegister(&xFileEnumeratorCloseAsync, "GIO", "g_file_enumerator_close_async", false) | |
| 468 | - | ||
| 469 | 461 | xFileEnumeratorCloseAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 470 | 462 | } | |
| 471 | 463 | ||
| @@ -482,7 +474,6 @@ var xFileEnumeratorCloseFinish func(uintptr, uintptr, **glib.Error) bool | |||
| 482 | 474 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be set, and %FALSE will be | |
| 483 | 475 | // returned. | |
| 484 | 476 | func (x *FileEnumerator) CloseFinish(ResultVar AsyncResult) (bool, error) { | |
| 485 | - | core.LazyRegister(&xFileEnumeratorCloseFinish, "GIO", "g_file_enumerator_close_finish", false) | |
| 486 | 477 | var cerr *glib.Error | |
| 487 | 478 | ||
| 488 | 479 | cret := xFileEnumeratorCloseFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| @@ -510,7 +501,6 @@ var xFileEnumeratorGetChild func(uintptr, uintptr) uintptr | |||
| 510 | 501 | // | |
| 511 | 502 | // ]| | |
| 512 | 503 | func (x *FileEnumerator) GetChild(InfoVar *FileInfo) *FileBase { | |
| 513 | - | core.LazyRegister(&xFileEnumeratorGetChild, "GIO", "g_file_enumerator_get_child", false) | |
| 514 | 504 | var cls *FileBase | |
| 515 | 505 | ||
| 516 | 506 | cret := xFileEnumeratorGetChild(x.GoPointer(), InfoVar.GoPointer()) | |
| @@ -527,7 +517,6 @@ var xFileEnumeratorGetContainer func(uintptr) uintptr | |||
| 527 | 517 | ||
| 528 | 518 | // Get the #GFile container which is being enumerated. | |
| 529 | 519 | func (x *FileEnumerator) GetContainer() *FileBase { | |
| 530 | - | core.LazyRegister(&xFileEnumeratorGetContainer, "GIO", "g_file_enumerator_get_container", false) | |
| 531 | 520 | var cls *FileBase | |
| 532 | 521 | ||
| 533 | 522 | cret := xFileEnumeratorGetContainer(x.GoPointer()) | |
| @@ -545,8 +534,6 @@ var xFileEnumeratorHasPending func(uintptr) bool | |||
| 545 | 534 | ||
| 546 | 535 | // Checks if the file enumerator has pending operations. | |
| 547 | 536 | func (x *FileEnumerator) HasPending() bool { | |
| 548 | - | core.LazyRegister(&xFileEnumeratorHasPending, "GIO", "g_file_enumerator_has_pending", false) | |
| 549 | - | ||
| 550 | 537 | cret := xFileEnumeratorHasPending(x.GoPointer()) | |
| 551 | 538 | return cret | |
| 552 | 539 | } | |
| @@ -555,8 +542,6 @@ var xFileEnumeratorIsClosed func(uintptr) bool | |||
| 555 | 542 | ||
| 556 | 543 | // Checks if the file enumerator has been closed. | |
| 557 | 544 | func (x *FileEnumerator) IsClosed() bool { | |
| 558 | - | core.LazyRegister(&xFileEnumeratorIsClosed, "GIO", "g_file_enumerator_is_closed", false) | |
| 559 | - | ||
| 560 | 545 | cret := xFileEnumeratorIsClosed(x.GoPointer()) | |
| 561 | 546 | return cret | |
| 562 | 547 | } | |
| @@ -605,7 +590,6 @@ var xFileEnumeratorIterate func(uintptr, **FileInfo, **File, uintptr, **glib.Err | |||
| 605 | 590 | // | |
| 606 | 591 | // ]| | |
| 607 | 592 | func (x *FileEnumerator) Iterate(OutInfoVar **FileInfo, OutChildVar **File, CancellableVar *Cancellable) (bool, error) { | |
| 608 | - | core.LazyRegister(&xFileEnumeratorIterate, "GIO", "g_file_enumerator_iterate", false) | |
| 609 | 593 | var cerr *glib.Error | |
| 610 | 594 | ||
| 611 | 595 | cret := xFileEnumeratorIterate(x.GoPointer(), OutInfoVar, OutChildVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -629,7 +613,6 @@ var xFileEnumeratorNextFile func(uintptr, uintptr, **glib.Error) uintptr | |||
| 629 | 613 | // enumerator is at the end, %NULL will be returned and @error will | |
| 630 | 614 | // be unset. | |
| 631 | 615 | func (x *FileEnumerator) NextFile(CancellableVar *Cancellable) (*FileInfo, error) { | |
| 632 | - | core.LazyRegister(&xFileEnumeratorNextFile, "GIO", "g_file_enumerator_next_file", false) | |
| 633 | 616 | var cls *FileInfo | |
| 634 | 617 | var cerr *glib.Error | |
| 635 | 618 | ||
| @@ -720,8 +703,6 @@ var xFileEnumeratorNextFilesAsync func(uintptr, int, int, uintptr, uintptr, uint | |||
| 720 | 703 | // be executed before an outstanding request with lower priority. Default | |
| 721 | 704 | // priority is %G_PRIORITY_DEFAULT. | |
| 722 | 705 | func (x *FileEnumerator) NextFilesAsync(NumFilesVar int, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 723 | - | core.LazyRegister(&xFileEnumeratorNextFilesAsync, "GIO", "g_file_enumerator_next_files_async", false) | |
| 724 | - | ||
| 725 | 706 | xFileEnumeratorNextFilesAsync(x.GoPointer(), NumFilesVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 726 | 707 | } | |
| 727 | 708 | ||
| @@ -729,7 +710,6 @@ var xFileEnumeratorNextFilesFinish func(uintptr, uintptr, **glib.Error) uintptr | |||
| 729 | 710 | ||
| 730 | 711 | // Finishes the asynchronous operation started with g_file_enumerator_next_files_async(). | |
| 731 | 712 | func (x *FileEnumerator) NextFilesFinish(ResultVar AsyncResult) (*glib.List, error) { | |
| 732 | - | core.LazyRegister(&xFileEnumeratorNextFilesFinish, "GIO", "g_file_enumerator_next_files_finish", false) | |
| 733 | 713 | var cerr *glib.Error | |
| 734 | 714 | ||
| 735 | 715 | cret := xFileEnumeratorNextFilesFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| @@ -746,8 +726,6 @@ var xFileEnumeratorSetPending func(uintptr, bool) | |||
| 746 | 726 | ||
| 747 | 727 | // Sets the file enumerator as having pending operations. | |
| 748 | 728 | func (x *FileEnumerator) SetPending(PendingVar bool) { | |
| 749 | - | core.LazyRegister(&xFileEnumeratorSetPending, "GIO", "g_file_enumerator_set_pending", false) | |
| 750 | - | ||
| 751 | 729 | xFileEnumeratorSetPending(x.GoPointer(), PendingVar) | |
| 752 | 730 | } | |
| 753 | 731 | ||
| @@ -765,4 +743,27 @@ func (c *FileEnumerator) SetGoPointer(ptr uintptr) { | |||
| 765 | 743 | func init() { | |
| 766 | 744 | core.SetPackageName("GIO", "gio-2.0") | |
| 767 | 745 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | |
| 746 | + | var libs []uintptr | |
| 747 | + | for _, libPath := range core.GetPaths("GIO") { | |
| 748 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 749 | + | if err != nil { | |
| 750 | + | panic(err) | |
| 751 | + | } | |
| 752 | + | libs = append(libs, lib) | |
| 753 | + | } | |
| 754 | + | ||
| 755 | + | core.PuregoSafeRegister(&xFileEnumeratorGLibType, libs, "g_file_enumerator_get_type") | |
| 756 | + | ||
| 757 | + | core.PuregoSafeRegister(&xFileEnumeratorClose, libs, "g_file_enumerator_close") | |
| 758 | + | core.PuregoSafeRegister(&xFileEnumeratorCloseAsync, libs, "g_file_enumerator_close_async") | |
| 759 | + | core.PuregoSafeRegister(&xFileEnumeratorCloseFinish, libs, "g_file_enumerator_close_finish") | |
| 760 | + | core.PuregoSafeRegister(&xFileEnumeratorGetChild, libs, "g_file_enumerator_get_child") | |
| 761 | + | core.PuregoSafeRegister(&xFileEnumeratorGetContainer, libs, "g_file_enumerator_get_container") | |
| 762 | + | core.PuregoSafeRegister(&xFileEnumeratorHasPending, libs, "g_file_enumerator_has_pending") | |
| 763 | + | core.PuregoSafeRegister(&xFileEnumeratorIsClosed, libs, "g_file_enumerator_is_closed") | |
| 764 | + | core.PuregoSafeRegister(&xFileEnumeratorIterate, libs, "g_file_enumerator_iterate") | |
| 765 | + | core.PuregoSafeRegister(&xFileEnumeratorNextFile, libs, "g_file_enumerator_next_file") | |
| 766 | + | core.PuregoSafeRegister(&xFileEnumeratorNextFilesAsync, libs, "g_file_enumerator_next_files_async") | |
| 767 | + | core.PuregoSafeRegister(&xFileEnumeratorNextFilesFinish, libs, "g_file_enumerator_next_files_finish") | |
| 768 | + | core.PuregoSafeRegister(&xFileEnumeratorSetPending, libs, "g_file_enumerator_set_pending") | |
| 768 | 769 | } | |
| @@ -61,7 +61,7 @@ func (x *FileEnumeratorClass) OverrideNextFile(cb func(*FileEnumerator, *Cancell | |||||
| 61 | if cb == nil { | 61 | if cb == nil { | ||
| 62 | x.xNextFile = 0 | 62 | x.xNextFile = 0 | ||
| 63 | } else { | 63 | } else { | ||
| 64 | - | x.xNextFile = purego.NewCallback(func(EnumeratorVarp uintptr, CancellableVarp uintptr, cerrp **glib.Error) uintptr { | 64 | + | x.xNextFile = purego.NewCallback(func(EnumeratorVarp uintptr, CancellableVarp uintptr) uintptr { |
| 65 | ret := cb(FileEnumeratorNewFromInternalPtr(EnumeratorVarp), CancellableNewFromInternalPtr(CancellableVarp)) | 65 | ret := cb(FileEnumeratorNewFromInternalPtr(EnumeratorVarp), CancellableNewFromInternalPtr(CancellableVarp)) | ||
| 66 | if ret == nil { | 66 | if ret == nil { | ||
| 67 | return 0 | 67 | return 0 | ||
| @@ -76,11 +76,10 @@ func (x *FileEnumeratorClass) GetNextFile() func(*FileEnumerator, *Cancellable) | |||||
| 76 | if x.xNextFile == 0 { | 76 | if x.xNextFile == 0 { | ||
| 77 | return nil | 77 | return nil | ||
| 78 | } | 78 | } | ||
| 79 | - | var rawCallback func(EnumeratorVarp uintptr, CancellableVarp uintptr, cerrp **glib.Error) uintptr | 79 | + | var rawCallback func(EnumeratorVarp uintptr, CancellableVarp uintptr) uintptr |
| 80 | purego.RegisterFunc(&rawCallback, x.xNextFile) | 80 | purego.RegisterFunc(&rawCallback, x.xNextFile) | ||
| 81 | return func(EnumeratorVar *FileEnumerator, CancellableVar *Cancellable) *FileInfo { | 81 | return func(EnumeratorVar *FileEnumerator, CancellableVar *Cancellable) *FileInfo { | ||
| 82 | - | var cerr *glib.Error | 82 | + | rawRet := rawCallback(EnumeratorVar.GoPointer(), CancellableVar.GoPointer()) |
| 83 | - | rawRet := rawCallback(EnumeratorVar.GoPointer(), CancellableVar.GoPointer(), &cerr) | |||
| 84 | if rawRet == 0 { | 83 | if rawRet == 0 { | ||
| 85 | return nil | 84 | return nil | ||
| 86 | } | 85 | } | ||
| @@ -95,7 +94,7 @@ func (x *FileEnumeratorClass) OverrideCloseFn(cb func(*FileEnumerator, *Cancella | |||||
| 95 | if cb == nil { | 94 | if cb == nil { | ||
| 96 | x.xCloseFn = 0 | 95 | x.xCloseFn = 0 | ||
| 97 | } else { | 96 | } else { | ||
| 98 | - | x.xCloseFn = purego.NewCallback(func(EnumeratorVarp uintptr, CancellableVarp uintptr, cerrp **glib.Error) bool { | 97 | + | x.xCloseFn = purego.NewCallback(func(EnumeratorVarp uintptr, CancellableVarp uintptr) bool { |
| 99 | return cb(FileEnumeratorNewFromInternalPtr(EnumeratorVarp), CancellableNewFromInternalPtr(CancellableVarp)) | 98 | return cb(FileEnumeratorNewFromInternalPtr(EnumeratorVarp), CancellableNewFromInternalPtr(CancellableVarp)) | ||
| 100 | }) | 99 | }) | ||
| 101 | } | 100 | } | ||
| @@ -106,11 +105,10 @@ func (x *FileEnumeratorClass) GetCloseFn() func(*FileEnumerator, *Cancellable) b | |||||
| 106 | if x.xCloseFn == 0 { | 105 | if x.xCloseFn == 0 { | ||
| 107 | return nil | 106 | return nil | ||
| 108 | } | 107 | } | ||
| 109 | - | var rawCallback func(EnumeratorVarp uintptr, CancellableVarp uintptr, cerrp **glib.Error) bool | 108 | + | var rawCallback func(EnumeratorVarp uintptr, CancellableVarp uintptr) bool |
| 110 | purego.RegisterFunc(&rawCallback, x.xCloseFn) | 109 | purego.RegisterFunc(&rawCallback, x.xCloseFn) | ||
| 111 | return func(EnumeratorVar *FileEnumerator, CancellableVar *Cancellable) bool { | 110 | return func(EnumeratorVar *FileEnumerator, CancellableVar *Cancellable) bool { | ||
| 112 | - | var cerr *glib.Error | 111 | + | return rawCallback(EnumeratorVar.GoPointer(), CancellableVar.GoPointer()) |
| 113 | - | return rawCallback(EnumeratorVar.GoPointer(), CancellableVar.GoPointer(), &cerr) | |||
| 114 | } | 112 | } | ||
| 115 | } | 113 | } | ||
| 116 | 114 | ||||
| @@ -142,7 +140,7 @@ func (x *FileEnumeratorClass) OverrideNextFilesFinish(cb func(*FileEnumerator, A | |||||
| 142 | if cb == nil { | 140 | if cb == nil { | ||
| 143 | x.xNextFilesFinish = 0 | 141 | x.xNextFilesFinish = 0 | ||
| 144 | } else { | 142 | } else { | ||
| 145 | - | x.xNextFilesFinish = purego.NewCallback(func(EnumeratorVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) uintptr { | 143 | + | x.xNextFilesFinish = purego.NewCallback(func(EnumeratorVarp uintptr, ResultVarp uintptr) uintptr { |
| 146 | ret := cb(FileEnumeratorNewFromInternalPtr(EnumeratorVarp), &AsyncResultBase{Ptr: ResultVarp}) | 144 | ret := cb(FileEnumeratorNewFromInternalPtr(EnumeratorVarp), &AsyncResultBase{Ptr: ResultVarp}) | ||
| 147 | if ret == nil { | 145 | if ret == nil { | ||
| 148 | return 0 | 146 | return 0 | ||
| @@ -157,11 +155,10 @@ func (x *FileEnumeratorClass) GetNextFilesFinish() func(*FileEnumerator, AsyncRe | |||||
| 157 | if x.xNextFilesFinish == 0 { | 155 | if x.xNextFilesFinish == 0 { | ||
| 158 | return nil | 156 | return nil | ||
| 159 | } | 157 | } | ||
| 160 | - | var rawCallback func(EnumeratorVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) uintptr | 158 | + | var rawCallback func(EnumeratorVarp uintptr, ResultVarp uintptr) uintptr |
| 161 | purego.RegisterFunc(&rawCallback, x.xNextFilesFinish) | 159 | purego.RegisterFunc(&rawCallback, x.xNextFilesFinish) | ||
| 162 | return func(EnumeratorVar *FileEnumerator, ResultVar AsyncResult) *glib.List { | 160 | return func(EnumeratorVar *FileEnumerator, ResultVar AsyncResult) *glib.List { | ||
| 163 | - | var cerr *glib.Error | 161 | + | rawRet := rawCallback(EnumeratorVar.GoPointer(), ResultVar.GoPointer()) |
| 164 | - | rawRet := rawCallback(EnumeratorVar.GoPointer(), ResultVar.GoPointer(), &cerr) | |||
| 165 | if rawRet == 0 { | 162 | if rawRet == 0 { | ||
| 166 | return nil | 163 | return nil | ||
| 167 | } | 164 | } | ||
| @@ -197,7 +194,7 @@ func (x *FileEnumeratorClass) OverrideCloseFinish(cb func(*FileEnumerator, Async | |||||
| 197 | if cb == nil { | 194 | if cb == nil { | ||
| 198 | x.xCloseFinish = 0 | 195 | x.xCloseFinish = 0 | ||
| 199 | } else { | 196 | } else { | ||
| 200 | - | x.xCloseFinish = purego.NewCallback(func(EnumeratorVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) bool { | 197 | + | x.xCloseFinish = purego.NewCallback(func(EnumeratorVarp uintptr, ResultVarp uintptr) bool { |
| 201 | return cb(FileEnumeratorNewFromInternalPtr(EnumeratorVarp), &AsyncResultBase{Ptr: ResultVarp}) | 198 | return cb(FileEnumeratorNewFromInternalPtr(EnumeratorVarp), &AsyncResultBase{Ptr: ResultVarp}) | ||
| 202 | }) | 199 | }) | ||
| 203 | } | 200 | } | ||
| @@ -208,11 +205,10 @@ func (x *FileEnumeratorClass) GetCloseFinish() func(*FileEnumerator, AsyncResult | |||||
| 208 | if x.xCloseFinish == 0 { | 205 | if x.xCloseFinish == 0 { | ||
| 209 | return nil | 206 | return nil | ||
| 210 | } | 207 | } | ||
| 211 | - | var rawCallback func(EnumeratorVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) bool | 208 | + | var rawCallback func(EnumeratorVarp uintptr, ResultVarp uintptr) bool |
| 212 | purego.RegisterFunc(&rawCallback, x.xCloseFinish) | 209 | purego.RegisterFunc(&rawCallback, x.xCloseFinish) | ||
| 213 | return func(EnumeratorVar *FileEnumerator, ResultVar AsyncResult) bool { | 210 | return func(EnumeratorVar *FileEnumerator, ResultVar AsyncResult) bool { | ||
| 214 | - | var cerr *glib.Error | 211 | + | return rawCallback(EnumeratorVar.GoPointer(), ResultVar.GoPointer()) |
| 215 | - | return rawCallback(EnumeratorVar.GoPointer(), ResultVar.GoPointer(), &cerr) | |||
| 216 | } | 212 | } | ||
| 217 | } | 213 | } | ||
| 218 | 214 | ||||
| @@ -426,7 +422,6 @@ type FileEnumerator struct { | |||||
| 426 | var xFileEnumeratorGLibType func() types.GType | 422 | var xFileEnumeratorGLibType func() types.GType | ||
| 427 | 423 | ||||
| 428 | func FileEnumeratorGLibType() types.GType { | 424 | func FileEnumeratorGLibType() types.GType { | ||
| 429 | - | core.LazyRegister(&xFileEnumeratorGLibType, "GIO", "g_file_enumerator_get_type", false) | |||
| 430 | return xFileEnumeratorGLibType() | 425 | return xFileEnumeratorGLibType() | ||
| 431 | } | 426 | } | ||
| 432 | 427 | ||||
| @@ -445,7 +440,6 @@ var xFileEnumeratorClose func(uintptr, uintptr, **glib.Error) bool | |||||
| 445 | // is dropped, but you might want to call this function to make | 440 | // is dropped, but you might want to call this function to make | ||
| 446 | // sure resources are released as early as possible. | 441 | // sure resources are released as early as possible. | ||
| 447 | func (x *FileEnumerator) Close(CancellableVar *Cancellable) (bool, error) { | 442 | func (x *FileEnumerator) Close(CancellableVar *Cancellable) (bool, error) { | ||
| 448 | - | core.LazyRegister(&xFileEnumeratorClose, "GIO", "g_file_enumerator_close", false) | |||
| 449 | var cerr *glib.Error | 443 | var cerr *glib.Error | ||
| 450 | 444 | ||||
| 451 | cret := xFileEnumeratorClose(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | 445 | cret := xFileEnumeratorClose(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | ||
| @@ -464,8 +458,6 @@ var xFileEnumeratorCloseAsync func(uintptr, int, uintptr, uintptr, uintptr) | |||||
| 464 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned in | 458 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned in | ||
| 465 | // g_file_enumerator_close_finish(). | 459 | // g_file_enumerator_close_finish(). | ||
| 466 | func (x *FileEnumerator) CloseAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 460 | func (x *FileEnumerator) CloseAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 467 | - | core.LazyRegister(&xFileEnumeratorCloseAsync, "GIO", "g_file_enumerator_close_async", false) | |||
| 468 | - | ||||
| 469 | xFileEnumeratorCloseAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 461 | xFileEnumeratorCloseAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 470 | } | 462 | } | ||
| 471 | 463 | ||||
| @@ -482,7 +474,6 @@ var xFileEnumeratorCloseFinish func(uintptr, uintptr, **glib.Error) bool | |||||
| 482 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be set, and %FALSE will be | 474 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be set, and %FALSE will be | ||
| 483 | // returned. | 475 | // returned. | ||
| 484 | func (x *FileEnumerator) CloseFinish(ResultVar AsyncResult) (bool, error) { | 476 | func (x *FileEnumerator) CloseFinish(ResultVar AsyncResult) (bool, error) { | ||
| 485 | - | core.LazyRegister(&xFileEnumeratorCloseFinish, "GIO", "g_file_enumerator_close_finish", false) | |||
| 486 | var cerr *glib.Error | 477 | var cerr *glib.Error | ||
| 487 | 478 | ||||
| 488 | cret := xFileEnumeratorCloseFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | 479 | cret := xFileEnumeratorCloseFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | ||
| @@ -510,7 +501,6 @@ var xFileEnumeratorGetChild func(uintptr, uintptr) uintptr | |||||
| 510 | // | 501 | // | ||
| 511 | // ]| | 502 | // ]| | ||
| 512 | func (x *FileEnumerator) GetChild(InfoVar *FileInfo) *FileBase { | 503 | func (x *FileEnumerator) GetChild(InfoVar *FileInfo) *FileBase { | ||
| 513 | - | core.LazyRegister(&xFileEnumeratorGetChild, "GIO", "g_file_enumerator_get_child", false) | |||
| 514 | var cls *FileBase | 504 | var cls *FileBase | ||
| 515 | 505 | ||||
| 516 | cret := xFileEnumeratorGetChild(x.GoPointer(), InfoVar.GoPointer()) | 506 | cret := xFileEnumeratorGetChild(x.GoPointer(), InfoVar.GoPointer()) | ||
| @@ -527,7 +517,6 @@ var xFileEnumeratorGetContainer func(uintptr) uintptr | |||||
| 527 | 517 | ||||
| 528 | // Get the #GFile container which is being enumerated. | 518 | // Get the #GFile container which is being enumerated. | ||
| 529 | func (x *FileEnumerator) GetContainer() *FileBase { | 519 | func (x *FileEnumerator) GetContainer() *FileBase { | ||
| 530 | - | core.LazyRegister(&xFileEnumeratorGetContainer, "GIO", "g_file_enumerator_get_container", false) | |||
| 531 | var cls *FileBase | 520 | var cls *FileBase | ||
| 532 | 521 | ||||
| 533 | cret := xFileEnumeratorGetContainer(x.GoPointer()) | 522 | cret := xFileEnumeratorGetContainer(x.GoPointer()) | ||
| @@ -545,8 +534,6 @@ var xFileEnumeratorHasPending func(uintptr) bool | |||||
| 545 | 534 | ||||
| 546 | // Checks if the file enumerator has pending operations. | 535 | // Checks if the file enumerator has pending operations. | ||
| 547 | func (x *FileEnumerator) HasPending() bool { | 536 | func (x *FileEnumerator) HasPending() bool { | ||
| 548 | - | core.LazyRegister(&xFileEnumeratorHasPending, "GIO", "g_file_enumerator_has_pending", false) | |||
| 549 | - | ||||
| 550 | cret := xFileEnumeratorHasPending(x.GoPointer()) | 537 | cret := xFileEnumeratorHasPending(x.GoPointer()) | ||
| 551 | return cret | 538 | return cret | ||
| 552 | } | 539 | } | ||
| @@ -555,8 +542,6 @@ var xFileEnumeratorIsClosed func(uintptr) bool | |||||
| 555 | 542 | ||||
| 556 | // Checks if the file enumerator has been closed. | 543 | // Checks if the file enumerator has been closed. | ||
| 557 | func (x *FileEnumerator) IsClosed() bool { | 544 | func (x *FileEnumerator) IsClosed() bool { | ||
| 558 | - | core.LazyRegister(&xFileEnumeratorIsClosed, "GIO", "g_file_enumerator_is_closed", false) | |||
| 559 | - | ||||
| 560 | cret := xFileEnumeratorIsClosed(x.GoPointer()) | 545 | cret := xFileEnumeratorIsClosed(x.GoPointer()) | ||
| 561 | return cret | 546 | return cret | ||
| 562 | } | 547 | } | ||
| @@ -605,7 +590,6 @@ var xFileEnumeratorIterate func(uintptr, **FileInfo, **File, uintptr, **glib.Err | |||||
| 605 | // | 590 | // | ||
| 606 | // ]| | 591 | // ]| | ||
| 607 | func (x *FileEnumerator) Iterate(OutInfoVar **FileInfo, OutChildVar **File, CancellableVar *Cancellable) (bool, error) { | 592 | func (x *FileEnumerator) Iterate(OutInfoVar **FileInfo, OutChildVar **File, CancellableVar *Cancellable) (bool, error) { | ||
| 608 | - | core.LazyRegister(&xFileEnumeratorIterate, "GIO", "g_file_enumerator_iterate", false) | |||
| 609 | var cerr *glib.Error | 593 | var cerr *glib.Error | ||
| 610 | 594 | ||||
| 611 | cret := xFileEnumeratorIterate(x.GoPointer(), OutInfoVar, OutChildVar, CancellableVar.GoPointer(), &cerr) | 595 | cret := xFileEnumeratorIterate(x.GoPointer(), OutInfoVar, OutChildVar, CancellableVar.GoPointer(), &cerr) | ||
| @@ -629,7 +613,6 @@ var xFileEnumeratorNextFile func(uintptr, uintptr, **glib.Error) uintptr | |||||
| 629 | // enumerator is at the end, %NULL will be returned and @error will | 613 | // enumerator is at the end, %NULL will be returned and @error will | ||
| 630 | // be unset. | 614 | // be unset. | ||
| 631 | func (x *FileEnumerator) NextFile(CancellableVar *Cancellable) (*FileInfo, error) { | 615 | func (x *FileEnumerator) NextFile(CancellableVar *Cancellable) (*FileInfo, error) { | ||
| 632 | - | core.LazyRegister(&xFileEnumeratorNextFile, "GIO", "g_file_enumerator_next_file", false) | |||
| 633 | var cls *FileInfo | 616 | var cls *FileInfo | ||
| 634 | var cerr *glib.Error | 617 | var cerr *glib.Error | ||
| 635 | 618 | ||||
| @@ -720,8 +703,6 @@ var xFileEnumeratorNextFilesAsync func(uintptr, int, int, uintptr, uintptr, uint | |||||
| 720 | // be executed before an outstanding request with lower priority. Default | 703 | // be executed before an outstanding request with lower priority. Default | ||
| 721 | // priority is %G_PRIORITY_DEFAULT. | 704 | // priority is %G_PRIORITY_DEFAULT. | ||
| 722 | func (x *FileEnumerator) NextFilesAsync(NumFilesVar int, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 705 | func (x *FileEnumerator) NextFilesAsync(NumFilesVar int, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 723 | - | core.LazyRegister(&xFileEnumeratorNextFilesAsync, "GIO", "g_file_enumerator_next_files_async", false) | |||
| 724 | - | ||||
| 725 | xFileEnumeratorNextFilesAsync(x.GoPointer(), NumFilesVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 706 | xFileEnumeratorNextFilesAsync(x.GoPointer(), NumFilesVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 726 | } | 707 | } | ||
| 727 | 708 | ||||
| @@ -729,7 +710,6 @@ var xFileEnumeratorNextFilesFinish func(uintptr, uintptr, **glib.Error) uintptr | |||||
| 729 | 710 | ||||
| 730 | // Finishes the asynchronous operation started with g_file_enumerator_next_files_async(). | 711 | // Finishes the asynchronous operation started with g_file_enumerator_next_files_async(). | ||
| 731 | func (x *FileEnumerator) NextFilesFinish(ResultVar AsyncResult) (*glib.List, error) { | 712 | func (x *FileEnumerator) NextFilesFinish(ResultVar AsyncResult) (*glib.List, error) { | ||
| 732 | - | core.LazyRegister(&xFileEnumeratorNextFilesFinish, "GIO", "g_file_enumerator_next_files_finish", false) | |||
| 733 | var cerr *glib.Error | 713 | var cerr *glib.Error | ||
| 734 | 714 | ||||
| 735 | cret := xFileEnumeratorNextFilesFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | 715 | cret := xFileEnumeratorNextFilesFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | ||
| @@ -746,8 +726,6 @@ var xFileEnumeratorSetPending func(uintptr, bool) | |||||
| 746 | 726 | ||||
| 747 | // Sets the file enumerator as having pending operations. | 727 | // Sets the file enumerator as having pending operations. | ||
| 748 | func (x *FileEnumerator) SetPending(PendingVar bool) { | 728 | func (x *FileEnumerator) SetPending(PendingVar bool) { | ||
| 749 | - | core.LazyRegister(&xFileEnumeratorSetPending, "GIO", "g_file_enumerator_set_pending", false) | |||
| 750 | - | ||||
| 751 | xFileEnumeratorSetPending(x.GoPointer(), PendingVar) | 729 | xFileEnumeratorSetPending(x.GoPointer(), PendingVar) | ||
| 752 | } | 730 | } | ||
| 753 | 731 | ||||
| @@ -765,4 +743,27 @@ func (c *FileEnumerator) SetGoPointer(ptr uintptr) { | |||||
| 765 | func init() { | 743 | func init() { | ||
| 766 | core.SetPackageName("GIO", "gio-2.0") | 744 | core.SetPackageName("GIO", "gio-2.0") | ||
| 767 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | 745 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | ||
| 746 | + | var libs []uintptr | |||
| 747 | + | for _, libPath := range core.GetPaths("GIO") { | |||
| 748 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 749 | + | if err != nil { | |||
| 750 | + | panic(err) | |||
| 751 | + | } | |||
| 752 | + | libs = append(libs, lib) | |||
| 753 | + | } | |||
| 754 | + | ||||
| 755 | + | core.PuregoSafeRegister(&xFileEnumeratorGLibType, libs, "g_file_enumerator_get_type") | |||
| 756 | + | ||||
| 757 | + | core.PuregoSafeRegister(&xFileEnumeratorClose, libs, "g_file_enumerator_close") | |||
| 758 | + | core.PuregoSafeRegister(&xFileEnumeratorCloseAsync, libs, "g_file_enumerator_close_async") | |||
| 759 | + | core.PuregoSafeRegister(&xFileEnumeratorCloseFinish, libs, "g_file_enumerator_close_finish") | |||
| 760 | + | core.PuregoSafeRegister(&xFileEnumeratorGetChild, libs, "g_file_enumerator_get_child") | |||
| 761 | + | core.PuregoSafeRegister(&xFileEnumeratorGetContainer, libs, "g_file_enumerator_get_container") | |||
| 762 | + | core.PuregoSafeRegister(&xFileEnumeratorHasPending, libs, "g_file_enumerator_has_pending") | |||
| 763 | + | core.PuregoSafeRegister(&xFileEnumeratorIsClosed, libs, "g_file_enumerator_is_closed") | |||
| 764 | + | core.PuregoSafeRegister(&xFileEnumeratorIterate, libs, "g_file_enumerator_iterate") | |||
| 765 | + | core.PuregoSafeRegister(&xFileEnumeratorNextFile, libs, "g_file_enumerator_next_file") | |||
| 766 | + | core.PuregoSafeRegister(&xFileEnumeratorNextFilesAsync, libs, "g_file_enumerator_next_files_async") | |||
| 767 | + | core.PuregoSafeRegister(&xFileEnumeratorNextFilesFinish, libs, "g_file_enumerator_next_files_finish") | |||
| 768 | + | core.PuregoSafeRegister(&xFileEnumeratorSetPending, libs, "g_file_enumerator_set_pending") | |||
| 768 | } | 769 | } | ||