Merge pull request #349 from bnema/fix/rollback-lazy-puregotk
fix(deps): emergency rollback puregotk lazy registration regression
905 files · +25263 -27842
M go.mod +1 -1
| @@ -11,7 +11,7 @@ require ( | |||
| 11 | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | |
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | |
| 14 | + | github.com/bnema/puregotk v0.7.0 | |
| 15 | 15 | github.com/charmbracelet/bubbles v1.0.0 | |
| 16 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 17 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -11,7 +11,7 @@ require ( | |||||
| 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | ||
| 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | ||
| 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | ||
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | 14 | + | github.com/bnema/puregotk v0.7.0 |
| 15 | github.com/charmbracelet/bubbles v1.0.0 | 15 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 16 | github.com/charmbracelet/bubbletea v1.3.10 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 17 | github.com/charmbracelet/lipgloss v1.1.0 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | ||
M go.sum +0 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +4 -197 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +0 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +64 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +62 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +29 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +47 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +27 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +25 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +26 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +38 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +37 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +37 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +33 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +38 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +48 -61 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +24 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +17 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +56 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +15 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +44 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +49 -60 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +38 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +33 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +29 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +27 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +39 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +34 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +30 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +21 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +44 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +24 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +28 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +30 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +32 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +87 -123 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +28 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +36 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +51 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +35 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +62 -78 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +22 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +46 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +46 -57 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/cairo/main.go +79 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +25 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +32 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +31 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +28 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +22 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +43 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +41 -53 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +28 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +24 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +1 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +118 -120 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +20 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +36 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +35 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +22 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +35 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmonitor.go +27 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpaintable.go +33 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +26 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +21 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +20 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +40 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +66 -157 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +25 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +16 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +72 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +32 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-core.go +0 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-io.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-loader.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-transform.go +1 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf.go +79 -102 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/main.go +17 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gaction.go +31 -59 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactiongroup.go +39 -96 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactionmap.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gappinfo.go +116 -244 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplication.go +55 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplicationcommandline.go +27 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncinitable.go +22 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncresult.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedinputstream.go +29 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedoutputstream.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbytesicon.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcancellable.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcharsetconverter.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcontenttype.go +26 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverter.go +20 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverterinputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverteroutputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcredentials.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatagrambased.go +30 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatainputstream.go +35 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdataoutputstream.go +23 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusactiongroup.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusaddress.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusauthobserver.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusconnection.go +66 -77 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbuserror.go +18 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterface.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterfaceskeleton.go +24 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusintrospection.go +56 -54 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmenumodel.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmessage.go +64 -88 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmethodinvocation.go +30 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnameowning.go +15 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnamewatching.go +15 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobject.go +17 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanager.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerclient.go +23 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerserver.go +20 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectproxy.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectskeleton.go +18 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusproxy.go +38 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusserver.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusutils.go +22 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontroller.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontrollerdbus.go +14 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdrive.go +82 -214 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsclientconnection.go +24 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsconnection.go +80 -207 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsserverconnection.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblem.go +17 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblemedicon.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfile.go +450 -1148 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileattribute.go +19 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileenumerator.go +35 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileicon.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinfo.go +84 -138 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinputstream.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileiostream.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilemonitor.go +15 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilenamecompleter.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileoutputstream.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilterinputstream.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilteroutputstream.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gicon.go +25 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddress.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddressmask.go +21 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetsocketaddress.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginitable.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginputstream.go +48 -52 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioenums.go +1 -90 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioerror.go +13 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giomodule.go +29 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioscheduler.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giostream.go +29 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giotypes.go +60 -70 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giptosmessage.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gipv6tclassmessage.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/glistmodel.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gliststore.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gloadableicon.go +23 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryinputstream.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemorymonitor.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryoutputstream.go +19 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenu.go +50 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenumodel.go +33 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmount.go +86 -215 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmountoperation.go +32 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativesocketaddress.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativevolumemonitor.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkaddress.go +21 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworking.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkmonitor.go +31 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkservice.go +19 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnotification.go +26 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/goutputstream.go +72 -86 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpermission.go +33 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableinputstream.go +22 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableoutputstream.go +27 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableutils.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpowerprofilemonitor.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpropertyaction.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxy.go +27 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddress.go +21 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddressenumerator.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyresolver.go +27 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gremoteactiongroup.go +15 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresolver.go +67 -75 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresource.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gseekable.go +27 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettings.go +67 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsbackend.go +24 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsschema.go +43 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleaction.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleactiongroup.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleasyncresult.go +40 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleiostream.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimplepermission.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleproxyresolver.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocket.go +72 -87 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddress.go +19 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddressenumerator.go +20 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketclient.go +44 -54 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnectable.go +17 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnection.go +21 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketcontrolmessage.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketlistener.go +25 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketservice.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsrvtarget.go +11 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocess.go +39 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocesslauncher.go +31 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtask.go +52 -70 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpconnection.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpwrapperconnection.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtestdbus.go +22 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthemedicon.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedresolver.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedsocketservice.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsbackend.go +33 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlscertificate.go +29 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsclientconnection.go +29 -55 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsconnection.go +46 -56 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsdatabase.go +48 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsfiledatabase.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsinteraction.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlspassword.go +22 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsserverconnection.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixconnection.go +20 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixcredentialsmessage.go +17 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixfdlist.go +19 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixsocketaddress.go +22 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvfs.go +24 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolume.go +58 -143 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolumemonitor.go +19 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibcompressor.go +18 -9 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibdecompressor.go +15 -3 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/main.go +11 -2 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gallocator.go +28 -32 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/garray.go +59 -82 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gasyncqueue.go +39 -56 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gatomic.go +34 -43 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbacktrace.go +15 -5 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbase64.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbitlock.go +24 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbookmarkfile.go +61 -69 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcache.go +15 -10 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcharset.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gchecksum.go +25 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcompletion.go +17 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gconvert.go +28 -25 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdataset.go +28 -36 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdate.go +65 -103 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdatetime.go +66 -107 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdir.go +19 -12 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/genviron.go +21 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gerror.go +29 -30 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gfileutils.go +38 -45 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ggettext.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghash.go +53 -81 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghmac.go +24 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghook.go +26 -28 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghostutils.go +18 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/giochannel.go +67 -83 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gkeyfile.go +62 -72 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/glib-types.go +12 -4 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/glist.go +11 -2 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmain.go +117 -181 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmappedfile.go +21 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmarkup.go +43 -51 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmem.go +31 -44 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmessages.go +45 -70 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gnode.go +35 -50 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/goption.go +43 -57 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpathbuf.go +24 -26 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpattern.go +23 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpoll.go +13 -3 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gprimes.go +14 -3 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gprintf.go +20 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gqsort.go +15 -5 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gquark.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gqueue.go +52 -84 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grand.go +30 -33 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grcbox.go +27 -29 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grefcount.go +21 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grefstring.go +20 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gregex.go +57 -72 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grel.go +21 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gscanner.go +30 -40 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gsequence.go +49 -74 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gshell.go +16 -5 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gslice.go +21 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gslist.go +11 -2 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gspawn.go +23 -12 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstdio.go +27 -33 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstrfuncs.go +71 -115 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstring.go +51 -77 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstringchunk.go +15 -10 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstrvbuilder.go +22 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtestutils.go +80 -132 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gthread.go +97 -146 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gthreadpool.go +25 -26 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtimer.go +20 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtimezone.go +26 -27 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtrashstack.go +14 -8 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtree.go +45 -63 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtypes.go +12 -4 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gunicode.go +85 -132 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/guri.go +50 -63 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gutils.go +41 -62 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/guuid.go +15 -5 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gvariant-parser.go +14 -3 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gvariant.go +143 -242 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gvarianttype.go +45 -63 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gversion.go +14 -3 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/main.go +28 -31 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gmodule/gmodule.go +18 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gmodule/main.go +11 -2 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gbinding.go +22 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gbindinggroup.go +19 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gboxed.go +13 -6 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gclosure.go +31 -37
| @@ -131,7 +131,6 @@ type Closure struct { | |||
| 131 | 131 | var xClosureGLibType func() types.GType | |
| 132 | 132 | ||
| 133 | 133 | func ClosureGLibType() types.GType { | |
| 134 | - | core.LazyRegister(&xClosureGLibType, "GOBJECT", "g_closure_get_type", false) | |
| 135 | 134 | return xClosureGLibType() | |
| 136 | 135 | } | |
| 137 | 136 | ||
| @@ -154,8 +153,6 @@ var xNewClosureObject func(uint, uintptr) uintptr | |||
| 154 | 153 | // @object and the created closure. This function is mainly useful | |
| 155 | 154 | // when implementing new types of closures. | |
| 156 | 155 | func NewClosureObject(SizeofClosureVar uint, ObjectVar *Object) *Closure { | |
| 157 | - | core.LazyRegister(&xNewClosureObject, "GOBJECT", "g_closure_new_object", false) | |
| 158 | - | ||
| 159 | 156 | cret := xNewClosureObject(SizeofClosureVar, ObjectVar.GoPointer()) | |
| 160 | 157 | if cret == 0 { | |
| 161 | 158 | return nil | |
| @@ -208,8 +205,6 @@ var xNewClosureSimple func(uint, uintptr) uintptr | |||
| 208 | 205 | // | |
| 209 | 206 | // ]| | |
| 210 | 207 | func NewClosureSimple(SizeofClosureVar uint, DataVar uintptr) *Closure { | |
| 211 | - | core.LazyRegister(&xNewClosureSimple, "GOBJECT", "g_closure_new_simple", false) | |
| 212 | - | ||
| 213 | 208 | cret := xNewClosureSimple(SizeofClosureVar, DataVar) | |
| 214 | 209 | if cret == 0 { | |
| 215 | 210 | return nil | |
| @@ -227,8 +222,6 @@ var xClosureAddFinalizeNotifier func(uintptr, uintptr, uintptr) | |||
| 227 | 222 | // the closure being both invalidated and finalized, then the invalidate | |
| 228 | 223 | // notifiers will be run before the finalize notifiers. | |
| 229 | 224 | func (x *Closure) AddFinalizeNotifier(NotifyDataVar uintptr, NotifyFuncVar *ClosureNotify) { | |
| 230 | - | core.LazyRegister(&xClosureAddFinalizeNotifier, "GOBJECT", "g_closure_add_finalize_notifier", false) | |
| 231 | - | ||
| 232 | 225 | xClosureAddFinalizeNotifier(x.GoPointer(), NotifyDataVar, glib.NewCallbackNullable(NotifyFuncVar)) | |
| 233 | 226 | } | |
| 234 | 227 | ||
| @@ -240,8 +233,6 @@ var xClosureAddInvalidateNotifier func(uintptr, uintptr, uintptr) | |||
| 240 | 233 | // Invalidation notifiers are invoked before finalization notifiers, | |
| 241 | 234 | // in an unspecified order. | |
| 242 | 235 | func (x *Closure) AddInvalidateNotifier(NotifyDataVar uintptr, NotifyFuncVar *ClosureNotify) { | |
| 243 | - | core.LazyRegister(&xClosureAddInvalidateNotifier, "GOBJECT", "g_closure_add_invalidate_notifier", false) | |
| 244 | - | ||
| 245 | 236 | xClosureAddInvalidateNotifier(x.GoPointer(), NotifyDataVar, glib.NewCallbackNullable(NotifyFuncVar)) | |
| 246 | 237 | } | |
| 247 | 238 | ||
| @@ -254,8 +245,6 @@ var xClosureAddMarshalGuards func(uintptr, uintptr, uintptr, uintptr, uintptr) | |||
| 254 | 245 | // duration of the callback. See g_object_watch_closure() for an | |
| 255 | 246 | // example of marshal guards. | |
| 256 | 247 | func (x *Closure) AddMarshalGuards(PreMarshalDataVar uintptr, PreMarshalNotifyVar *ClosureNotify, PostMarshalDataVar uintptr, PostMarshalNotifyVar *ClosureNotify) { | |
| 257 | - | core.LazyRegister(&xClosureAddMarshalGuards, "GOBJECT", "g_closure_add_marshal_guards", false) | |
| 258 | - | ||
| 259 | 248 | xClosureAddMarshalGuards(x.GoPointer(), PreMarshalDataVar, glib.NewCallbackNullable(PreMarshalNotifyVar), PostMarshalDataVar, glib.NewCallbackNullable(PostMarshalNotifyVar)) | |
| 260 | 249 | } | |
| 261 | 250 | ||
| @@ -277,8 +266,6 @@ var xClosureInvalidate func(uintptr) | |||
| 277 | 266 | // reference count of a closure drops to zero (unless it has already | |
| 278 | 267 | // been invalidated before). | |
| 279 | 268 | func (x *Closure) Invalidate() { | |
| 280 | - | core.LazyRegister(&xClosureInvalidate, "GOBJECT", "g_closure_invalidate", false) | |
| 281 | - | ||
| 282 | 269 | xClosureInvalidate(x.GoPointer()) | |
| 283 | 270 | } | |
| 284 | 271 | ||
| @@ -286,8 +273,6 @@ var xClosureInvoke func(uintptr, *Value, uint, []Value, uintptr) | |||
| 286 | 273 | ||
| 287 | 274 | // Invokes the closure, i.e. executes the callback represented by the @closure. | |
| 288 | 275 | func (x *Closure) Invoke(ReturnValueVar *Value, NParamValuesVar uint, ParamValuesVar []Value, InvocationHintVar uintptr) { | |
| 289 | - | core.LazyRegister(&xClosureInvoke, "GOBJECT", "g_closure_invoke", false) | |
| 290 | - | ||
| 291 | 276 | xClosureInvoke(x.GoPointer(), ReturnValueVar, NParamValuesVar, ParamValuesVar, InvocationHintVar) | |
| 292 | 277 | } | |
| 293 | 278 | ||
| @@ -296,8 +281,6 @@ var xClosureRef func(uintptr) uintptr | |||
| 296 | 281 | // Increments the reference count on a closure to force it staying | |
| 297 | 282 | // alive while the caller holds a pointer to it. | |
| 298 | 283 | func (x *Closure) Ref() *Closure { | |
| 299 | - | core.LazyRegister(&xClosureRef, "GOBJECT", "g_closure_ref", false) | |
| 300 | - | ||
| 301 | 284 | cret := xClosureRef(x.GoPointer()) | |
| 302 | 285 | if cret == 0 { | |
| 303 | 286 | return nil | |
| @@ -311,8 +294,6 @@ var xClosureRemoveFinalizeNotifier func(uintptr, uintptr, uintptr) | |||
| 311 | 294 | // | |
| 312 | 295 | // Notice that notifiers are automatically removed after they are run. | |
| 313 | 296 | func (x *Closure) RemoveFinalizeNotifier(NotifyDataVar uintptr, NotifyFuncVar *ClosureNotify) { | |
| 314 | - | core.LazyRegister(&xClosureRemoveFinalizeNotifier, "GOBJECT", "g_closure_remove_finalize_notifier", false) | |
| 315 | - | ||
| 316 | 297 | xClosureRemoveFinalizeNotifier(x.GoPointer(), NotifyDataVar, glib.NewCallbackNullable(NotifyFuncVar)) | |
| 317 | 298 | } | |
| 318 | 299 | ||
| @@ -322,8 +303,6 @@ var xClosureRemoveInvalidateNotifier func(uintptr, uintptr, uintptr) | |||
| 322 | 303 | // | |
| 323 | 304 | // Notice that notifiers are automatically removed after they are run. | |
| 324 | 305 | func (x *Closure) RemoveInvalidateNotifier(NotifyDataVar uintptr, NotifyFuncVar *ClosureNotify) { | |
| 325 | - | core.LazyRegister(&xClosureRemoveInvalidateNotifier, "GOBJECT", "g_closure_remove_invalidate_notifier", false) | |
| 326 | - | ||
| 327 | 306 | xClosureRemoveInvalidateNotifier(x.GoPointer(), NotifyDataVar, glib.NewCallbackNullable(NotifyFuncVar)) | |
| 328 | 307 | } | |
| 329 | 308 | ||
| @@ -340,8 +319,6 @@ var xClosureSetMarshal func(uintptr, uintptr) | |||
| 340 | 319 | // | |
| 341 | 320 | // See also: g_closure_set_meta_marshal() | |
| 342 | 321 | func (x *Closure) SetMarshal(MarshalVar *ClosureMarshal) { | |
| 343 | - | core.LazyRegister(&xClosureSetMarshal, "GOBJECT", "g_closure_set_marshal", false) | |
| 344 | - | ||
| 345 | 322 | xClosureSetMarshal(x.GoPointer(), glib.NewCallback(MarshalVar)) | |
| 346 | 323 | } | |
| 347 | 324 | ||
| @@ -365,8 +342,6 @@ var xClosureSetMetaMarshal func(uintptr, uintptr, uintptr) | |||
| 365 | 342 | // the right callback and passes it to the marshaller as the | |
| 366 | 343 | // @marshal_data argument. | |
| 367 | 344 | func (x *Closure) SetMetaMarshal(MarshalDataVar uintptr, MetaMarshalVar *ClosureMarshal) { | |
| 368 | - | core.LazyRegister(&xClosureSetMetaMarshal, "GOBJECT", "g_closure_set_meta_marshal", false) | |
| 369 | - | ||
| 370 | 345 | xClosureSetMetaMarshal(x.GoPointer(), MarshalDataVar, glib.NewCallback(MetaMarshalVar)) | |
| 371 | 346 | } | |
| 372 | 347 | ||
| @@ -422,8 +397,6 @@ var xClosureSink func(uintptr) | |||
| 422 | 397 | // (if it hasn't been called on @closure yet) just like g_closure_unref(), | |
| 423 | 398 | // g_closure_ref() should be called prior to this function. | |
| 424 | 399 | func (x *Closure) Sink() { | |
| 425 | - | core.LazyRegister(&xClosureSink, "GOBJECT", "g_closure_sink", false) | |
| 426 | - | ||
| 427 | 400 | xClosureSink(x.GoPointer()) | |
| 428 | 401 | } | |
| 429 | 402 | ||
| @@ -435,8 +408,6 @@ var xClosureUnref func(uintptr) | |||
| 435 | 408 | // If no other callers are using the closure, then the closure will be | |
| 436 | 409 | // destroyed and freed. | |
| 437 | 410 | func (x *Closure) Unref() { | |
| 438 | - | core.LazyRegister(&xClosureUnref, "GOBJECT", "g_closure_unref", false) | |
| 439 | - | ||
| 440 | 411 | xClosureUnref(x.GoPointer()) | |
| 441 | 412 | } | |
| 442 | 413 | ||
| @@ -491,8 +462,6 @@ var xCclosureMarshalGeneric func(*Closure, *Value, uint, *Value, uintptr, uintpt | |||
| 491 | 462 | // Normally this function is not passed explicitly to g_signal_new(), | |
| 492 | 463 | // but used automatically by GLib when specifying a %NULL marshaller. | |
| 493 | 464 | func CclosureMarshalGeneric(ClosureVar *Closure, ReturnGvalueVar *Value, NParamValuesVar uint, ParamValuesVar *Value, InvocationHintVar uintptr, MarshalDataVar uintptr) { | |
| 494 | - | core.LazyRegister(&xCclosureMarshalGeneric, "GOBJECT", "g_cclosure_marshal_generic", false) | |
| 495 | - | ||
| 496 | 465 | xCclosureMarshalGeneric(ClosureVar, ReturnGvalueVar, NParamValuesVar, ParamValuesVar, InvocationHintVar, MarshalDataVar) | |
| 497 | 466 | } | |
| 498 | 467 | ||
| @@ -503,8 +472,6 @@ var xCclosureNew func(uintptr, uintptr, uintptr) uintptr | |||
| 503 | 472 | // | |
| 504 | 473 | // @destroy_data will be called as a finalize notifier on the #GClosure. | |
| 505 | 474 | func CclosureNew(CallbackFuncVar *Callback, UserDataVar uintptr, DestroyDataVar *ClosureNotify) *Closure { | |
| 506 | - | core.LazyRegister(&xCclosureNew, "GOBJECT", "g_cclosure_new", false) | |
| 507 | - | ||
| 508 | 475 | cret := xCclosureNew(glib.NewCallback(CallbackFuncVar), UserDataVar, glib.NewCallbackNullable(DestroyDataVar)) | |
| 509 | 476 | if cret == 0 { | |
| 510 | 477 | return nil | |
| @@ -519,8 +486,6 @@ var xCclosureNewSwap func(uintptr, uintptr, uintptr) uintptr | |||
| 519 | 486 | // | |
| 520 | 487 | // @destroy_data will be called as a finalize notifier on the #GClosure. | |
| 521 | 488 | func CclosureNewSwap(CallbackFuncVar *Callback, UserDataVar uintptr, DestroyDataVar *ClosureNotify) *Closure { | |
| 522 | - | core.LazyRegister(&xCclosureNewSwap, "GOBJECT", "g_cclosure_new_swap", false) | |
| 523 | - | ||
| 524 | 489 | cret := xCclosureNewSwap(glib.NewCallback(CallbackFuncVar), UserDataVar, glib.NewCallbackNullable(DestroyDataVar)) | |
| 525 | 490 | if cret == 0 { | |
| 526 | 491 | return nil | |
| @@ -534,8 +499,6 @@ var xSignalTypeCclosureNew func(types.GType, uint) uintptr | |||
| 534 | 499 | // @struct_offset in the class structure of the interface or classed type | |
| 535 | 500 | // identified by @itype. | |
| 536 | 501 | func SignalTypeCclosureNew(ItypeVar types.GType, StructOffsetVar uint) *Closure { | |
| 537 | - | core.LazyRegister(&xSignalTypeCclosureNew, "GOBJECT", "g_signal_type_cclosure_new", false) | |
| 538 | - | ||
| 539 | 502 | cret := xSignalTypeCclosureNew(ItypeVar, StructOffsetVar) | |
| 540 | 503 | if cret == 0 { | |
| 541 | 504 | return nil | |
| @@ -546,4 +509,35 @@ func SignalTypeCclosureNew(ItypeVar types.GType, StructOffsetVar uint) *Closure | |||
| 546 | 509 | func init() { | |
| 547 | 510 | core.SetPackageName("GOBJECT", "gobject-2.0") | |
| 548 | 511 | core.SetSharedLibraries("GOBJECT", []string{"libgobject-2.0.so.0", "libgobject-2.0.0.dylib"}) | |
| 512 | + | var libs []uintptr | |
| 513 | + | for _, libPath := range core.GetPaths("GOBJECT") { | |
| 514 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 515 | + | if err != nil { | |
| 516 | + | panic(err) | |
| 517 | + | } | |
| 518 | + | libs = append(libs, lib) | |
| 519 | + | } | |
| 520 | + | ||
| 521 | + | core.PuregoSafeRegister(&xCclosureMarshalGeneric, libs, "g_cclosure_marshal_generic") | |
| 522 | + | core.PuregoSafeRegister(&xCclosureNew, libs, "g_cclosure_new") | |
| 523 | + | core.PuregoSafeRegister(&xCclosureNewSwap, libs, "g_cclosure_new_swap") | |
| 524 | + | core.PuregoSafeRegister(&xSignalTypeCclosureNew, libs, "g_signal_type_cclosure_new") | |
| 525 | + | ||
| 526 | + | core.PuregoSafeRegister(&xClosureGLibType, libs, "g_closure_get_type") | |
| 527 | + | ||
| 528 | + | core.PuregoSafeRegister(&xNewClosureObject, libs, "g_closure_new_object") | |
| 529 | + | core.PuregoSafeRegister(&xNewClosureSimple, libs, "g_closure_new_simple") | |
| 530 | + | ||
| 531 | + | core.PuregoSafeRegister(&xClosureAddFinalizeNotifier, libs, "g_closure_add_finalize_notifier") | |
| 532 | + | core.PuregoSafeRegister(&xClosureAddInvalidateNotifier, libs, "g_closure_add_invalidate_notifier") | |
| 533 | + | core.PuregoSafeRegister(&xClosureAddMarshalGuards, libs, "g_closure_add_marshal_guards") | |
| 534 | + | core.PuregoSafeRegister(&xClosureInvalidate, libs, "g_closure_invalidate") | |
| 535 | + | core.PuregoSafeRegister(&xClosureInvoke, libs, "g_closure_invoke") | |
| 536 | + | core.PuregoSafeRegister(&xClosureRef, libs, "g_closure_ref") | |
| 537 | + | core.PuregoSafeRegister(&xClosureRemoveFinalizeNotifier, libs, "g_closure_remove_finalize_notifier") | |
| 538 | + | core.PuregoSafeRegister(&xClosureRemoveInvalidateNotifier, libs, "g_closure_remove_invalidate_notifier") | |
| 539 | + | core.PuregoSafeRegister(&xClosureSetMarshal, libs, "g_closure_set_marshal") | |
| 540 | + | core.PuregoSafeRegister(&xClosureSetMetaMarshal, libs, "g_closure_set_meta_marshal") | |
| 541 | + | core.PuregoSafeRegister(&xClosureSink, libs, "g_closure_sink") | |
| 542 | + | core.PuregoSafeRegister(&xClosureUnref, libs, "g_closure_unref") | |
| 549 | 543 | } | |
| @@ -131,7 +131,6 @@ type Closure struct { | |||||
| 131 | var xClosureGLibType func() types.GType | 131 | var xClosureGLibType func() types.GType | ||
| 132 | 132 | ||||
| 133 | func ClosureGLibType() types.GType { | 133 | func ClosureGLibType() types.GType { | ||
| 134 | - | core.LazyRegister(&xClosureGLibType, "GOBJECT", "g_closure_get_type", false) | |||
| 135 | return xClosureGLibType() | 134 | return xClosureGLibType() | ||
| 136 | } | 135 | } | ||
| 137 | 136 | ||||
| @@ -154,8 +153,6 @@ var xNewClosureObject func(uint, uintptr) uintptr | |||||
| 154 | // @object and the created closure. This function is mainly useful | 153 | // @object and the created closure. This function is mainly useful | ||
| 155 | // when implementing new types of closures. | 154 | // when implementing new types of closures. | ||
| 156 | func NewClosureObject(SizeofClosureVar uint, ObjectVar *Object) *Closure { | 155 | func NewClosureObject(SizeofClosureVar uint, ObjectVar *Object) *Closure { | ||
| 157 | - | core.LazyRegister(&xNewClosureObject, "GOBJECT", "g_closure_new_object", false) | |||
| 158 | - | ||||
| 159 | cret := xNewClosureObject(SizeofClosureVar, ObjectVar.GoPointer()) | 156 | cret := xNewClosureObject(SizeofClosureVar, ObjectVar.GoPointer()) | ||
| 160 | if cret == 0 { | 157 | if cret == 0 { | ||
| 161 | return nil | 158 | return nil | ||
| @@ -208,8 +205,6 @@ var xNewClosureSimple func(uint, uintptr) uintptr | |||||
| 208 | // | 205 | // | ||
| 209 | // ]| | 206 | // ]| | ||
| 210 | func NewClosureSimple(SizeofClosureVar uint, DataVar uintptr) *Closure { | 207 | func NewClosureSimple(SizeofClosureVar uint, DataVar uintptr) *Closure { | ||
| 211 | - | core.LazyRegister(&xNewClosureSimple, "GOBJECT", "g_closure_new_simple", false) | |||
| 212 | - | ||||
| 213 | cret := xNewClosureSimple(SizeofClosureVar, DataVar) | 208 | cret := xNewClosureSimple(SizeofClosureVar, DataVar) | ||
| 214 | if cret == 0 { | 209 | if cret == 0 { | ||
| 215 | return nil | 210 | return nil | ||
| @@ -227,8 +222,6 @@ var xClosureAddFinalizeNotifier func(uintptr, uintptr, uintptr) | |||||
| 227 | // the closure being both invalidated and finalized, then the invalidate | 222 | // the closure being both invalidated and finalized, then the invalidate | ||
| 228 | // notifiers will be run before the finalize notifiers. | 223 | // notifiers will be run before the finalize notifiers. | ||
| 229 | func (x *Closure) AddFinalizeNotifier(NotifyDataVar uintptr, NotifyFuncVar *ClosureNotify) { | 224 | func (x *Closure) AddFinalizeNotifier(NotifyDataVar uintptr, NotifyFuncVar *ClosureNotify) { | ||
| 230 | - | core.LazyRegister(&xClosureAddFinalizeNotifier, "GOBJECT", "g_closure_add_finalize_notifier", false) | |||
| 231 | - | ||||
| 232 | xClosureAddFinalizeNotifier(x.GoPointer(), NotifyDataVar, glib.NewCallbackNullable(NotifyFuncVar)) | 225 | xClosureAddFinalizeNotifier(x.GoPointer(), NotifyDataVar, glib.NewCallbackNullable(NotifyFuncVar)) | ||
| 233 | } | 226 | } | ||
| 234 | 227 | ||||
| @@ -240,8 +233,6 @@ var xClosureAddInvalidateNotifier func(uintptr, uintptr, uintptr) | |||||
| 240 | // Invalidation notifiers are invoked before finalization notifiers, | 233 | // Invalidation notifiers are invoked before finalization notifiers, | ||
| 241 | // in an unspecified order. | 234 | // in an unspecified order. | ||
| 242 | func (x *Closure) AddInvalidateNotifier(NotifyDataVar uintptr, NotifyFuncVar *ClosureNotify) { | 235 | func (x *Closure) AddInvalidateNotifier(NotifyDataVar uintptr, NotifyFuncVar *ClosureNotify) { | ||
| 243 | - | core.LazyRegister(&xClosureAddInvalidateNotifier, "GOBJECT", "g_closure_add_invalidate_notifier", false) | |||
| 244 | - | ||||
| 245 | xClosureAddInvalidateNotifier(x.GoPointer(), NotifyDataVar, glib.NewCallbackNullable(NotifyFuncVar)) | 236 | xClosureAddInvalidateNotifier(x.GoPointer(), NotifyDataVar, glib.NewCallbackNullable(NotifyFuncVar)) | ||
| 246 | } | 237 | } | ||
| 247 | 238 | ||||
| @@ -254,8 +245,6 @@ var xClosureAddMarshalGuards func(uintptr, uintptr, uintptr, uintptr, uintptr) | |||||
| 254 | // duration of the callback. See g_object_watch_closure() for an | 245 | // duration of the callback. See g_object_watch_closure() for an | ||
| 255 | // example of marshal guards. | 246 | // example of marshal guards. | ||
| 256 | func (x *Closure) AddMarshalGuards(PreMarshalDataVar uintptr, PreMarshalNotifyVar *ClosureNotify, PostMarshalDataVar uintptr, PostMarshalNotifyVar *ClosureNotify) { | 247 | func (x *Closure) AddMarshalGuards(PreMarshalDataVar uintptr, PreMarshalNotifyVar *ClosureNotify, PostMarshalDataVar uintptr, PostMarshalNotifyVar *ClosureNotify) { | ||
| 257 | - | core.LazyRegister(&xClosureAddMarshalGuards, "GOBJECT", "g_closure_add_marshal_guards", false) | |||
| 258 | - | ||||
| 259 | xClosureAddMarshalGuards(x.GoPointer(), PreMarshalDataVar, glib.NewCallbackNullable(PreMarshalNotifyVar), PostMarshalDataVar, glib.NewCallbackNullable(PostMarshalNotifyVar)) | 248 | xClosureAddMarshalGuards(x.GoPointer(), PreMarshalDataVar, glib.NewCallbackNullable(PreMarshalNotifyVar), PostMarshalDataVar, glib.NewCallbackNullable(PostMarshalNotifyVar)) | ||
| 260 | } | 249 | } | ||
| 261 | 250 | ||||
| @@ -277,8 +266,6 @@ var xClosureInvalidate func(uintptr) | |||||
| 277 | // reference count of a closure drops to zero (unless it has already | 266 | // reference count of a closure drops to zero (unless it has already | ||
| 278 | // been invalidated before). | 267 | // been invalidated before). | ||
| 279 | func (x *Closure) Invalidate() { | 268 | func (x *Closure) Invalidate() { | ||
| 280 | - | core.LazyRegister(&xClosureInvalidate, "GOBJECT", "g_closure_invalidate", false) | |||
| 281 | - | ||||
| 282 | xClosureInvalidate(x.GoPointer()) | 269 | xClosureInvalidate(x.GoPointer()) | ||
| 283 | } | 270 | } | ||
| 284 | 271 | ||||
| @@ -286,8 +273,6 @@ var xClosureInvoke func(uintptr, *Value, uint, []Value, uintptr) | |||||
| 286 | 273 | ||||
| 287 | // Invokes the closure, i.e. executes the callback represented by the @closure. | 274 | // Invokes the closure, i.e. executes the callback represented by the @closure. | ||
| 288 | func (x *Closure) Invoke(ReturnValueVar *Value, NParamValuesVar uint, ParamValuesVar []Value, InvocationHintVar uintptr) { | 275 | func (x *Closure) Invoke(ReturnValueVar *Value, NParamValuesVar uint, ParamValuesVar []Value, InvocationHintVar uintptr) { | ||
| 289 | - | core.LazyRegister(&xClosureInvoke, "GOBJECT", "g_closure_invoke", false) | |||
| 290 | - | ||||
| 291 | xClosureInvoke(x.GoPointer(), ReturnValueVar, NParamValuesVar, ParamValuesVar, InvocationHintVar) | 276 | xClosureInvoke(x.GoPointer(), ReturnValueVar, NParamValuesVar, ParamValuesVar, InvocationHintVar) | ||
| 292 | } | 277 | } | ||
| 293 | 278 | ||||
| @@ -296,8 +281,6 @@ var xClosureRef func(uintptr) uintptr | |||||
| 296 | // Increments the reference count on a closure to force it staying | 281 | // Increments the reference count on a closure to force it staying | ||
| 297 | // alive while the caller holds a pointer to it. | 282 | // alive while the caller holds a pointer to it. | ||
| 298 | func (x *Closure) Ref() *Closure { | 283 | func (x *Closure) Ref() *Closure { | ||
| 299 | - | core.LazyRegister(&xClosureRef, "GOBJECT", "g_closure_ref", false) | |||
| 300 | - | ||||
| 301 | cret := xClosureRef(x.GoPointer()) | 284 | cret := xClosureRef(x.GoPointer()) | ||
| 302 | if cret == 0 { | 285 | if cret == 0 { | ||
| 303 | return nil | 286 | return nil | ||
| @@ -311,8 +294,6 @@ var xClosureRemoveFinalizeNotifier func(uintptr, uintptr, uintptr) | |||||
| 311 | // | 294 | // | ||
| 312 | // Notice that notifiers are automatically removed after they are run. | 295 | // Notice that notifiers are automatically removed after they are run. | ||
| 313 | func (x *Closure) RemoveFinalizeNotifier(NotifyDataVar uintptr, NotifyFuncVar *ClosureNotify) { | 296 | func (x *Closure) RemoveFinalizeNotifier(NotifyDataVar uintptr, NotifyFuncVar *ClosureNotify) { | ||
| 314 | - | core.LazyRegister(&xClosureRemoveFinalizeNotifier, "GOBJECT", "g_closure_remove_finalize_notifier", false) | |||
| 315 | - | ||||
| 316 | xClosureRemoveFinalizeNotifier(x.GoPointer(), NotifyDataVar, glib.NewCallbackNullable(NotifyFuncVar)) | 297 | xClosureRemoveFinalizeNotifier(x.GoPointer(), NotifyDataVar, glib.NewCallbackNullable(NotifyFuncVar)) | ||
| 317 | } | 298 | } | ||
| 318 | 299 | ||||
| @@ -322,8 +303,6 @@ var xClosureRemoveInvalidateNotifier func(uintptr, uintptr, uintptr) | |||||
| 322 | // | 303 | // | ||
| 323 | // Notice that notifiers are automatically removed after they are run. | 304 | // Notice that notifiers are automatically removed after they are run. | ||
| 324 | func (x *Closure) RemoveInvalidateNotifier(NotifyDataVar uintptr, NotifyFuncVar *ClosureNotify) { | 305 | func (x *Closure) RemoveInvalidateNotifier(NotifyDataVar uintptr, NotifyFuncVar *ClosureNotify) { | ||
| 325 | - | core.LazyRegister(&xClosureRemoveInvalidateNotifier, "GOBJECT", "g_closure_remove_invalidate_notifier", false) | |||
| 326 | - | ||||
| 327 | xClosureRemoveInvalidateNotifier(x.GoPointer(), NotifyDataVar, glib.NewCallbackNullable(NotifyFuncVar)) | 306 | xClosureRemoveInvalidateNotifier(x.GoPointer(), NotifyDataVar, glib.NewCallbackNullable(NotifyFuncVar)) | ||
| 328 | } | 307 | } | ||
| 329 | 308 | ||||
| @@ -340,8 +319,6 @@ var xClosureSetMarshal func(uintptr, uintptr) | |||||
| 340 | // | 319 | // | ||
| 341 | // See also: g_closure_set_meta_marshal() | 320 | // See also: g_closure_set_meta_marshal() | ||
| 342 | func (x *Closure) SetMarshal(MarshalVar *ClosureMarshal) { | 321 | func (x *Closure) SetMarshal(MarshalVar *ClosureMarshal) { | ||
| 343 | - | core.LazyRegister(&xClosureSetMarshal, "GOBJECT", "g_closure_set_marshal", false) | |||
| 344 | - | ||||
| 345 | xClosureSetMarshal(x.GoPointer(), glib.NewCallback(MarshalVar)) | 322 | xClosureSetMarshal(x.GoPointer(), glib.NewCallback(MarshalVar)) | ||
| 346 | } | 323 | } | ||
| 347 | 324 | ||||
| @@ -365,8 +342,6 @@ var xClosureSetMetaMarshal func(uintptr, uintptr, uintptr) | |||||
| 365 | // the right callback and passes it to the marshaller as the | 342 | // the right callback and passes it to the marshaller as the | ||
| 366 | // @marshal_data argument. | 343 | // @marshal_data argument. | ||
| 367 | func (x *Closure) SetMetaMarshal(MarshalDataVar uintptr, MetaMarshalVar *ClosureMarshal) { | 344 | func (x *Closure) SetMetaMarshal(MarshalDataVar uintptr, MetaMarshalVar *ClosureMarshal) { | ||
| 368 | - | core.LazyRegister(&xClosureSetMetaMarshal, "GOBJECT", "g_closure_set_meta_marshal", false) | |||
| 369 | - | ||||
| 370 | xClosureSetMetaMarshal(x.GoPointer(), MarshalDataVar, glib.NewCallback(MetaMarshalVar)) | 345 | xClosureSetMetaMarshal(x.GoPointer(), MarshalDataVar, glib.NewCallback(MetaMarshalVar)) | ||
| 371 | } | 346 | } | ||
| 372 | 347 | ||||
| @@ -422,8 +397,6 @@ var xClosureSink func(uintptr) | |||||
| 422 | // (if it hasn't been called on @closure yet) just like g_closure_unref(), | 397 | // (if it hasn't been called on @closure yet) just like g_closure_unref(), | ||
| 423 | // g_closure_ref() should be called prior to this function. | 398 | // g_closure_ref() should be called prior to this function. | ||
| 424 | func (x *Closure) Sink() { | 399 | func (x *Closure) Sink() { | ||
| 425 | - | core.LazyRegister(&xClosureSink, "GOBJECT", "g_closure_sink", false) | |||
| 426 | - | ||||
| 427 | xClosureSink(x.GoPointer()) | 400 | xClosureSink(x.GoPointer()) | ||
| 428 | } | 401 | } | ||
| 429 | 402 | ||||
| @@ -435,8 +408,6 @@ var xClosureUnref func(uintptr) | |||||
| 435 | // If no other callers are using the closure, then the closure will be | 408 | // If no other callers are using the closure, then the closure will be | ||
| 436 | // destroyed and freed. | 409 | // destroyed and freed. | ||
| 437 | func (x *Closure) Unref() { | 410 | func (x *Closure) Unref() { | ||
| 438 | - | core.LazyRegister(&xClosureUnref, "GOBJECT", "g_closure_unref", false) | |||
| 439 | - | ||||
| 440 | xClosureUnref(x.GoPointer()) | 411 | xClosureUnref(x.GoPointer()) | ||
| 441 | } | 412 | } | ||
| 442 | 413 | ||||
| @@ -491,8 +462,6 @@ var xCclosureMarshalGeneric func(*Closure, *Value, uint, *Value, uintptr, uintpt | |||||
| 491 | // Normally this function is not passed explicitly to g_signal_new(), | 462 | // Normally this function is not passed explicitly to g_signal_new(), | ||
| 492 | // but used automatically by GLib when specifying a %NULL marshaller. | 463 | // but used automatically by GLib when specifying a %NULL marshaller. | ||
| 493 | func CclosureMarshalGeneric(ClosureVar *Closure, ReturnGvalueVar *Value, NParamValuesVar uint, ParamValuesVar *Value, InvocationHintVar uintptr, MarshalDataVar uintptr) { | 464 | func CclosureMarshalGeneric(ClosureVar *Closure, ReturnGvalueVar *Value, NParamValuesVar uint, ParamValuesVar *Value, InvocationHintVar uintptr, MarshalDataVar uintptr) { | ||
| 494 | - | core.LazyRegister(&xCclosureMarshalGeneric, "GOBJECT", "g_cclosure_marshal_generic", false) | |||
| 495 | - | ||||
| 496 | xCclosureMarshalGeneric(ClosureVar, ReturnGvalueVar, NParamValuesVar, ParamValuesVar, InvocationHintVar, MarshalDataVar) | 465 | xCclosureMarshalGeneric(ClosureVar, ReturnGvalueVar, NParamValuesVar, ParamValuesVar, InvocationHintVar, MarshalDataVar) | ||
| 497 | } | 466 | } | ||
| 498 | 467 | ||||
| @@ -503,8 +472,6 @@ var xCclosureNew func(uintptr, uintptr, uintptr) uintptr | |||||
| 503 | // | 472 | // | ||
| 504 | // @destroy_data will be called as a finalize notifier on the #GClosure. | 473 | // @destroy_data will be called as a finalize notifier on the #GClosure. | ||
| 505 | func CclosureNew(CallbackFuncVar *Callback, UserDataVar uintptr, DestroyDataVar *ClosureNotify) *Closure { | 474 | func CclosureNew(CallbackFuncVar *Callback, UserDataVar uintptr, DestroyDataVar *ClosureNotify) *Closure { | ||
| 506 | - | core.LazyRegister(&xCclosureNew, "GOBJECT", "g_cclosure_new", false) | |||
| 507 | - | ||||
| 508 | cret := xCclosureNew(glib.NewCallback(CallbackFuncVar), UserDataVar, glib.NewCallbackNullable(DestroyDataVar)) | 475 | cret := xCclosureNew(glib.NewCallback(CallbackFuncVar), UserDataVar, glib.NewCallbackNullable(DestroyDataVar)) | ||
| 509 | if cret == 0 { | 476 | if cret == 0 { | ||
| 510 | return nil | 477 | return nil | ||
| @@ -519,8 +486,6 @@ var xCclosureNewSwap func(uintptr, uintptr, uintptr) uintptr | |||||
| 519 | // | 486 | // | ||
| 520 | // @destroy_data will be called as a finalize notifier on the #GClosure. | 487 | // @destroy_data will be called as a finalize notifier on the #GClosure. | ||
| 521 | func CclosureNewSwap(CallbackFuncVar *Callback, UserDataVar uintptr, DestroyDataVar *ClosureNotify) *Closure { | 488 | func CclosureNewSwap(CallbackFuncVar *Callback, UserDataVar uintptr, DestroyDataVar *ClosureNotify) *Closure { | ||
| 522 | - | core.LazyRegister(&xCclosureNewSwap, "GOBJECT", "g_cclosure_new_swap", false) | |||
| 523 | - | ||||
| 524 | cret := xCclosureNewSwap(glib.NewCallback(CallbackFuncVar), UserDataVar, glib.NewCallbackNullable(DestroyDataVar)) | 489 | cret := xCclosureNewSwap(glib.NewCallback(CallbackFuncVar), UserDataVar, glib.NewCallbackNullable(DestroyDataVar)) | ||
| 525 | if cret == 0 { | 490 | if cret == 0 { | ||
| 526 | return nil | 491 | return nil | ||
| @@ -534,8 +499,6 @@ var xSignalTypeCclosureNew func(types.GType, uint) uintptr | |||||
| 534 | // @struct_offset in the class structure of the interface or classed type | 499 | // @struct_offset in the class structure of the interface or classed type | ||
| 535 | // identified by @itype. | 500 | // identified by @itype. | ||
| 536 | func SignalTypeCclosureNew(ItypeVar types.GType, StructOffsetVar uint) *Closure { | 501 | func SignalTypeCclosureNew(ItypeVar types.GType, StructOffsetVar uint) *Closure { | ||
| 537 | - | core.LazyRegister(&xSignalTypeCclosureNew, "GOBJECT", "g_signal_type_cclosure_new", false) | |||
| 538 | - | ||||
| 539 | cret := xSignalTypeCclosureNew(ItypeVar, StructOffsetVar) | 502 | cret := xSignalTypeCclosureNew(ItypeVar, StructOffsetVar) | ||
| 540 | if cret == 0 { | 503 | if cret == 0 { | ||
| 541 | return nil | 504 | return nil | ||
| @@ -546,4 +509,35 @@ func SignalTypeCclosureNew(ItypeVar types.GType, StructOffsetVar uint) *Closure | |||||
| 546 | func init() { | 509 | func init() { | ||
| 547 | core.SetPackageName("GOBJECT", "gobject-2.0") | 510 | core.SetPackageName("GOBJECT", "gobject-2.0") | ||
| 548 | core.SetSharedLibraries("GOBJECT", []string{"libgobject-2.0.so.0", "libgobject-2.0.0.dylib"}) | 511 | core.SetSharedLibraries("GOBJECT", []string{"libgobject-2.0.so.0", "libgobject-2.0.0.dylib"}) | ||
| 512 | + | var libs []uintptr | |||
| 513 | + | for _, libPath := range core.GetPaths("GOBJECT") { | |||
| 514 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 515 | + | if err != nil { | |||
| 516 | + | panic(err) | |||
| 517 | + | } | |||
| 518 | + | libs = append(libs, lib) | |||
| 519 | + | } | |||
| 520 | + | ||||
| 521 | + | core.PuregoSafeRegister(&xCclosureMarshalGeneric, libs, "g_cclosure_marshal_generic") | |||
| 522 | + | core.PuregoSafeRegister(&xCclosureNew, libs, "g_cclosure_new") | |||
| 523 | + | core.PuregoSafeRegister(&xCclosureNewSwap, libs, "g_cclosure_new_swap") | |||
| 524 | + | core.PuregoSafeRegister(&xSignalTypeCclosureNew, libs, "g_signal_type_cclosure_new") | |||
| 525 | + | ||||
| 526 | + | core.PuregoSafeRegister(&xClosureGLibType, libs, "g_closure_get_type") | |||
| 527 | + | ||||
| 528 | + | core.PuregoSafeRegister(&xNewClosureObject, libs, "g_closure_new_object") | |||
| 529 | + | core.PuregoSafeRegister(&xNewClosureSimple, libs, "g_closure_new_simple") | |||
| 530 | + | ||||
| 531 | + | core.PuregoSafeRegister(&xClosureAddFinalizeNotifier, libs, "g_closure_add_finalize_notifier") | |||
| 532 | + | core.PuregoSafeRegister(&xClosureAddInvalidateNotifier, libs, "g_closure_add_invalidate_notifier") | |||
| 533 | + | core.PuregoSafeRegister(&xClosureAddMarshalGuards, libs, "g_closure_add_marshal_guards") | |||
| 534 | + | core.PuregoSafeRegister(&xClosureInvalidate, libs, "g_closure_invalidate") | |||
| 535 | + | core.PuregoSafeRegister(&xClosureInvoke, libs, "g_closure_invoke") | |||
| 536 | + | core.PuregoSafeRegister(&xClosureRef, libs, "g_closure_ref") | |||
| 537 | + | core.PuregoSafeRegister(&xClosureRemoveFinalizeNotifier, libs, "g_closure_remove_finalize_notifier") | |||
| 538 | + | core.PuregoSafeRegister(&xClosureRemoveInvalidateNotifier, libs, "g_closure_remove_invalidate_notifier") | |||
| 539 | + | core.PuregoSafeRegister(&xClosureSetMarshal, libs, "g_closure_set_marshal") | |||
| 540 | + | core.PuregoSafeRegister(&xClosureSetMetaMarshal, libs, "g_closure_set_meta_marshal") | |||
| 541 | + | core.PuregoSafeRegister(&xClosureSink, libs, "g_closure_sink") | |||
| 542 | + | core.PuregoSafeRegister(&xClosureUnref, libs, "g_closure_unref") | |||
| 549 | } | 543 | } | ||