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
| @@ -5,6 +5,7 @@ import ( | |||
| 5 | 5 | "structs" | |
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | + | "github.com/bnema/purego" | |
| 8 | 9 | "github.com/bnema/puregotk/pkg/core" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| @@ -51,8 +52,6 @@ var xNodeChildIndex func(uintptr, uintptr) int | |||
| 51 | 52 | // Gets the position of the first child of a #GNode | |
| 52 | 53 | // which contains the given data. | |
| 53 | 54 | func (x *Node) ChildIndex(DataVar uintptr) int { | |
| 54 | - | core.LazyRegister(&xNodeChildIndex, "GLIB", "g_node_child_index", false) | |
| 55 | - | ||
| 56 | 55 | cret := xNodeChildIndex(x.GoPointer(), DataVar) | |
| 57 | 56 | return cret | |
| 58 | 57 | } | |
| @@ -63,8 +62,6 @@ var xNodeChildPosition func(uintptr, *Node) int | |||
| 63 | 62 | // @child must be a child of @node. The first child is numbered 0, | |
| 64 | 63 | // the second 1, and so on. | |
| 65 | 64 | func (x *Node) ChildPosition(ChildVar *Node) int { | |
| 66 | - | core.LazyRegister(&xNodeChildPosition, "GLIB", "g_node_child_position", false) | |
| 67 | - | ||
| 68 | 65 | cret := xNodeChildPosition(x.GoPointer(), ChildVar) | |
| 69 | 66 | return cret | |
| 70 | 67 | } | |
| @@ -75,8 +72,6 @@ var xNodeChildrenForeach func(uintptr, TraverseFlags, uintptr, uintptr) | |||
| 75 | 72 | // doesn't descend beneath the child nodes. @func must not do anything | |
| 76 | 73 | // that would modify the structure of the tree. | |
| 77 | 74 | func (x *Node) ChildrenForeach(FlagsVar TraverseFlags, FuncVar *NodeForeachFunc, DataVar uintptr) { | |
| 78 | - | core.LazyRegister(&xNodeChildrenForeach, "GLIB", "g_node_children_foreach", false) | |
| 79 | - | ||
| 80 | 75 | xNodeChildrenForeach(x.GoPointer(), FlagsVar, NewCallback(FuncVar), DataVar) | |
| 81 | 76 | } | |
| 82 | 77 | ||
| @@ -85,8 +80,6 @@ var xNodeCopy func(uintptr) uintptr | |||
| 85 | 80 | // Recursively copies a #GNode (but does not deep-copy the data inside the | |
| 86 | 81 | // nodes, see g_node_copy_deep() if you need that). | |
| 87 | 82 | func (x *Node) Copy() *Node { | |
| 88 | - | core.LazyRegister(&xNodeCopy, "GLIB", "g_node_copy", false) | |
| 89 | - | ||
| 90 | 83 | cret := xNodeCopy(x.GoPointer()) | |
| 91 | 84 | if cret == 0 { | |
| 92 | 85 | return nil | |
| @@ -98,8 +91,6 @@ var xNodeCopyDeep func(uintptr, uintptr, uintptr) uintptr | |||
| 98 | 91 | ||
| 99 | 92 | // Recursively copies a #GNode and its data. | |
| 100 | 93 | func (x *Node) CopyDeep(CopyFuncVar *CopyFunc, DataVar uintptr) *Node { | |
| 101 | - | core.LazyRegister(&xNodeCopyDeep, "GLIB", "g_node_copy_deep", false) | |
| 102 | - | ||
| 103 | 94 | cret := xNodeCopyDeep(x.GoPointer(), NewCallback(CopyFuncVar), DataVar) | |
| 104 | 95 | if cret == 0 { | |
| 105 | 96 | return nil | |
| @@ -114,8 +105,6 @@ var xNodeDepth func(uintptr) uint | |||
| 114 | 105 | // If @node is %NULL the depth is 0. The root node has a depth of 1. | |
| 115 | 106 | // For the children of the root node the depth is 2. And so on. | |
| 116 | 107 | func (x *Node) Depth() uint { | |
| 117 | - | core.LazyRegister(&xNodeDepth, "GLIB", "g_node_depth", false) | |
| 118 | - | ||
| 119 | 108 | cret := xNodeDepth(x.GoPointer()) | |
| 120 | 109 | return cret | |
| 121 | 110 | } | |
| @@ -125,8 +114,6 @@ var xNodeDestroy func(uintptr) | |||
| 125 | 114 | // Removes @root and its children from the tree, freeing any memory | |
| 126 | 115 | // allocated. | |
| 127 | 116 | func (x *Node) Destroy() { | |
| 128 | - | core.LazyRegister(&xNodeDestroy, "GLIB", "g_node_destroy", false) | |
| 129 | - | ||
| 130 | 117 | xNodeDestroy(x.GoPointer()) | |
| 131 | 118 | } | |
| 132 | 119 | ||
| @@ -134,8 +121,6 @@ var xNodeFind func(uintptr, TraverseType, TraverseFlags, uintptr) uintptr | |||
| 134 | 121 | ||
| 135 | 122 | // Finds a #GNode in a tree. | |
| 136 | 123 | func (x *Node) Find(OrderVar TraverseType, FlagsVar TraverseFlags, DataVar uintptr) *Node { | |
| 137 | - | core.LazyRegister(&xNodeFind, "GLIB", "g_node_find", false) | |
| 138 | - | ||
| 139 | 124 | cret := xNodeFind(x.GoPointer(), OrderVar, FlagsVar, DataVar) | |
| 140 | 125 | if cret == 0 { | |
| 141 | 126 | return nil | |
| @@ -147,8 +132,6 @@ var xNodeFindChild func(uintptr, TraverseFlags, uintptr) uintptr | |||
| 147 | 132 | ||
| 148 | 133 | // Finds the first child of a #GNode with the given data. | |
| 149 | 134 | func (x *Node) FindChild(FlagsVar TraverseFlags, DataVar uintptr) *Node { | |
| 150 | - | core.LazyRegister(&xNodeFindChild, "GLIB", "g_node_find_child", false) | |
| 151 | - | ||
| 152 | 135 | cret := xNodeFindChild(x.GoPointer(), FlagsVar, DataVar) | |
| 153 | 136 | if cret == 0 { | |
| 154 | 137 | return nil | |
| @@ -161,8 +144,6 @@ var xNodeFirstSibling func(uintptr) uintptr | |||
| 161 | 144 | // Gets the first sibling of a #GNode. | |
| 162 | 145 | // This could possibly be the node itself. | |
| 163 | 146 | func (x *Node) FirstSibling() *Node { | |
| 164 | - | core.LazyRegister(&xNodeFirstSibling, "GLIB", "g_node_first_sibling", false) | |
| 165 | - | ||
| 166 | 147 | cret := xNodeFirstSibling(x.GoPointer()) | |
| 167 | 148 | if cret == 0 { | |
| 168 | 149 | return nil | |
| @@ -174,8 +155,6 @@ var xNodeGetRoot func(uintptr) uintptr | |||
| 174 | 155 | ||
| 175 | 156 | // Gets the root of a tree. | |
| 176 | 157 | func (x *Node) GetRoot() *Node { | |
| 177 | - | core.LazyRegister(&xNodeGetRoot, "GLIB", "g_node_get_root", false) | |
| 178 | - | ||
| 179 | 158 | cret := xNodeGetRoot(x.GoPointer()) | |
| 180 | 159 | if cret == 0 { | |
| 181 | 160 | return nil | |
| @@ -187,8 +166,6 @@ var xNodeInsert func(uintptr, int, *Node) uintptr | |||
| 187 | 166 | ||
| 188 | 167 | // Inserts a #GNode beneath the parent at the given position. | |
| 189 | 168 | func (x *Node) Insert(PositionVar int, NodeVar *Node) *Node { | |
| 190 | - | core.LazyRegister(&xNodeInsert, "GLIB", "g_node_insert", false) | |
| 191 | - | ||
| 192 | 169 | cret := xNodeInsert(x.GoPointer(), PositionVar, NodeVar) | |
| 193 | 170 | if cret == 0 { | |
| 194 | 171 | return nil | |
| @@ -200,8 +177,6 @@ var xNodeInsertAfter func(uintptr, *Node, *Node) uintptr | |||
| 200 | 177 | ||
| 201 | 178 | // Inserts a #GNode beneath the parent after the given sibling. | |
| 202 | 179 | func (x *Node) InsertAfter(SiblingVar *Node, NodeVar *Node) *Node { | |
| 203 | - | core.LazyRegister(&xNodeInsertAfter, "GLIB", "g_node_insert_after", false) | |
| 204 | - | ||
| 205 | 180 | cret := xNodeInsertAfter(x.GoPointer(), SiblingVar, NodeVar) | |
| 206 | 181 | if cret == 0 { | |
| 207 | 182 | return nil | |
| @@ -213,8 +188,6 @@ var xNodeInsertBefore func(uintptr, *Node, *Node) uintptr | |||
| 213 | 188 | ||
| 214 | 189 | // Inserts a #GNode beneath the parent before the given sibling. | |
| 215 | 190 | func (x *Node) InsertBefore(SiblingVar *Node, NodeVar *Node) *Node { | |
| 216 | - | core.LazyRegister(&xNodeInsertBefore, "GLIB", "g_node_insert_before", false) | |
| 217 | - | ||
| 218 | 191 | cret := xNodeInsertBefore(x.GoPointer(), SiblingVar, NodeVar) | |
| 219 | 192 | if cret == 0 { | |
| 220 | 193 | return nil | |
| @@ -228,8 +201,6 @@ var xNodeIsAncestor func(uintptr, *Node) bool | |||
| 228 | 201 | // This is true if node is the parent of @descendant, | |
| 229 | 202 | // or if node is the grandparent of @descendant etc. | |
| 230 | 203 | func (x *Node) IsAncestor(DescendantVar *Node) bool { | |
| 231 | - | core.LazyRegister(&xNodeIsAncestor, "GLIB", "g_node_is_ancestor", false) | |
| 232 | - | ||
| 233 | 204 | cret := xNodeIsAncestor(x.GoPointer(), DescendantVar) | |
| 234 | 205 | return cret | |
| 235 | 206 | } | |
| @@ -238,8 +209,6 @@ var xNodeLastChild func(uintptr) uintptr | |||
| 238 | 209 | ||
| 239 | 210 | // Gets the last child of a #GNode. | |
| 240 | 211 | func (x *Node) LastChild() *Node { | |
| 241 | - | core.LazyRegister(&xNodeLastChild, "GLIB", "g_node_last_child", false) | |
| 242 | - | ||
| 243 | 212 | cret := xNodeLastChild(x.GoPointer()) | |
| 244 | 213 | if cret == 0 { | |
| 245 | 214 | return nil | |
| @@ -252,8 +221,6 @@ var xNodeLastSibling func(uintptr) uintptr | |||
| 252 | 221 | // Gets the last sibling of a #GNode. | |
| 253 | 222 | // This could possibly be the node itself. | |
| 254 | 223 | func (x *Node) LastSibling() *Node { | |
| 255 | - | core.LazyRegister(&xNodeLastSibling, "GLIB", "g_node_last_sibling", false) | |
| 256 | - | ||
| 257 | 224 | cret := xNodeLastSibling(x.GoPointer()) | |
| 258 | 225 | if cret == 0 { | |
| 259 | 226 | return nil | |
| @@ -269,8 +236,6 @@ var xNodeMaxHeight func(uintptr) uint | |||
| 269 | 236 | // If @root is %NULL, 0 is returned. If @root has no children, | |
| 270 | 237 | // 1 is returned. If @root has children, 2 is returned. And so on. | |
| 271 | 238 | func (x *Node) MaxHeight() uint { | |
| 272 | - | core.LazyRegister(&xNodeMaxHeight, "GLIB", "g_node_max_height", false) | |
| 273 | - | ||
| 274 | 239 | cret := xNodeMaxHeight(x.GoPointer()) | |
| 275 | 240 | return cret | |
| 276 | 241 | } | |
| @@ -279,8 +244,6 @@ var xNodeNChildren func(uintptr) uint | |||
| 279 | 244 | ||
| 280 | 245 | // Gets the number of children of a #GNode. | |
| 281 | 246 | func (x *Node) NChildren() uint { | |
| 282 | - | core.LazyRegister(&xNodeNChildren, "GLIB", "g_node_n_children", false) | |
| 283 | - | ||
| 284 | 247 | cret := xNodeNChildren(x.GoPointer()) | |
| 285 | 248 | return cret | |
| 286 | 249 | } | |
| @@ -289,8 +252,6 @@ var xNodeNNodes func(uintptr, TraverseFlags) uint | |||
| 289 | 252 | ||
| 290 | 253 | // Gets the number of nodes in a tree. | |
| 291 | 254 | func (x *Node) NNodes(FlagsVar TraverseFlags) uint { | |
| 292 | - | core.LazyRegister(&xNodeNNodes, "GLIB", "g_node_n_nodes", false) | |
| 293 | - | ||
| 294 | 255 | cret := xNodeNNodes(x.GoPointer(), FlagsVar) | |
| 295 | 256 | return cret | |
| 296 | 257 | } | |
| @@ -301,8 +262,6 @@ var xNodeNthChild func(uintptr, uint) uintptr | |||
| 301 | 262 | // The first child is at index 0. If the index is | |
| 302 | 263 | // too big, %NULL is returned. | |
| 303 | 264 | func (x *Node) NthChild(NVar uint) *Node { | |
| 304 | - | core.LazyRegister(&xNodeNthChild, "GLIB", "g_node_nth_child", false) | |
| 305 | - | ||
| 306 | 265 | cret := xNodeNthChild(x.GoPointer(), NVar) | |
| 307 | 266 | if cret == 0 { | |
| 308 | 267 | return nil | |
| @@ -314,8 +273,6 @@ var xNodePrepend func(uintptr, *Node) uintptr | |||
| 314 | 273 | ||
| 315 | 274 | // Inserts a #GNode as the first child of the given parent. | |
| 316 | 275 | func (x *Node) Prepend(NodeVar *Node) *Node { | |
| 317 | - | core.LazyRegister(&xNodePrepend, "GLIB", "g_node_prepend", false) | |
| 318 | - | ||
| 319 | 276 | cret := xNodePrepend(x.GoPointer(), NodeVar) | |
| 320 | 277 | if cret == 0 { | |
| 321 | 278 | return nil | |
| @@ -328,8 +285,6 @@ var xNodeReverseChildren func(uintptr) | |||
| 328 | 285 | // Reverses the order of the children of a #GNode. | |
| 329 | 286 | // (It doesn't change the order of the grandchildren.) | |
| 330 | 287 | func (x *Node) ReverseChildren() { | |
| 331 | - | core.LazyRegister(&xNodeReverseChildren, "GLIB", "g_node_reverse_children", false) | |
| 332 | - | ||
| 333 | 288 | xNodeReverseChildren(x.GoPointer()) | |
| 334 | 289 | } | |
| 335 | 290 | ||
| @@ -340,8 +295,6 @@ var xNodeTraverse func(uintptr, TraverseType, TraverseFlags, int, uintptr, uintp | |||
| 340 | 295 | // The traversal can be halted at any point by returning %TRUE from @func. | |
| 341 | 296 | // @func must not do anything that would modify the structure of the tree. | |
| 342 | 297 | func (x *Node) Traverse(OrderVar TraverseType, FlagsVar TraverseFlags, MaxDepthVar int, FuncVar *NodeTraverseFunc, DataVar uintptr) { | |
| 343 | - | core.LazyRegister(&xNodeTraverse, "GLIB", "g_node_traverse", false) | |
| 344 | - | ||
| 345 | 298 | xNodeTraverse(x.GoPointer(), OrderVar, FlagsVar, MaxDepthVar, NewCallback(FuncVar), DataVar) | |
| 346 | 299 | } | |
| 347 | 300 | ||
| @@ -349,8 +302,6 @@ var xNodeUnlink func(uintptr) | |||
| 349 | 302 | ||
| 350 | 303 | // Unlinks a #GNode from a tree, resulting in two separate trees. | |
| 351 | 304 | func (x *Node) Unlink() { | |
| 352 | - | core.LazyRegister(&xNodeUnlink, "GLIB", "g_node_unlink", false) | |
| 353 | - | ||
| 354 | 305 | xNodeUnlink(x.GoPointer()) | |
| 355 | 306 | } | |
| 356 | 307 | ||
| @@ -436,4 +387,38 @@ const ( | |||
| 436 | 387 | func init() { | |
| 437 | 388 | core.SetPackageName("GLIB", "glib-2.0") | |
| 438 | 389 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | |
| 390 | + | var libs []uintptr | |
| 391 | + | for _, libPath := range core.GetPaths("GLIB") { | |
| 392 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 393 | + | if err != nil { | |
| 394 | + | panic(err) | |
| 395 | + | } | |
| 396 | + | libs = append(libs, lib) | |
| 397 | + | } | |
| 398 | + | ||
| 399 | + | core.PuregoSafeRegister(&xNodeChildIndex, libs, "g_node_child_index") | |
| 400 | + | core.PuregoSafeRegister(&xNodeChildPosition, libs, "g_node_child_position") | |
| 401 | + | core.PuregoSafeRegister(&xNodeChildrenForeach, libs, "g_node_children_foreach") | |
| 402 | + | core.PuregoSafeRegister(&xNodeCopy, libs, "g_node_copy") | |
| 403 | + | core.PuregoSafeRegister(&xNodeCopyDeep, libs, "g_node_copy_deep") | |
| 404 | + | core.PuregoSafeRegister(&xNodeDepth, libs, "g_node_depth") | |
| 405 | + | core.PuregoSafeRegister(&xNodeDestroy, libs, "g_node_destroy") | |
| 406 | + | core.PuregoSafeRegister(&xNodeFind, libs, "g_node_find") | |
| 407 | + | core.PuregoSafeRegister(&xNodeFindChild, libs, "g_node_find_child") | |
| 408 | + | core.PuregoSafeRegister(&xNodeFirstSibling, libs, "g_node_first_sibling") | |
| 409 | + | core.PuregoSafeRegister(&xNodeGetRoot, libs, "g_node_get_root") | |
| 410 | + | core.PuregoSafeRegister(&xNodeInsert, libs, "g_node_insert") | |
| 411 | + | core.PuregoSafeRegister(&xNodeInsertAfter, libs, "g_node_insert_after") | |
| 412 | + | core.PuregoSafeRegister(&xNodeInsertBefore, libs, "g_node_insert_before") | |
| 413 | + | core.PuregoSafeRegister(&xNodeIsAncestor, libs, "g_node_is_ancestor") | |
| 414 | + | core.PuregoSafeRegister(&xNodeLastChild, libs, "g_node_last_child") | |
| 415 | + | core.PuregoSafeRegister(&xNodeLastSibling, libs, "g_node_last_sibling") | |
| 416 | + | core.PuregoSafeRegister(&xNodeMaxHeight, libs, "g_node_max_height") | |
| 417 | + | core.PuregoSafeRegister(&xNodeNChildren, libs, "g_node_n_children") | |
| 418 | + | core.PuregoSafeRegister(&xNodeNNodes, libs, "g_node_n_nodes") | |
| 419 | + | core.PuregoSafeRegister(&xNodeNthChild, libs, "g_node_nth_child") | |
| 420 | + | core.PuregoSafeRegister(&xNodePrepend, libs, "g_node_prepend") | |
| 421 | + | core.PuregoSafeRegister(&xNodeReverseChildren, libs, "g_node_reverse_children") | |
| 422 | + | core.PuregoSafeRegister(&xNodeTraverse, libs, "g_node_traverse") | |
| 423 | + | core.PuregoSafeRegister(&xNodeUnlink, libs, "g_node_unlink") | |
| 439 | 424 | } | |
| @@ -5,6 +5,7 @@ import ( | |||||
| 5 | "structs" | 5 | "structs" | ||
| 6 | "unsafe" | 6 | "unsafe" | ||
| 7 | 7 | ||||
| 8 | + | "github.com/bnema/purego" | |||
| 8 | "github.com/bnema/puregotk/pkg/core" | 9 | "github.com/bnema/puregotk/pkg/core" | ||
| 9 | ) | 10 | ) | ||
| 10 | 11 | ||||
| @@ -51,8 +52,6 @@ var xNodeChildIndex func(uintptr, uintptr) int | |||||
| 51 | // Gets the position of the first child of a #GNode | 52 | // Gets the position of the first child of a #GNode | ||
| 52 | // which contains the given data. | 53 | // which contains the given data. | ||
| 53 | func (x *Node) ChildIndex(DataVar uintptr) int { | 54 | func (x *Node) ChildIndex(DataVar uintptr) int { | ||
| 54 | - | core.LazyRegister(&xNodeChildIndex, "GLIB", "g_node_child_index", false) | |||
| 55 | - | ||||
| 56 | cret := xNodeChildIndex(x.GoPointer(), DataVar) | 55 | cret := xNodeChildIndex(x.GoPointer(), DataVar) | ||
| 57 | return cret | 56 | return cret | ||
| 58 | } | 57 | } | ||
| @@ -63,8 +62,6 @@ var xNodeChildPosition func(uintptr, *Node) int | |||||
| 63 | // @child must be a child of @node. The first child is numbered 0, | 62 | // @child must be a child of @node. The first child is numbered 0, | ||
| 64 | // the second 1, and so on. | 63 | // the second 1, and so on. | ||
| 65 | func (x *Node) ChildPosition(ChildVar *Node) int { | 64 | func (x *Node) ChildPosition(ChildVar *Node) int { | ||
| 66 | - | core.LazyRegister(&xNodeChildPosition, "GLIB", "g_node_child_position", false) | |||
| 67 | - | ||||
| 68 | cret := xNodeChildPosition(x.GoPointer(), ChildVar) | 65 | cret := xNodeChildPosition(x.GoPointer(), ChildVar) | ||
| 69 | return cret | 66 | return cret | ||
| 70 | } | 67 | } | ||
| @@ -75,8 +72,6 @@ var xNodeChildrenForeach func(uintptr, TraverseFlags, uintptr, uintptr) | |||||
| 75 | // doesn't descend beneath the child nodes. @func must not do anything | 72 | // doesn't descend beneath the child nodes. @func must not do anything | ||
| 76 | // that would modify the structure of the tree. | 73 | // that would modify the structure of the tree. | ||
| 77 | func (x *Node) ChildrenForeach(FlagsVar TraverseFlags, FuncVar *NodeForeachFunc, DataVar uintptr) { | 74 | func (x *Node) ChildrenForeach(FlagsVar TraverseFlags, FuncVar *NodeForeachFunc, DataVar uintptr) { | ||
| 78 | - | core.LazyRegister(&xNodeChildrenForeach, "GLIB", "g_node_children_foreach", false) | |||
| 79 | - | ||||
| 80 | xNodeChildrenForeach(x.GoPointer(), FlagsVar, NewCallback(FuncVar), DataVar) | 75 | xNodeChildrenForeach(x.GoPointer(), FlagsVar, NewCallback(FuncVar), DataVar) | ||
| 81 | } | 76 | } | ||
| 82 | 77 | ||||
| @@ -85,8 +80,6 @@ var xNodeCopy func(uintptr) uintptr | |||||
| 85 | // Recursively copies a #GNode (but does not deep-copy the data inside the | 80 | // Recursively copies a #GNode (but does not deep-copy the data inside the | ||
| 86 | // nodes, see g_node_copy_deep() if you need that). | 81 | // nodes, see g_node_copy_deep() if you need that). | ||
| 87 | func (x *Node) Copy() *Node { | 82 | func (x *Node) Copy() *Node { | ||
| 88 | - | core.LazyRegister(&xNodeCopy, "GLIB", "g_node_copy", false) | |||
| 89 | - | ||||
| 90 | cret := xNodeCopy(x.GoPointer()) | 83 | cret := xNodeCopy(x.GoPointer()) | ||
| 91 | if cret == 0 { | 84 | if cret == 0 { | ||
| 92 | return nil | 85 | return nil | ||
| @@ -98,8 +91,6 @@ var xNodeCopyDeep func(uintptr, uintptr, uintptr) uintptr | |||||
| 98 | 91 | ||||
| 99 | // Recursively copies a #GNode and its data. | 92 | // Recursively copies a #GNode and its data. | ||
| 100 | func (x *Node) CopyDeep(CopyFuncVar *CopyFunc, DataVar uintptr) *Node { | 93 | func (x *Node) CopyDeep(CopyFuncVar *CopyFunc, DataVar uintptr) *Node { | ||
| 101 | - | core.LazyRegister(&xNodeCopyDeep, "GLIB", "g_node_copy_deep", false) | |||
| 102 | - | ||||
| 103 | cret := xNodeCopyDeep(x.GoPointer(), NewCallback(CopyFuncVar), DataVar) | 94 | cret := xNodeCopyDeep(x.GoPointer(), NewCallback(CopyFuncVar), DataVar) | ||
| 104 | if cret == 0 { | 95 | if cret == 0 { | ||
| 105 | return nil | 96 | return nil | ||
| @@ -114,8 +105,6 @@ var xNodeDepth func(uintptr) uint | |||||
| 114 | // If @node is %NULL the depth is 0. The root node has a depth of 1. | 105 | // If @node is %NULL the depth is 0. The root node has a depth of 1. | ||
| 115 | // For the children of the root node the depth is 2. And so on. | 106 | // For the children of the root node the depth is 2. And so on. | ||
| 116 | func (x *Node) Depth() uint { | 107 | func (x *Node) Depth() uint { | ||
| 117 | - | core.LazyRegister(&xNodeDepth, "GLIB", "g_node_depth", false) | |||
| 118 | - | ||||
| 119 | cret := xNodeDepth(x.GoPointer()) | 108 | cret := xNodeDepth(x.GoPointer()) | ||
| 120 | return cret | 109 | return cret | ||
| 121 | } | 110 | } | ||
| @@ -125,8 +114,6 @@ var xNodeDestroy func(uintptr) | |||||
| 125 | // Removes @root and its children from the tree, freeing any memory | 114 | // Removes @root and its children from the tree, freeing any memory | ||
| 126 | // allocated. | 115 | // allocated. | ||
| 127 | func (x *Node) Destroy() { | 116 | func (x *Node) Destroy() { | ||
| 128 | - | core.LazyRegister(&xNodeDestroy, "GLIB", "g_node_destroy", false) | |||
| 129 | - | ||||
| 130 | xNodeDestroy(x.GoPointer()) | 117 | xNodeDestroy(x.GoPointer()) | ||
| 131 | } | 118 | } | ||
| 132 | 119 | ||||
| @@ -134,8 +121,6 @@ var xNodeFind func(uintptr, TraverseType, TraverseFlags, uintptr) uintptr | |||||
| 134 | 121 | ||||
| 135 | // Finds a #GNode in a tree. | 122 | // Finds a #GNode in a tree. | ||
| 136 | func (x *Node) Find(OrderVar TraverseType, FlagsVar TraverseFlags, DataVar uintptr) *Node { | 123 | func (x *Node) Find(OrderVar TraverseType, FlagsVar TraverseFlags, DataVar uintptr) *Node { | ||
| 137 | - | core.LazyRegister(&xNodeFind, "GLIB", "g_node_find", false) | |||
| 138 | - | ||||
| 139 | cret := xNodeFind(x.GoPointer(), OrderVar, FlagsVar, DataVar) | 124 | cret := xNodeFind(x.GoPointer(), OrderVar, FlagsVar, DataVar) | ||
| 140 | if cret == 0 { | 125 | if cret == 0 { | ||
| 141 | return nil | 126 | return nil | ||
| @@ -147,8 +132,6 @@ var xNodeFindChild func(uintptr, TraverseFlags, uintptr) uintptr | |||||
| 147 | 132 | ||||
| 148 | // Finds the first child of a #GNode with the given data. | 133 | // Finds the first child of a #GNode with the given data. | ||
| 149 | func (x *Node) FindChild(FlagsVar TraverseFlags, DataVar uintptr) *Node { | 134 | func (x *Node) FindChild(FlagsVar TraverseFlags, DataVar uintptr) *Node { | ||
| 150 | - | core.LazyRegister(&xNodeFindChild, "GLIB", "g_node_find_child", false) | |||
| 151 | - | ||||
| 152 | cret := xNodeFindChild(x.GoPointer(), FlagsVar, DataVar) | 135 | cret := xNodeFindChild(x.GoPointer(), FlagsVar, DataVar) | ||
| 153 | if cret == 0 { | 136 | if cret == 0 { | ||
| 154 | return nil | 137 | return nil | ||
| @@ -161,8 +144,6 @@ var xNodeFirstSibling func(uintptr) uintptr | |||||
| 161 | // Gets the first sibling of a #GNode. | 144 | // Gets the first sibling of a #GNode. | ||
| 162 | // This could possibly be the node itself. | 145 | // This could possibly be the node itself. | ||
| 163 | func (x *Node) FirstSibling() *Node { | 146 | func (x *Node) FirstSibling() *Node { | ||
| 164 | - | core.LazyRegister(&xNodeFirstSibling, "GLIB", "g_node_first_sibling", false) | |||
| 165 | - | ||||
| 166 | cret := xNodeFirstSibling(x.GoPointer()) | 147 | cret := xNodeFirstSibling(x.GoPointer()) | ||
| 167 | if cret == 0 { | 148 | if cret == 0 { | ||
| 168 | return nil | 149 | return nil | ||
| @@ -174,8 +155,6 @@ var xNodeGetRoot func(uintptr) uintptr | |||||
| 174 | 155 | ||||
| 175 | // Gets the root of a tree. | 156 | // Gets the root of a tree. | ||
| 176 | func (x *Node) GetRoot() *Node { | 157 | func (x *Node) GetRoot() *Node { | ||
| 177 | - | core.LazyRegister(&xNodeGetRoot, "GLIB", "g_node_get_root", false) | |||
| 178 | - | ||||
| 179 | cret := xNodeGetRoot(x.GoPointer()) | 158 | cret := xNodeGetRoot(x.GoPointer()) | ||
| 180 | if cret == 0 { | 159 | if cret == 0 { | ||
| 181 | return nil | 160 | return nil | ||
| @@ -187,8 +166,6 @@ var xNodeInsert func(uintptr, int, *Node) uintptr | |||||
| 187 | 166 | ||||
| 188 | // Inserts a #GNode beneath the parent at the given position. | 167 | // Inserts a #GNode beneath the parent at the given position. | ||
| 189 | func (x *Node) Insert(PositionVar int, NodeVar *Node) *Node { | 168 | func (x *Node) Insert(PositionVar int, NodeVar *Node) *Node { | ||
| 190 | - | core.LazyRegister(&xNodeInsert, "GLIB", "g_node_insert", false) | |||
| 191 | - | ||||
| 192 | cret := xNodeInsert(x.GoPointer(), PositionVar, NodeVar) | 169 | cret := xNodeInsert(x.GoPointer(), PositionVar, NodeVar) | ||
| 193 | if cret == 0 { | 170 | if cret == 0 { | ||
| 194 | return nil | 171 | return nil | ||
| @@ -200,8 +177,6 @@ var xNodeInsertAfter func(uintptr, *Node, *Node) uintptr | |||||
| 200 | 177 | ||||
| 201 | // Inserts a #GNode beneath the parent after the given sibling. | 178 | // Inserts a #GNode beneath the parent after the given sibling. | ||
| 202 | func (x *Node) InsertAfter(SiblingVar *Node, NodeVar *Node) *Node { | 179 | func (x *Node) InsertAfter(SiblingVar *Node, NodeVar *Node) *Node { | ||
| 203 | - | core.LazyRegister(&xNodeInsertAfter, "GLIB", "g_node_insert_after", false) | |||
| 204 | - | ||||
| 205 | cret := xNodeInsertAfter(x.GoPointer(), SiblingVar, NodeVar) | 180 | cret := xNodeInsertAfter(x.GoPointer(), SiblingVar, NodeVar) | ||
| 206 | if cret == 0 { | 181 | if cret == 0 { | ||
| 207 | return nil | 182 | return nil | ||
| @@ -213,8 +188,6 @@ var xNodeInsertBefore func(uintptr, *Node, *Node) uintptr | |||||
| 213 | 188 | ||||
| 214 | // Inserts a #GNode beneath the parent before the given sibling. | 189 | // Inserts a #GNode beneath the parent before the given sibling. | ||
| 215 | func (x *Node) InsertBefore(SiblingVar *Node, NodeVar *Node) *Node { | 190 | func (x *Node) InsertBefore(SiblingVar *Node, NodeVar *Node) *Node { | ||
| 216 | - | core.LazyRegister(&xNodeInsertBefore, "GLIB", "g_node_insert_before", false) | |||
| 217 | - | ||||
| 218 | cret := xNodeInsertBefore(x.GoPointer(), SiblingVar, NodeVar) | 191 | cret := xNodeInsertBefore(x.GoPointer(), SiblingVar, NodeVar) | ||
| 219 | if cret == 0 { | 192 | if cret == 0 { | ||
| 220 | return nil | 193 | return nil | ||
| @@ -228,8 +201,6 @@ var xNodeIsAncestor func(uintptr, *Node) bool | |||||
| 228 | // This is true if node is the parent of @descendant, | 201 | // This is true if node is the parent of @descendant, | ||
| 229 | // or if node is the grandparent of @descendant etc. | 202 | // or if node is the grandparent of @descendant etc. | ||
| 230 | func (x *Node) IsAncestor(DescendantVar *Node) bool { | 203 | func (x *Node) IsAncestor(DescendantVar *Node) bool { | ||
| 231 | - | core.LazyRegister(&xNodeIsAncestor, "GLIB", "g_node_is_ancestor", false) | |||
| 232 | - | ||||
| 233 | cret := xNodeIsAncestor(x.GoPointer(), DescendantVar) | 204 | cret := xNodeIsAncestor(x.GoPointer(), DescendantVar) | ||
| 234 | return cret | 205 | return cret | ||
| 235 | } | 206 | } | ||
| @@ -238,8 +209,6 @@ var xNodeLastChild func(uintptr) uintptr | |||||
| 238 | 209 | ||||
| 239 | // Gets the last child of a #GNode. | 210 | // Gets the last child of a #GNode. | ||
| 240 | func (x *Node) LastChild() *Node { | 211 | func (x *Node) LastChild() *Node { | ||
| 241 | - | core.LazyRegister(&xNodeLastChild, "GLIB", "g_node_last_child", false) | |||
| 242 | - | ||||
| 243 | cret := xNodeLastChild(x.GoPointer()) | 212 | cret := xNodeLastChild(x.GoPointer()) | ||
| 244 | if cret == 0 { | 213 | if cret == 0 { | ||
| 245 | return nil | 214 | return nil | ||
| @@ -252,8 +221,6 @@ var xNodeLastSibling func(uintptr) uintptr | |||||
| 252 | // Gets the last sibling of a #GNode. | 221 | // Gets the last sibling of a #GNode. | ||
| 253 | // This could possibly be the node itself. | 222 | // This could possibly be the node itself. | ||
| 254 | func (x *Node) LastSibling() *Node { | 223 | func (x *Node) LastSibling() *Node { | ||
| 255 | - | core.LazyRegister(&xNodeLastSibling, "GLIB", "g_node_last_sibling", false) | |||
| 256 | - | ||||
| 257 | cret := xNodeLastSibling(x.GoPointer()) | 224 | cret := xNodeLastSibling(x.GoPointer()) | ||
| 258 | if cret == 0 { | 225 | if cret == 0 { | ||
| 259 | return nil | 226 | return nil | ||
| @@ -269,8 +236,6 @@ var xNodeMaxHeight func(uintptr) uint | |||||
| 269 | // If @root is %NULL, 0 is returned. If @root has no children, | 236 | // If @root is %NULL, 0 is returned. If @root has no children, | ||
| 270 | // 1 is returned. If @root has children, 2 is returned. And so on. | 237 | // 1 is returned. If @root has children, 2 is returned. And so on. | ||
| 271 | func (x *Node) MaxHeight() uint { | 238 | func (x *Node) MaxHeight() uint { | ||
| 272 | - | core.LazyRegister(&xNodeMaxHeight, "GLIB", "g_node_max_height", false) | |||
| 273 | - | ||||
| 274 | cret := xNodeMaxHeight(x.GoPointer()) | 239 | cret := xNodeMaxHeight(x.GoPointer()) | ||
| 275 | return cret | 240 | return cret | ||
| 276 | } | 241 | } | ||
| @@ -279,8 +244,6 @@ var xNodeNChildren func(uintptr) uint | |||||
| 279 | 244 | ||||
| 280 | // Gets the number of children of a #GNode. | 245 | // Gets the number of children of a #GNode. | ||
| 281 | func (x *Node) NChildren() uint { | 246 | func (x *Node) NChildren() uint { | ||
| 282 | - | core.LazyRegister(&xNodeNChildren, "GLIB", "g_node_n_children", false) | |||
| 283 | - | ||||
| 284 | cret := xNodeNChildren(x.GoPointer()) | 247 | cret := xNodeNChildren(x.GoPointer()) | ||
| 285 | return cret | 248 | return cret | ||
| 286 | } | 249 | } | ||
| @@ -289,8 +252,6 @@ var xNodeNNodes func(uintptr, TraverseFlags) uint | |||||
| 289 | 252 | ||||
| 290 | // Gets the number of nodes in a tree. | 253 | // Gets the number of nodes in a tree. | ||
| 291 | func (x *Node) NNodes(FlagsVar TraverseFlags) uint { | 254 | func (x *Node) NNodes(FlagsVar TraverseFlags) uint { | ||
| 292 | - | core.LazyRegister(&xNodeNNodes, "GLIB", "g_node_n_nodes", false) | |||
| 293 | - | ||||
| 294 | cret := xNodeNNodes(x.GoPointer(), FlagsVar) | 255 | cret := xNodeNNodes(x.GoPointer(), FlagsVar) | ||
| 295 | return cret | 256 | return cret | ||
| 296 | } | 257 | } | ||
| @@ -301,8 +262,6 @@ var xNodeNthChild func(uintptr, uint) uintptr | |||||
| 301 | // The first child is at index 0. If the index is | 262 | // The first child is at index 0. If the index is | ||
| 302 | // too big, %NULL is returned. | 263 | // too big, %NULL is returned. | ||
| 303 | func (x *Node) NthChild(NVar uint) *Node { | 264 | func (x *Node) NthChild(NVar uint) *Node { | ||
| 304 | - | core.LazyRegister(&xNodeNthChild, "GLIB", "g_node_nth_child", false) | |||
| 305 | - | ||||
| 306 | cret := xNodeNthChild(x.GoPointer(), NVar) | 265 | cret := xNodeNthChild(x.GoPointer(), NVar) | ||
| 307 | if cret == 0 { | 266 | if cret == 0 { | ||
| 308 | return nil | 267 | return nil | ||
| @@ -314,8 +273,6 @@ var xNodePrepend func(uintptr, *Node) uintptr | |||||
| 314 | 273 | ||||
| 315 | // Inserts a #GNode as the first child of the given parent. | 274 | // Inserts a #GNode as the first child of the given parent. | ||
| 316 | func (x *Node) Prepend(NodeVar *Node) *Node { | 275 | func (x *Node) Prepend(NodeVar *Node) *Node { | ||
| 317 | - | core.LazyRegister(&xNodePrepend, "GLIB", "g_node_prepend", false) | |||
| 318 | - | ||||
| 319 | cret := xNodePrepend(x.GoPointer(), NodeVar) | 276 | cret := xNodePrepend(x.GoPointer(), NodeVar) | ||
| 320 | if cret == 0 { | 277 | if cret == 0 { | ||
| 321 | return nil | 278 | return nil | ||
| @@ -328,8 +285,6 @@ var xNodeReverseChildren func(uintptr) | |||||
| 328 | // Reverses the order of the children of a #GNode. | 285 | // Reverses the order of the children of a #GNode. | ||
| 329 | // (It doesn't change the order of the grandchildren.) | 286 | // (It doesn't change the order of the grandchildren.) | ||
| 330 | func (x *Node) ReverseChildren() { | 287 | func (x *Node) ReverseChildren() { | ||
| 331 | - | core.LazyRegister(&xNodeReverseChildren, "GLIB", "g_node_reverse_children", false) | |||
| 332 | - | ||||
| 333 | xNodeReverseChildren(x.GoPointer()) | 288 | xNodeReverseChildren(x.GoPointer()) | ||
| 334 | } | 289 | } | ||
| 335 | 290 | ||||
| @@ -340,8 +295,6 @@ var xNodeTraverse func(uintptr, TraverseType, TraverseFlags, int, uintptr, uintp | |||||
| 340 | // The traversal can be halted at any point by returning %TRUE from @func. | 295 | // The traversal can be halted at any point by returning %TRUE from @func. | ||
| 341 | // @func must not do anything that would modify the structure of the tree. | 296 | // @func must not do anything that would modify the structure of the tree. | ||
| 342 | func (x *Node) Traverse(OrderVar TraverseType, FlagsVar TraverseFlags, MaxDepthVar int, FuncVar *NodeTraverseFunc, DataVar uintptr) { | 297 | func (x *Node) Traverse(OrderVar TraverseType, FlagsVar TraverseFlags, MaxDepthVar int, FuncVar *NodeTraverseFunc, DataVar uintptr) { | ||
| 343 | - | core.LazyRegister(&xNodeTraverse, "GLIB", "g_node_traverse", false) | |||
| 344 | - | ||||
| 345 | xNodeTraverse(x.GoPointer(), OrderVar, FlagsVar, MaxDepthVar, NewCallback(FuncVar), DataVar) | 298 | xNodeTraverse(x.GoPointer(), OrderVar, FlagsVar, MaxDepthVar, NewCallback(FuncVar), DataVar) | ||
| 346 | } | 299 | } | ||
| 347 | 300 | ||||
| @@ -349,8 +302,6 @@ var xNodeUnlink func(uintptr) | |||||
| 349 | 302 | ||||
| 350 | // Unlinks a #GNode from a tree, resulting in two separate trees. | 303 | // Unlinks a #GNode from a tree, resulting in two separate trees. | ||
| 351 | func (x *Node) Unlink() { | 304 | func (x *Node) Unlink() { | ||
| 352 | - | core.LazyRegister(&xNodeUnlink, "GLIB", "g_node_unlink", false) | |||
| 353 | - | ||||
| 354 | xNodeUnlink(x.GoPointer()) | 305 | xNodeUnlink(x.GoPointer()) | ||
| 355 | } | 306 | } | ||
| 356 | 307 | ||||
| @@ -436,4 +387,38 @@ const ( | |||||
| 436 | func init() { | 387 | func init() { | ||
| 437 | core.SetPackageName("GLIB", "glib-2.0") | 388 | core.SetPackageName("GLIB", "glib-2.0") | ||
| 438 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | 389 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | ||
| 390 | + | var libs []uintptr | |||
| 391 | + | for _, libPath := range core.GetPaths("GLIB") { | |||
| 392 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 393 | + | if err != nil { | |||
| 394 | + | panic(err) | |||
| 395 | + | } | |||
| 396 | + | libs = append(libs, lib) | |||
| 397 | + | } | |||
| 398 | + | ||||
| 399 | + | core.PuregoSafeRegister(&xNodeChildIndex, libs, "g_node_child_index") | |||
| 400 | + | core.PuregoSafeRegister(&xNodeChildPosition, libs, "g_node_child_position") | |||
| 401 | + | core.PuregoSafeRegister(&xNodeChildrenForeach, libs, "g_node_children_foreach") | |||
| 402 | + | core.PuregoSafeRegister(&xNodeCopy, libs, "g_node_copy") | |||
| 403 | + | core.PuregoSafeRegister(&xNodeCopyDeep, libs, "g_node_copy_deep") | |||
| 404 | + | core.PuregoSafeRegister(&xNodeDepth, libs, "g_node_depth") | |||
| 405 | + | core.PuregoSafeRegister(&xNodeDestroy, libs, "g_node_destroy") | |||
| 406 | + | core.PuregoSafeRegister(&xNodeFind, libs, "g_node_find") | |||
| 407 | + | core.PuregoSafeRegister(&xNodeFindChild, libs, "g_node_find_child") | |||
| 408 | + | core.PuregoSafeRegister(&xNodeFirstSibling, libs, "g_node_first_sibling") | |||
| 409 | + | core.PuregoSafeRegister(&xNodeGetRoot, libs, "g_node_get_root") | |||
| 410 | + | core.PuregoSafeRegister(&xNodeInsert, libs, "g_node_insert") | |||
| 411 | + | core.PuregoSafeRegister(&xNodeInsertAfter, libs, "g_node_insert_after") | |||
| 412 | + | core.PuregoSafeRegister(&xNodeInsertBefore, libs, "g_node_insert_before") | |||
| 413 | + | core.PuregoSafeRegister(&xNodeIsAncestor, libs, "g_node_is_ancestor") | |||
| 414 | + | core.PuregoSafeRegister(&xNodeLastChild, libs, "g_node_last_child") | |||
| 415 | + | core.PuregoSafeRegister(&xNodeLastSibling, libs, "g_node_last_sibling") | |||
| 416 | + | core.PuregoSafeRegister(&xNodeMaxHeight, libs, "g_node_max_height") | |||
| 417 | + | core.PuregoSafeRegister(&xNodeNChildren, libs, "g_node_n_children") | |||
| 418 | + | core.PuregoSafeRegister(&xNodeNNodes, libs, "g_node_n_nodes") | |||
| 419 | + | core.PuregoSafeRegister(&xNodeNthChild, libs, "g_node_nth_child") | |||
| 420 | + | core.PuregoSafeRegister(&xNodePrepend, libs, "g_node_prepend") | |||
| 421 | + | core.PuregoSafeRegister(&xNodeReverseChildren, libs, "g_node_reverse_children") | |||
| 422 | + | core.PuregoSafeRegister(&xNodeTraverse, libs, "g_node_traverse") | |||
| 423 | + | core.PuregoSafeRegister(&xNodeUnlink, libs, "g_node_unlink") | |||
| 439 | } | 424 | } | ||