Merge pull request #350 from bnema/fix/repin-fixed-puregotk
fix(deps): validate puregotk lazy registration fix
907 files · +27874 -25296
M go.mod +3 -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.0 | |
| 14 | + | github.com/bnema/puregotk v0.7.1-0.20260714200603-7370c78950ef | |
| 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 | |
| @@ -47,6 +47,7 @@ require ( | |||
| 47 | 47 | github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect | |
| 48 | 48 | github.com/fatih/color v1.19.0 // indirect | |
| 49 | 49 | github.com/go-viper/mapstructure/v2 v2.5.0 // indirect | |
| 50 | + | github.com/google/go-cmp v0.7.0 // indirect | |
| 50 | 51 | github.com/inconshreveable/mousetrap v1.1.0 // indirect | |
| 51 | 52 | github.com/lucasb-eyer/go-colorful v1.4.0 // indirect | |
| 52 | 53 | github.com/mattn/go-colorable v0.1.14 // indirect | |
| @@ -80,6 +81,7 @@ require ( | |||
| 80 | 81 | golang.org/x/text v0.40.0 // indirect | |
| 81 | 82 | golang.org/x/tools v0.47.0 // indirect | |
| 82 | 83 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect | |
| 84 | + | mvdan.cc/gofumpt v0.9.2 // indirect | |
| 83 | 85 | ) | |
| 84 | 86 | ||
| 85 | 87 | tool github.com/a-h/templ/cmd/templ | |
| @@ -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.0 | 14 | + | github.com/bnema/puregotk v0.7.1-0.20260714200603-7370c78950ef |
| 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 | ||
| @@ -47,6 +47,7 @@ require ( | |||||
| 47 | github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect | 47 | github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect | ||
| 48 | github.com/fatih/color v1.19.0 // indirect | 48 | github.com/fatih/color v1.19.0 // indirect | ||
| 49 | github.com/go-viper/mapstructure/v2 v2.5.0 // indirect | 49 | github.com/go-viper/mapstructure/v2 v2.5.0 // indirect | ||
| 50 | + | github.com/google/go-cmp v0.7.0 // indirect | |||
| 50 | github.com/inconshreveable/mousetrap v1.1.0 // indirect | 51 | github.com/inconshreveable/mousetrap v1.1.0 // indirect | ||
| 51 | github.com/lucasb-eyer/go-colorful v1.4.0 // indirect | 52 | github.com/lucasb-eyer/go-colorful v1.4.0 // indirect | ||
| 52 | github.com/mattn/go-colorable v0.1.14 // indirect | 53 | github.com/mattn/go-colorable v0.1.14 // indirect | ||
| @@ -80,6 +81,7 @@ require ( | |||||
| 80 | golang.org/x/text v0.40.0 // indirect | 81 | golang.org/x/text v0.40.0 // indirect | ||
| 81 | golang.org/x/tools v0.47.0 // indirect | 82 | golang.org/x/tools v0.47.0 // indirect | ||
| 82 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect | 83 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect | ||
| 84 | + | mvdan.cc/gofumpt v0.9.2 // indirect | |||
| 83 | ) | 85 | ) | ||
| 84 | 86 | ||||
| 85 | tool github.com/a-h/templ/cmd/templ | 87 | tool github.com/a-h/templ/cmd/templ | ||
M go.sum +4 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +197 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +10 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +99 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +95 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +7 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +33 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +66 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +10 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +4 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +24 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +14 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +3 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +22 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +23 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +47 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +10 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +33 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +18 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +47 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +14 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +17 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +17 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +34 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +45 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +40 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +13 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +40 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +61 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +10 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +36 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +18 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +7 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +69 -56 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +5 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +5 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +63 -44 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +17 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +10 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +36 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +60 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +48 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +24 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +38 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +18 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +31 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +45 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +24 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +41 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +40 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +39 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +34 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +17 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +49 -44 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +20 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +25 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +33 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +33 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +6 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +35 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +45 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +123 -87 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +30 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +41 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +64 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +40 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +7 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +78 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +15 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +19 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +10 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +14 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +66 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +57 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/cairo/main.go +36 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +10 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +12 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +20 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +34 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +12 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +26 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +28 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +23 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +26 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +12 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +36 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +27 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +51 -43 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +10 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +53 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder_extra.go +6 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +20 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +6 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +11 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +19 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +21 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +120 -118 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +22 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +17 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +40 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +41 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +19 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +42 -35 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 +63 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +4 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +2 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +47 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +36 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +19 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +11 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +7 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +46 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +27 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +157 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +24 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +9 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +95 -72 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +26 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-core.go +9 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-io.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-loader.go +13 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-transform.go +11 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf.go +102 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/main.go +5 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gaction.go +59 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactiongroup.go +96 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactionmap.go +33 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gappinfo.go +244 -116 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplication.go +79 -55 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplicationcommandline.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncinitable.go +25 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncresult.go +26 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedinputstream.go +26 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedoutputstream.go +11 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbytesicon.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcancellable.go +26 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcharsetconverter.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcontenttype.go +30 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverter.go +23 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverterinputstream.go +3 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverteroutputstream.go +3 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcredentials.go +12 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatagrambased.go +45 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatainputstream.go +31 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdataoutputstream.go +14 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusactiongroup.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusaddress.go +10 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusauthobserver.go +6 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusconnection.go +77 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbuserror.go +16 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterface.go +26 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterfaceskeleton.go +25 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusintrospection.go +54 -56 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmenumodel.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmessage.go +88 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmethodinvocation.go +35 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnameowning.go +10 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnamewatching.go +10 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobject.go +19 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanager.go +26 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerclient.go +16 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerserver.go +13 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectproxy.go +3 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectskeleton.go +12 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusproxy.go +42 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusserver.go +14 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusutils.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontroller.go +12 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontrollerdbus.go +4 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdrive.go +214 -82 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsclientconnection.go +34 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsconnection.go +207 -80 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsserverconnection.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblem.go +6 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblemedicon.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfile.go +1148 -450 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileattribute.go +13 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileenumerator.go +34 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileicon.go +3 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinfo.go +138 -84 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinputstream.go +17 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileiostream.go +23 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilemonitor.go +9 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilenamecompleter.go +8 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileoutputstream.go +23 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilterinputstream.go +6 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilteroutputstream.go +6 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gicon.go +32 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddress.go +40 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddressmask.go +14 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetsocketaddress.go +10 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginitable.go +11 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginputstream.go +52 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioenums.go +90 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioerror.go +6 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giomodule.go +26 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioscheduler.go +4 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giostream.go +25 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giotypes.go +70 -60 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giptosmessage.go +6 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gipv6tclassmessage.go +6 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/glistmodel.go +33 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gliststore.go +22 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gloadableicon.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryinputstream.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemorymonitor.go +2 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryoutputstream.go +13 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenu.go +62 -50 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenumodel.go +31 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmount.go +215 -86 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmountoperation.go +40 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativesocketaddress.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativevolumemonitor.go +7 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkaddress.go +11 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworking.go +3 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkmonitor.go +49 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkservice.go +12 -19 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 +86 -72 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 +30 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableoutputstream.go +41 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableutils.go +7 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpowerprofilemonitor.go +7 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpropertyaction.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxy.go +35 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddress.go +16 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddressenumerator.go +7 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyresolver.go +35 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gremoteactiongroup.go +12 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresolver.go +75 -67 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresource.go +19 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gseekable.go +41 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettings.go +99 -67 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsbackend.go +19 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsschema.go +48 -43 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleaction.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleactiongroup.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleasyncresult.go +46 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleiostream.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimplepermission.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleproxyresolver.go +8 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocket.go +87 -72 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddress.go +11 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddressenumerator.go +13 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketclient.go +54 -44 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnectable.go +19 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnection.go +14 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketcontrolmessage.go +10 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketlistener.go +18 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketservice.go +8 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsrvtarget.go +2 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocess.go +40 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocesslauncher.go +34 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtask.go +70 -52 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpconnection.go +5 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpwrapperconnection.go +3 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtestdbus.go +16 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthemedicon.go +10 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedresolver.go +7 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedsocketservice.go +2 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsbackend.go +69 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlscertificate.go +25 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsclientconnection.go +55 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsconnection.go +56 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsdatabase.go +51 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsfiledatabase.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsinteraction.go +27 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlspassword.go +20 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsserverconnection.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixconnection.go +11 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixcredentialsmessage.go +6 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixfdlist.go +11 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gunixsocketaddress.go +14 -22 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvfs.go +18 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolume.go +143 -58 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolumemonitor.go +11 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibcompressor.go +9 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibdecompressor.go +3 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/main.go +2 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gallocator.go +32 -28 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/garray.go +82 -59 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gasyncqueue.go +56 -39 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gatomic.go +43 -34 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbacktrace.go +5 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbase64.go +13 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbitlock.go +23 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbookmarkfile.go +69 -61 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcache.go +10 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcharset.go +13 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gchecksum.go +23 -25 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcompletion.go +14 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gconvert.go +25 -28 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdataset.go +36 -28 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdate.go +103 -65 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdatetime.go +107 -66 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdir.go +12 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/genviron.go +17 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gerror.go +30 -29 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gfileutils.go +45 -38 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ggettext.go +13 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghash.go +81 -53 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghmac.go +21 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghook.go +28 -26 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghostutils.go +11 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/giochannel.go +83 -67 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gkeyfile.go +72 -62 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/glib-types.go +4 -12 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/glist.go +2 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmain.go +181 -117 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmappedfile.go +15 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmarkup.go +51 -43 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmem.go +44 -31 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmessages.go +70 -45 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gnode.go +50 -35 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/goption.go +57 -43 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpathbuf.go +26 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpattern.go +19 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpoll.go +3 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gprimes.go +3 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gprintf.go +15 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gqsort.go +5 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gquark.go +13 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gqueue.go +84 -52 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grand.go +33 -30 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grcbox.go +29 -27 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grefcount.go +17 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grefstring.go +15 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gregex.go +72 -57 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grel.go +20 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gscanner.go +40 -30 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gsequence.go +74 -49 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gshell.go +5 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gslice.go +17 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gslist.go +2 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gspawn.go +12 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstdio.go +33 -27 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstrfuncs.go +115 -71 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstring.go +77 -51 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstringchunk.go +10 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstrvbuilder.go +19 -22 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtestutils.go +132 -80 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gthread.go +146 -97 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gthreadpool.go +26 -25 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtimer.go +18 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtimezone.go +27 -26 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtrashstack.go +8 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtree.go +63 -45
| @@ -5,7 +5,6 @@ import ( | |||
| 5 | 5 | "structs" | |
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | - | "github.com/bnema/purego" | |
| 9 | 8 | "github.com/bnema/puregotk/pkg/core" | |
| 10 | 9 | "github.com/bnema/puregotk/v4/gobject/types" | |
| 11 | 10 | ) | |
| @@ -32,6 +31,7 @@ type Tree struct { | |||
| 32 | 31 | var xTreeGLibType func() types.GType | |
| 33 | 32 | ||
| 34 | 33 | func TreeGLibType() types.GType { | |
| 34 | + | core.LazyRegister(&xTreeGLibType, "GLIB", "g_tree_get_type", false) | |
| 35 | 35 | return xTreeGLibType() | |
| 36 | 36 | } | |
| 37 | 37 | ||
| @@ -51,6 +51,8 @@ var xNewTree func(uintptr) uintptr | |||
| 51 | 51 | ||
| 52 | 52 | // Creates a new #GTree. | |
| 53 | 53 | func NewTree(KeyCompareFuncVar *CompareFunc) *Tree { | |
| 54 | + | core.LazyRegister(&xNewTree, "GLIB", "g_tree_new", false) | |
| 55 | + | ||
| 54 | 56 | cret := xNewTree(NewCallback(KeyCompareFuncVar)) | |
| 55 | 57 | if cret == 0 { | |
| 56 | 58 | return nil | |
| @@ -64,6 +66,8 @@ var xNewTreeFull func(uintptr, uintptr, uintptr, uintptr) uintptr | |||
| 64 | 66 | // to free the memory allocated for the key and value that get called when | |
| 65 | 67 | // removing the entry from the #GTree. | |
| 66 | 68 | func NewTreeFull(KeyCompareFuncVar *CompareDataFunc, KeyCompareDataVar uintptr, KeyDestroyFuncVar *DestroyNotify, ValueDestroyFuncVar *DestroyNotify) *Tree { | |
| 69 | + | core.LazyRegister(&xNewTreeFull, "GLIB", "g_tree_new_full", false) | |
| 70 | + | ||
| 67 | 71 | cret := xNewTreeFull(NewCallback(KeyCompareFuncVar), KeyCompareDataVar, NewCallbackNullable(KeyDestroyFuncVar), NewCallbackNullable(ValueDestroyFuncVar)) | |
| 68 | 72 | if cret == 0 { | |
| 69 | 73 | return nil | |
| @@ -76,6 +80,8 @@ var xNewTreeWithData func(uintptr, uintptr) uintptr | |||
| 76 | 80 | // Creates a new #GTree with a comparison function that accepts user data. | |
| 77 | 81 | // See g_tree_new() for more details. | |
| 78 | 82 | func NewTreeWithData(KeyCompareFuncVar *CompareDataFunc, KeyCompareDataVar uintptr) *Tree { | |
| 83 | + | core.LazyRegister(&xNewTreeWithData, "GLIB", "g_tree_new_with_data", false) | |
| 84 | + | ||
| 79 | 85 | cret := xNewTreeWithData(NewCallback(KeyCompareFuncVar), KeyCompareDataVar) | |
| 80 | 86 | if cret == 0 { | |
| 81 | 87 | return nil | |
| @@ -92,6 +98,8 @@ var xTreeDestroy func(uintptr) | |||
| 92 | 98 | // you supplied will be called on all keys and values before destroying | |
| 93 | 99 | // the #GTree. | |
| 94 | 100 | func (x *Tree) Destroy() { | |
| 101 | + | core.LazyRegister(&xTreeDestroy, "GLIB", "g_tree_destroy", false) | |
| 102 | + | ||
| 95 | 103 | xTreeDestroy(x.GoPointer()) | |
| 96 | 104 | } | |
| 97 | 105 | ||
| @@ -106,6 +114,8 @@ var xTreeForeach func(uintptr, uintptr, uintptr) | |||
| 106 | 114 | // to add each item to a list in your #GTraverseFunc as you walk over | |
| 107 | 115 | // the tree, then walk the list and remove each item. | |
| 108 | 116 | func (x *Tree) Foreach(FuncVar *TraverseFunc, UserDataVar uintptr) { | |
| 117 | + | core.LazyRegister(&xTreeForeach, "GLIB", "g_tree_foreach", false) | |
| 118 | + | ||
| 109 | 119 | xTreeForeach(x.GoPointer(), NewCallback(FuncVar), UserDataVar) | |
| 110 | 120 | } | |
| 111 | 121 | ||
| @@ -120,6 +130,8 @@ var xTreeForeachNode func(uintptr, uintptr, uintptr) | |||
| 120 | 130 | // to add each item to a list in your #GTraverseFunc as you walk over | |
| 121 | 131 | // the tree, then walk the list and remove each item. | |
| 122 | 132 | func (x *Tree) ForeachNode(FuncVar *TraverseNodeFunc, UserDataVar uintptr) { | |
| 133 | + | core.LazyRegister(&xTreeForeachNode, "GLIB", "g_tree_foreach_node", false) | |
| 134 | + | ||
| 123 | 135 | xTreeForeachNode(x.GoPointer(), NewCallback(FuncVar), UserDataVar) | |
| 124 | 136 | } | |
| 125 | 137 | ||
| @@ -131,6 +143,8 @@ var xTreeHeight func(uintptr) int | |||
| 131 | 143 | // If the #GTree contains only one root node the height is 1. | |
| 132 | 144 | // If the root node has children the height is 2, etc. | |
| 133 | 145 | func (x *Tree) Height() int { | |
| 146 | + | core.LazyRegister(&xTreeHeight, "GLIB", "g_tree_height", false) | |
| 147 | + | ||
| 134 | 148 | cret := xTreeHeight(x.GoPointer()) | |
| 135 | 149 | return cret | |
| 136 | 150 | } | |
| @@ -142,6 +156,8 @@ var xTreeInsert func(uintptr, uintptr, uintptr) | |||
| 142 | 156 | // Inserts a new key and value into a #GTree as g_tree_insert_node() does, | |
| 143 | 157 | // only this function does not return the inserted or set node. | |
| 144 | 158 | func (x *Tree) Insert(KeyVar uintptr, ValueVar uintptr) { | |
| 159 | + | core.LazyRegister(&xTreeInsert, "GLIB", "g_tree_insert", false) | |
| 160 | + | ||
| 145 | 161 | xTreeInsert(x.GoPointer(), KeyVar, ValueVar) | |
| 146 | 162 | } | |
| 147 | 163 | ||
| @@ -161,6 +177,8 @@ var xTreeInsertNode func(uintptr, uintptr, uintptr) uintptr | |||
| 161 | 177 | // result in a O(n log(n)) operation where most of the other operations | |
| 162 | 178 | // are O(log(n)). | |
| 163 | 179 | func (x *Tree) InsertNode(KeyVar uintptr, ValueVar uintptr) *TreeNode { | |
| 180 | + | core.LazyRegister(&xTreeInsertNode, "GLIB", "g_tree_insert_node", false) | |
| 181 | + | ||
| 164 | 182 | cret := xTreeInsertNode(x.GoPointer(), KeyVar, ValueVar) | |
| 165 | 183 | if cret == 0 { | |
| 166 | 184 | return nil | |
| @@ -174,6 +192,8 @@ var xTreeLookup func(uintptr, uintptr) uintptr | |||
| 174 | 192 | // automatically balanced as key/value pairs are added, key lookup | |
| 175 | 193 | // is O(log n) (where n is the number of key/value pairs in the tree). | |
| 176 | 194 | func (x *Tree) Lookup(KeyVar uintptr) uintptr { | |
| 195 | + | core.LazyRegister(&xTreeLookup, "GLIB", "g_tree_lookup", false) | |
| 196 | + | ||
| 177 | 197 | cret := xTreeLookup(x.GoPointer(), KeyVar) | |
| 178 | 198 | return cret | |
| 179 | 199 | } | |
| @@ -185,6 +205,8 @@ var xTreeLookupExtended func(uintptr, uintptr, *uintptr, *uintptr) bool | |||
| 185 | 205 | // allocated for the original key, for example before calling | |
| 186 | 206 | // g_tree_remove(). | |
| 187 | 207 | func (x *Tree) LookupExtended(LookupKeyVar uintptr, OrigKeyVar *uintptr, ValueVar *uintptr) bool { | |
| 208 | + | core.LazyRegister(&xTreeLookupExtended, "GLIB", "g_tree_lookup_extended", false) | |
| 209 | + | ||
| 188 | 210 | cret := xTreeLookupExtended(x.GoPointer(), LookupKeyVar, OrigKeyVar, ValueVar) | |
| 189 | 211 | return cret | |
| 190 | 212 | } | |
| @@ -195,6 +217,8 @@ var xTreeLookupNode func(uintptr, uintptr) uintptr | |||
| 195 | 217 | // automatically balanced as key/value pairs are added, key lookup | |
| 196 | 218 | // is O(log n) (where n is the number of key/value pairs in the tree). | |
| 197 | 219 | func (x *Tree) LookupNode(KeyVar uintptr) *TreeNode { | |
| 220 | + | core.LazyRegister(&xTreeLookupNode, "GLIB", "g_tree_lookup_node", false) | |
| 221 | + | ||
| 198 | 222 | cret := xTreeLookupNode(x.GoPointer(), KeyVar) | |
| 199 | 223 | if cret == 0 { | |
| 200 | 224 | return nil | |
| @@ -211,6 +235,8 @@ var xTreeLowerBound func(uintptr, uintptr) uintptr | |||
| 211 | 235 | // The lower bound is the first node that has its key greater | |
| 212 | 236 | // than or equal to the searched key. | |
| 213 | 237 | func (x *Tree) LowerBound(KeyVar uintptr) *TreeNode { | |
| 238 | + | core.LazyRegister(&xTreeLowerBound, "GLIB", "g_tree_lower_bound", false) | |
| 239 | + | ||
| 214 | 240 | cret := xTreeLowerBound(x.GoPointer(), KeyVar) | |
| 215 | 241 | if cret == 0 { | |
| 216 | 242 | return nil | |
| @@ -222,6 +248,8 @@ var xTreeNnodes func(uintptr) int | |||
| 222 | 248 | ||
| 223 | 249 | // Gets the number of nodes in a #GTree. | |
| 224 | 250 | func (x *Tree) Nnodes() int { | |
| 251 | + | core.LazyRegister(&xTreeNnodes, "GLIB", "g_tree_nnodes", false) | |
| 252 | + | ||
| 225 | 253 | cret := xTreeNnodes(x.GoPointer()) | |
| 226 | 254 | return cret | |
| 227 | 255 | } | |
| @@ -231,6 +259,8 @@ var xTreeNodeFirst func(uintptr) uintptr | |||
| 231 | 259 | // Returns the first in-order node of the tree, or %NULL | |
| 232 | 260 | // for an empty tree. | |
| 233 | 261 | func (x *Tree) NodeFirst() *TreeNode { | |
| 262 | + | core.LazyRegister(&xTreeNodeFirst, "GLIB", "g_tree_node_first", false) | |
| 263 | + | ||
| 234 | 264 | cret := xTreeNodeFirst(x.GoPointer()) | |
| 235 | 265 | if cret == 0 { | |
| 236 | 266 | return nil | |
| @@ -243,6 +273,8 @@ var xTreeNodeLast func(uintptr) uintptr | |||
| 243 | 273 | // Returns the last in-order node of the tree, or %NULL | |
| 244 | 274 | // for an empty tree. | |
| 245 | 275 | func (x *Tree) NodeLast() *TreeNode { | |
| 276 | + | core.LazyRegister(&xTreeNodeLast, "GLIB", "g_tree_node_last", false) | |
| 277 | + | ||
| 246 | 278 | cret := xTreeNodeLast(x.GoPointer()) | |
| 247 | 279 | if cret == 0 { | |
| 248 | 280 | return nil | |
| @@ -256,6 +288,8 @@ var xTreeRef func(uintptr) uintptr | |||
| 256 | 288 | // | |
| 257 | 289 | // It is safe to call this function from any thread. | |
| 258 | 290 | func (x *Tree) Ref() *Tree { | |
| 291 | + | core.LazyRegister(&xTreeRef, "GLIB", "g_tree_ref", false) | |
| 292 | + | ||
| 259 | 293 | cret := xTreeRef(x.GoPointer()) | |
| 260 | 294 | if cret == 0 { | |
| 261 | 295 | return nil | |
| @@ -276,6 +310,8 @@ var xTreeRemove func(uintptr, uintptr) bool | |||
| 276 | 310 | // result in a O(n log(n)) operation where most of the other operations | |
| 277 | 311 | // are O(log(n)). | |
| 278 | 312 | func (x *Tree) Remove(KeyVar uintptr) bool { | |
| 313 | + | core.LazyRegister(&xTreeRemove, "GLIB", "g_tree_remove", false) | |
| 314 | + | ||
| 279 | 315 | cret := xTreeRemove(x.GoPointer(), KeyVar) | |
| 280 | 316 | return cret | |
| 281 | 317 | } | |
| @@ -285,6 +321,8 @@ var xTreeRemoveAll func(uintptr) | |||
| 285 | 321 | // Removes all nodes from a #GTree and destroys their keys and values, | |
| 286 | 322 | // then resets the #GTree’s root to %NULL. | |
| 287 | 323 | func (x *Tree) RemoveAll() { | |
| 324 | + | core.LazyRegister(&xTreeRemoveAll, "GLIB", "g_tree_remove_all", false) | |
| 325 | + | ||
| 288 | 326 | xTreeRemoveAll(x.GoPointer()) | |
| 289 | 327 | } | |
| 290 | 328 | ||
| @@ -293,6 +331,8 @@ var xTreeReplace func(uintptr, uintptr, uintptr) | |||
| 293 | 331 | // Inserts a new key and value into a #GTree as g_tree_replace_node() does, | |
| 294 | 332 | // only this function does not return the inserted or set node. | |
| 295 | 333 | func (x *Tree) Replace(KeyVar uintptr, ValueVar uintptr) { | |
| 334 | + | core.LazyRegister(&xTreeReplace, "GLIB", "g_tree_replace", false) | |
| 335 | + | ||
| 296 | 336 | xTreeReplace(x.GoPointer(), KeyVar, ValueVar) | |
| 297 | 337 | } | |
| 298 | 338 | ||
| @@ -308,6 +348,8 @@ var xTreeReplaceNode func(uintptr, uintptr, uintptr) uintptr | |||
| 308 | 348 | // The tree is automatically 'balanced' as new key/value pairs are added, | |
| 309 | 349 | // so that the distance from the root to every leaf is as small as possible. | |
| 310 | 350 | func (x *Tree) ReplaceNode(KeyVar uintptr, ValueVar uintptr) *TreeNode { | |
| 351 | + | core.LazyRegister(&xTreeReplaceNode, "GLIB", "g_tree_replace_node", false) | |
| 352 | + | ||
| 311 | 353 | cret := xTreeReplaceNode(x.GoPointer(), KeyVar, ValueVar) | |
| 312 | 354 | if cret == 0 { | |
| 313 | 355 | return nil | |
| @@ -327,6 +369,8 @@ var xTreeSearch func(uintptr, uintptr, uintptr) uintptr | |||
| 327 | 369 | // @search_func returns 1, searching will proceed among the key/value | |
| 328 | 370 | // pairs that have a larger key. | |
| 329 | 371 | func (x *Tree) Search(SearchFuncVar *CompareFunc, UserDataVar uintptr) uintptr { | |
| 372 | + | core.LazyRegister(&xTreeSearch, "GLIB", "g_tree_search", false) | |
| 373 | + | ||
| 330 | 374 | cret := xTreeSearch(x.GoPointer(), NewCallback(SearchFuncVar), UserDataVar) | |
| 331 | 375 | return cret | |
| 332 | 376 | } | |
| @@ -343,6 +387,8 @@ var xTreeSearchNode func(uintptr, uintptr, uintptr) uintptr | |||
| 343 | 387 | // @search_func returns 1, searching will proceed among the key/value | |
| 344 | 388 | // pairs that have a larger key. | |
| 345 | 389 | func (x *Tree) SearchNode(SearchFuncVar *CompareFunc, UserDataVar uintptr) *TreeNode { | |
| 390 | + | core.LazyRegister(&xTreeSearchNode, "GLIB", "g_tree_search_node", false) | |
| 391 | + | ||
| 346 | 392 | cret := xTreeSearchNode(x.GoPointer(), NewCallback(SearchFuncVar), UserDataVar) | |
| 347 | 393 | if cret == 0 { | |
| 348 | 394 | return nil | |
| @@ -357,6 +403,8 @@ var xTreeSteal func(uintptr, uintptr) bool | |||
| 357 | 403 | // | |
| 358 | 404 | // If the key does not exist in the #GTree, the function does nothing. | |
| 359 | 405 | func (x *Tree) Steal(KeyVar uintptr) bool { | |
| 406 | + | core.LazyRegister(&xTreeSteal, "GLIB", "g_tree_steal", false) | |
| 407 | + | ||
| 360 | 408 | cret := xTreeSteal(x.GoPointer(), KeyVar) | |
| 361 | 409 | return cret | |
| 362 | 410 | } | |
| @@ -365,6 +413,8 @@ var xTreeTraverse func(uintptr, uintptr, TraverseType, uintptr) | |||
| 365 | 413 | ||
| 366 | 414 | // Calls the given function for each node in the #GTree. | |
| 367 | 415 | func (x *Tree) Traverse(TraverseFuncVar *TraverseFunc, TraverseTypeVar TraverseType, UserDataVar uintptr) { | |
| 416 | + | core.LazyRegister(&xTreeTraverse, "GLIB", "g_tree_traverse", false) | |
| 417 | + | ||
| 368 | 418 | xTreeTraverse(x.GoPointer(), NewCallback(TraverseFuncVar), TraverseTypeVar, UserDataVar) | |
| 369 | 419 | } | |
| 370 | 420 | ||
| @@ -377,6 +427,8 @@ var xTreeUnref func(uintptr) | |||
| 377 | 427 | // | |
| 378 | 428 | // It is safe to call this function from any thread. | |
| 379 | 429 | func (x *Tree) Unref() { | |
| 430 | + | core.LazyRegister(&xTreeUnref, "GLIB", "g_tree_unref", false) | |
| 431 | + | ||
| 380 | 432 | xTreeUnref(x.GoPointer()) | |
| 381 | 433 | } | |
| 382 | 434 | ||
| @@ -389,6 +441,8 @@ var xTreeUpperBound func(uintptr, uintptr) uintptr | |||
| 389 | 441 | // The upper bound is the first node that has its key strictly greater | |
| 390 | 442 | // than the searched key. | |
| 391 | 443 | func (x *Tree) UpperBound(KeyVar uintptr) *TreeNode { | |
| 444 | + | core.LazyRegister(&xTreeUpperBound, "GLIB", "g_tree_upper_bound", false) | |
| 445 | + | ||
| 392 | 446 | cret := xTreeUpperBound(x.GoPointer(), KeyVar) | |
| 393 | 447 | if cret == 0 { | |
| 394 | 448 | return nil | |
| @@ -417,6 +471,8 @@ var xTreeNodeKey func(uintptr) uintptr | |||
| 417 | 471 | ||
| 418 | 472 | // Gets the key stored at a particular tree node. | |
| 419 | 473 | func (x *TreeNode) Key() uintptr { | |
| 474 | + | core.LazyRegister(&xTreeNodeKey, "GLIB", "g_tree_node_key", false) | |
| 475 | + | ||
| 420 | 476 | cret := xTreeNodeKey(x.GoPointer()) | |
| 421 | 477 | return cret | |
| 422 | 478 | } | |
| @@ -426,6 +482,8 @@ var xTreeNodeNext func(uintptr) uintptr | |||
| 426 | 482 | // Returns the next in-order node of the tree, or %NULL | |
| 427 | 483 | // if the passed node was already the last one. | |
| 428 | 484 | func (x *TreeNode) Next() *TreeNode { | |
| 485 | + | core.LazyRegister(&xTreeNodeNext, "GLIB", "g_tree_node_next", false) | |
| 486 | + | ||
| 429 | 487 | cret := xTreeNodeNext(x.GoPointer()) | |
| 430 | 488 | if cret == 0 { | |
| 431 | 489 | return nil | |
| @@ -438,6 +496,8 @@ var xTreeNodePrevious func(uintptr) uintptr | |||
| 438 | 496 | // Returns the previous in-order node of the tree, or %NULL | |
| 439 | 497 | // if the passed node was already the first one. | |
| 440 | 498 | func (x *TreeNode) Previous() *TreeNode { | |
| 499 | + | core.LazyRegister(&xTreeNodePrevious, "GLIB", "g_tree_node_previous", false) | |
| 500 | + | ||
| 441 | 501 | cret := xTreeNodePrevious(x.GoPointer()) | |
| 442 | 502 | if cret == 0 { | |
| 443 | 503 | return nil | |
| @@ -449,6 +509,8 @@ var xTreeNodeValue func(uintptr) uintptr | |||
| 449 | 509 | ||
| 450 | 510 | // Gets the value stored at a particular tree node. | |
| 451 | 511 | func (x *TreeNode) Value() uintptr { | |
| 512 | + | core.LazyRegister(&xTreeNodeValue, "GLIB", "g_tree_node_value", false) | |
| 513 | + | ||
| 452 | 514 | cret := xTreeNodeValue(x.GoPointer()) | |
| 453 | 515 | return cret | |
| 454 | 516 | } | |
| @@ -456,48 +518,4 @@ func (x *TreeNode) Value() uintptr { | |||
| 456 | 518 | func init() { | |
| 457 | 519 | core.SetPackageName("GLIB", "glib-2.0") | |
| 458 | 520 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | |
| 459 | - | var libs []uintptr | |
| 460 | - | for _, libPath := range core.GetPaths("GLIB") { | |
| 461 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 462 | - | if err != nil { | |
| 463 | - | panic(err) | |
| 464 | - | } | |
| 465 | - | libs = append(libs, lib) | |
| 466 | - | } | |
| 467 | - | ||
| 468 | - | core.PuregoSafeRegister(&xTreeGLibType, libs, "g_tree_get_type") | |
| 469 | - | ||
| 470 | - | core.PuregoSafeRegister(&xNewTree, libs, "g_tree_new") | |
| 471 | - | core.PuregoSafeRegister(&xNewTreeFull, libs, "g_tree_new_full") | |
| 472 | - | core.PuregoSafeRegister(&xNewTreeWithData, libs, "g_tree_new_with_data") | |
| 473 | - | ||
| 474 | - | core.PuregoSafeRegister(&xTreeDestroy, libs, "g_tree_destroy") | |
| 475 | - | core.PuregoSafeRegister(&xTreeForeach, libs, "g_tree_foreach") | |
| 476 | - | core.PuregoSafeRegister(&xTreeForeachNode, libs, "g_tree_foreach_node") | |
| 477 | - | core.PuregoSafeRegister(&xTreeHeight, libs, "g_tree_height") | |
| 478 | - | core.PuregoSafeRegister(&xTreeInsert, libs, "g_tree_insert") | |
| 479 | - | core.PuregoSafeRegister(&xTreeInsertNode, libs, "g_tree_insert_node") | |
| 480 | - | core.PuregoSafeRegister(&xTreeLookup, libs, "g_tree_lookup") | |
| 481 | - | core.PuregoSafeRegister(&xTreeLookupExtended, libs, "g_tree_lookup_extended") | |
| 482 | - | core.PuregoSafeRegister(&xTreeLookupNode, libs, "g_tree_lookup_node") | |
| 483 | - | core.PuregoSafeRegister(&xTreeLowerBound, libs, "g_tree_lower_bound") | |
| 484 | - | core.PuregoSafeRegister(&xTreeNnodes, libs, "g_tree_nnodes") | |
| 485 | - | core.PuregoSafeRegister(&xTreeNodeFirst, libs, "g_tree_node_first") | |
| 486 | - | core.PuregoSafeRegister(&xTreeNodeLast, libs, "g_tree_node_last") | |
| 487 | - | core.PuregoSafeRegister(&xTreeRef, libs, "g_tree_ref") | |
| 488 | - | core.PuregoSafeRegister(&xTreeRemove, libs, "g_tree_remove") | |
| 489 | - | core.PuregoSafeRegister(&xTreeRemoveAll, libs, "g_tree_remove_all") | |
| 490 | - | core.PuregoSafeRegister(&xTreeReplace, libs, "g_tree_replace") | |
| 491 | - | core.PuregoSafeRegister(&xTreeReplaceNode, libs, "g_tree_replace_node") | |
| 492 | - | core.PuregoSafeRegister(&xTreeSearch, libs, "g_tree_search") | |
| 493 | - | core.PuregoSafeRegister(&xTreeSearchNode, libs, "g_tree_search_node") | |
| 494 | - | core.PuregoSafeRegister(&xTreeSteal, libs, "g_tree_steal") | |
| 495 | - | core.PuregoSafeRegister(&xTreeTraverse, libs, "g_tree_traverse") | |
| 496 | - | core.PuregoSafeRegister(&xTreeUnref, libs, "g_tree_unref") | |
| 497 | - | core.PuregoSafeRegister(&xTreeUpperBound, libs, "g_tree_upper_bound") | |
| 498 | - | ||
| 499 | - | core.PuregoSafeRegister(&xTreeNodeKey, libs, "g_tree_node_key") | |
| 500 | - | core.PuregoSafeRegister(&xTreeNodeNext, libs, "g_tree_node_next") | |
| 501 | - | core.PuregoSafeRegister(&xTreeNodePrevious, libs, "g_tree_node_previous") | |
| 502 | - | core.PuregoSafeRegister(&xTreeNodeValue, libs, "g_tree_node_value") | |
| 503 | 521 | } | |
| @@ -5,7 +5,6 @@ import ( | |||||
| 5 | "structs" | 5 | "structs" | ||
| 6 | "unsafe" | 6 | "unsafe" | ||
| 7 | 7 | ||||
| 8 | - | "github.com/bnema/purego" | |||
| 9 | "github.com/bnema/puregotk/pkg/core" | 8 | "github.com/bnema/puregotk/pkg/core" | ||
| 10 | "github.com/bnema/puregotk/v4/gobject/types" | 9 | "github.com/bnema/puregotk/v4/gobject/types" | ||
| 11 | ) | 10 | ) | ||
| @@ -32,6 +31,7 @@ type Tree struct { | |||||
| 32 | var xTreeGLibType func() types.GType | 31 | var xTreeGLibType func() types.GType | ||
| 33 | 32 | ||||
| 34 | func TreeGLibType() types.GType { | 33 | func TreeGLibType() types.GType { | ||
| 34 | + | core.LazyRegister(&xTreeGLibType, "GLIB", "g_tree_get_type", false) | |||
| 35 | return xTreeGLibType() | 35 | return xTreeGLibType() | ||
| 36 | } | 36 | } | ||
| 37 | 37 | ||||
| @@ -51,6 +51,8 @@ var xNewTree func(uintptr) uintptr | |||||
| 51 | 51 | ||||
| 52 | // Creates a new #GTree. | 52 | // Creates a new #GTree. | ||
| 53 | func NewTree(KeyCompareFuncVar *CompareFunc) *Tree { | 53 | func NewTree(KeyCompareFuncVar *CompareFunc) *Tree { | ||
| 54 | + | core.LazyRegister(&xNewTree, "GLIB", "g_tree_new", false) | |||
| 55 | + | ||||
| 54 | cret := xNewTree(NewCallback(KeyCompareFuncVar)) | 56 | cret := xNewTree(NewCallback(KeyCompareFuncVar)) | ||
| 55 | if cret == 0 { | 57 | if cret == 0 { | ||
| 56 | return nil | 58 | return nil | ||
| @@ -64,6 +66,8 @@ var xNewTreeFull func(uintptr, uintptr, uintptr, uintptr) uintptr | |||||
| 64 | // to free the memory allocated for the key and value that get called when | 66 | // to free the memory allocated for the key and value that get called when | ||
| 65 | // removing the entry from the #GTree. | 67 | // removing the entry from the #GTree. | ||
| 66 | func NewTreeFull(KeyCompareFuncVar *CompareDataFunc, KeyCompareDataVar uintptr, KeyDestroyFuncVar *DestroyNotify, ValueDestroyFuncVar *DestroyNotify) *Tree { | 68 | func NewTreeFull(KeyCompareFuncVar *CompareDataFunc, KeyCompareDataVar uintptr, KeyDestroyFuncVar *DestroyNotify, ValueDestroyFuncVar *DestroyNotify) *Tree { | ||
| 69 | + | core.LazyRegister(&xNewTreeFull, "GLIB", "g_tree_new_full", false) | |||
| 70 | + | ||||
| 67 | cret := xNewTreeFull(NewCallback(KeyCompareFuncVar), KeyCompareDataVar, NewCallbackNullable(KeyDestroyFuncVar), NewCallbackNullable(ValueDestroyFuncVar)) | 71 | cret := xNewTreeFull(NewCallback(KeyCompareFuncVar), KeyCompareDataVar, NewCallbackNullable(KeyDestroyFuncVar), NewCallbackNullable(ValueDestroyFuncVar)) | ||
| 68 | if cret == 0 { | 72 | if cret == 0 { | ||
| 69 | return nil | 73 | return nil | ||
| @@ -76,6 +80,8 @@ var xNewTreeWithData func(uintptr, uintptr) uintptr | |||||
| 76 | // Creates a new #GTree with a comparison function that accepts user data. | 80 | // Creates a new #GTree with a comparison function that accepts user data. | ||
| 77 | // See g_tree_new() for more details. | 81 | // See g_tree_new() for more details. | ||
| 78 | func NewTreeWithData(KeyCompareFuncVar *CompareDataFunc, KeyCompareDataVar uintptr) *Tree { | 82 | func NewTreeWithData(KeyCompareFuncVar *CompareDataFunc, KeyCompareDataVar uintptr) *Tree { | ||
| 83 | + | core.LazyRegister(&xNewTreeWithData, "GLIB", "g_tree_new_with_data", false) | |||
| 84 | + | ||||
| 79 | cret := xNewTreeWithData(NewCallback(KeyCompareFuncVar), KeyCompareDataVar) | 85 | cret := xNewTreeWithData(NewCallback(KeyCompareFuncVar), KeyCompareDataVar) | ||
| 80 | if cret == 0 { | 86 | if cret == 0 { | ||
| 81 | return nil | 87 | return nil | ||
| @@ -92,6 +98,8 @@ var xTreeDestroy func(uintptr) | |||||
| 92 | // you supplied will be called on all keys and values before destroying | 98 | // you supplied will be called on all keys and values before destroying | ||
| 93 | // the #GTree. | 99 | // the #GTree. | ||
| 94 | func (x *Tree) Destroy() { | 100 | func (x *Tree) Destroy() { | ||
| 101 | + | core.LazyRegister(&xTreeDestroy, "GLIB", "g_tree_destroy", false) | |||
| 102 | + | ||||
| 95 | xTreeDestroy(x.GoPointer()) | 103 | xTreeDestroy(x.GoPointer()) | ||
| 96 | } | 104 | } | ||
| 97 | 105 | ||||
| @@ -106,6 +114,8 @@ var xTreeForeach func(uintptr, uintptr, uintptr) | |||||
| 106 | // to add each item to a list in your #GTraverseFunc as you walk over | 114 | // to add each item to a list in your #GTraverseFunc as you walk over | ||
| 107 | // the tree, then walk the list and remove each item. | 115 | // the tree, then walk the list and remove each item. | ||
| 108 | func (x *Tree) Foreach(FuncVar *TraverseFunc, UserDataVar uintptr) { | 116 | func (x *Tree) Foreach(FuncVar *TraverseFunc, UserDataVar uintptr) { | ||
| 117 | + | core.LazyRegister(&xTreeForeach, "GLIB", "g_tree_foreach", false) | |||
| 118 | + | ||||
| 109 | xTreeForeach(x.GoPointer(), NewCallback(FuncVar), UserDataVar) | 119 | xTreeForeach(x.GoPointer(), NewCallback(FuncVar), UserDataVar) | ||
| 110 | } | 120 | } | ||
| 111 | 121 | ||||
| @@ -120,6 +130,8 @@ var xTreeForeachNode func(uintptr, uintptr, uintptr) | |||||
| 120 | // to add each item to a list in your #GTraverseFunc as you walk over | 130 | // to add each item to a list in your #GTraverseFunc as you walk over | ||
| 121 | // the tree, then walk the list and remove each item. | 131 | // the tree, then walk the list and remove each item. | ||
| 122 | func (x *Tree) ForeachNode(FuncVar *TraverseNodeFunc, UserDataVar uintptr) { | 132 | func (x *Tree) ForeachNode(FuncVar *TraverseNodeFunc, UserDataVar uintptr) { | ||
| 133 | + | core.LazyRegister(&xTreeForeachNode, "GLIB", "g_tree_foreach_node", false) | |||
| 134 | + | ||||
| 123 | xTreeForeachNode(x.GoPointer(), NewCallback(FuncVar), UserDataVar) | 135 | xTreeForeachNode(x.GoPointer(), NewCallback(FuncVar), UserDataVar) | ||
| 124 | } | 136 | } | ||
| 125 | 137 | ||||
| @@ -131,6 +143,8 @@ var xTreeHeight func(uintptr) int | |||||
| 131 | // If the #GTree contains only one root node the height is 1. | 143 | // If the #GTree contains only one root node the height is 1. | ||
| 132 | // If the root node has children the height is 2, etc. | 144 | // If the root node has children the height is 2, etc. | ||
| 133 | func (x *Tree) Height() int { | 145 | func (x *Tree) Height() int { | ||
| 146 | + | core.LazyRegister(&xTreeHeight, "GLIB", "g_tree_height", false) | |||
| 147 | + | ||||
| 134 | cret := xTreeHeight(x.GoPointer()) | 148 | cret := xTreeHeight(x.GoPointer()) | ||
| 135 | return cret | 149 | return cret | ||
| 136 | } | 150 | } | ||
| @@ -142,6 +156,8 @@ var xTreeInsert func(uintptr, uintptr, uintptr) | |||||
| 142 | // Inserts a new key and value into a #GTree as g_tree_insert_node() does, | 156 | // Inserts a new key and value into a #GTree as g_tree_insert_node() does, | ||
| 143 | // only this function does not return the inserted or set node. | 157 | // only this function does not return the inserted or set node. | ||
| 144 | func (x *Tree) Insert(KeyVar uintptr, ValueVar uintptr) { | 158 | func (x *Tree) Insert(KeyVar uintptr, ValueVar uintptr) { | ||
| 159 | + | core.LazyRegister(&xTreeInsert, "GLIB", "g_tree_insert", false) | |||
| 160 | + | ||||
| 145 | xTreeInsert(x.GoPointer(), KeyVar, ValueVar) | 161 | xTreeInsert(x.GoPointer(), KeyVar, ValueVar) | ||
| 146 | } | 162 | } | ||
| 147 | 163 | ||||
| @@ -161,6 +177,8 @@ var xTreeInsertNode func(uintptr, uintptr, uintptr) uintptr | |||||
| 161 | // result in a O(n log(n)) operation where most of the other operations | 177 | // result in a O(n log(n)) operation where most of the other operations | ||
| 162 | // are O(log(n)). | 178 | // are O(log(n)). | ||
| 163 | func (x *Tree) InsertNode(KeyVar uintptr, ValueVar uintptr) *TreeNode { | 179 | func (x *Tree) InsertNode(KeyVar uintptr, ValueVar uintptr) *TreeNode { | ||
| 180 | + | core.LazyRegister(&xTreeInsertNode, "GLIB", "g_tree_insert_node", false) | |||
| 181 | + | ||||
| 164 | cret := xTreeInsertNode(x.GoPointer(), KeyVar, ValueVar) | 182 | cret := xTreeInsertNode(x.GoPointer(), KeyVar, ValueVar) | ||
| 165 | if cret == 0 { | 183 | if cret == 0 { | ||
| 166 | return nil | 184 | return nil | ||
| @@ -174,6 +192,8 @@ var xTreeLookup func(uintptr, uintptr) uintptr | |||||
| 174 | // automatically balanced as key/value pairs are added, key lookup | 192 | // automatically balanced as key/value pairs are added, key lookup | ||
| 175 | // is O(log n) (where n is the number of key/value pairs in the tree). | 193 | // is O(log n) (where n is the number of key/value pairs in the tree). | ||
| 176 | func (x *Tree) Lookup(KeyVar uintptr) uintptr { | 194 | func (x *Tree) Lookup(KeyVar uintptr) uintptr { | ||
| 195 | + | core.LazyRegister(&xTreeLookup, "GLIB", "g_tree_lookup", false) | |||
| 196 | + | ||||
| 177 | cret := xTreeLookup(x.GoPointer(), KeyVar) | 197 | cret := xTreeLookup(x.GoPointer(), KeyVar) | ||
| 178 | return cret | 198 | return cret | ||
| 179 | } | 199 | } | ||
| @@ -185,6 +205,8 @@ var xTreeLookupExtended func(uintptr, uintptr, *uintptr, *uintptr) bool | |||||
| 185 | // allocated for the original key, for example before calling | 205 | // allocated for the original key, for example before calling | ||
| 186 | // g_tree_remove(). | 206 | // g_tree_remove(). | ||
| 187 | func (x *Tree) LookupExtended(LookupKeyVar uintptr, OrigKeyVar *uintptr, ValueVar *uintptr) bool { | 207 | func (x *Tree) LookupExtended(LookupKeyVar uintptr, OrigKeyVar *uintptr, ValueVar *uintptr) bool { | ||
| 208 | + | core.LazyRegister(&xTreeLookupExtended, "GLIB", "g_tree_lookup_extended", false) | |||
| 209 | + | ||||
| 188 | cret := xTreeLookupExtended(x.GoPointer(), LookupKeyVar, OrigKeyVar, ValueVar) | 210 | cret := xTreeLookupExtended(x.GoPointer(), LookupKeyVar, OrigKeyVar, ValueVar) | ||
| 189 | return cret | 211 | return cret | ||
| 190 | } | 212 | } | ||
| @@ -195,6 +217,8 @@ var xTreeLookupNode func(uintptr, uintptr) uintptr | |||||
| 195 | // automatically balanced as key/value pairs are added, key lookup | 217 | // automatically balanced as key/value pairs are added, key lookup | ||
| 196 | // is O(log n) (where n is the number of key/value pairs in the tree). | 218 | // is O(log n) (where n is the number of key/value pairs in the tree). | ||
| 197 | func (x *Tree) LookupNode(KeyVar uintptr) *TreeNode { | 219 | func (x *Tree) LookupNode(KeyVar uintptr) *TreeNode { | ||
| 220 | + | core.LazyRegister(&xTreeLookupNode, "GLIB", "g_tree_lookup_node", false) | |||
| 221 | + | ||||
| 198 | cret := xTreeLookupNode(x.GoPointer(), KeyVar) | 222 | cret := xTreeLookupNode(x.GoPointer(), KeyVar) | ||
| 199 | if cret == 0 { | 223 | if cret == 0 { | ||
| 200 | return nil | 224 | return nil | ||
| @@ -211,6 +235,8 @@ var xTreeLowerBound func(uintptr, uintptr) uintptr | |||||
| 211 | // The lower bound is the first node that has its key greater | 235 | // The lower bound is the first node that has its key greater | ||
| 212 | // than or equal to the searched key. | 236 | // than or equal to the searched key. | ||
| 213 | func (x *Tree) LowerBound(KeyVar uintptr) *TreeNode { | 237 | func (x *Tree) LowerBound(KeyVar uintptr) *TreeNode { | ||
| 238 | + | core.LazyRegister(&xTreeLowerBound, "GLIB", "g_tree_lower_bound", false) | |||
| 239 | + | ||||
| 214 | cret := xTreeLowerBound(x.GoPointer(), KeyVar) | 240 | cret := xTreeLowerBound(x.GoPointer(), KeyVar) | ||
| 215 | if cret == 0 { | 241 | if cret == 0 { | ||
| 216 | return nil | 242 | return nil | ||
| @@ -222,6 +248,8 @@ var xTreeNnodes func(uintptr) int | |||||
| 222 | 248 | ||||
| 223 | // Gets the number of nodes in a #GTree. | 249 | // Gets the number of nodes in a #GTree. | ||
| 224 | func (x *Tree) Nnodes() int { | 250 | func (x *Tree) Nnodes() int { | ||
| 251 | + | core.LazyRegister(&xTreeNnodes, "GLIB", "g_tree_nnodes", false) | |||
| 252 | + | ||||
| 225 | cret := xTreeNnodes(x.GoPointer()) | 253 | cret := xTreeNnodes(x.GoPointer()) | ||
| 226 | return cret | 254 | return cret | ||
| 227 | } | 255 | } | ||
| @@ -231,6 +259,8 @@ var xTreeNodeFirst func(uintptr) uintptr | |||||
| 231 | // Returns the first in-order node of the tree, or %NULL | 259 | // Returns the first in-order node of the tree, or %NULL | ||
| 232 | // for an empty tree. | 260 | // for an empty tree. | ||
| 233 | func (x *Tree) NodeFirst() *TreeNode { | 261 | func (x *Tree) NodeFirst() *TreeNode { | ||
| 262 | + | core.LazyRegister(&xTreeNodeFirst, "GLIB", "g_tree_node_first", false) | |||
| 263 | + | ||||
| 234 | cret := xTreeNodeFirst(x.GoPointer()) | 264 | cret := xTreeNodeFirst(x.GoPointer()) | ||
| 235 | if cret == 0 { | 265 | if cret == 0 { | ||
| 236 | return nil | 266 | return nil | ||
| @@ -243,6 +273,8 @@ var xTreeNodeLast func(uintptr) uintptr | |||||
| 243 | // Returns the last in-order node of the tree, or %NULL | 273 | // Returns the last in-order node of the tree, or %NULL | ||
| 244 | // for an empty tree. | 274 | // for an empty tree. | ||
| 245 | func (x *Tree) NodeLast() *TreeNode { | 275 | func (x *Tree) NodeLast() *TreeNode { | ||
| 276 | + | core.LazyRegister(&xTreeNodeLast, "GLIB", "g_tree_node_last", false) | |||
| 277 | + | ||||
| 246 | cret := xTreeNodeLast(x.GoPointer()) | 278 | cret := xTreeNodeLast(x.GoPointer()) | ||
| 247 | if cret == 0 { | 279 | if cret == 0 { | ||
| 248 | return nil | 280 | return nil | ||
| @@ -256,6 +288,8 @@ var xTreeRef func(uintptr) uintptr | |||||
| 256 | // | 288 | // | ||
| 257 | // It is safe to call this function from any thread. | 289 | // It is safe to call this function from any thread. | ||
| 258 | func (x *Tree) Ref() *Tree { | 290 | func (x *Tree) Ref() *Tree { | ||
| 291 | + | core.LazyRegister(&xTreeRef, "GLIB", "g_tree_ref", false) | |||
| 292 | + | ||||
| 259 | cret := xTreeRef(x.GoPointer()) | 293 | cret := xTreeRef(x.GoPointer()) | ||
| 260 | if cret == 0 { | 294 | if cret == 0 { | ||
| 261 | return nil | 295 | return nil | ||
| @@ -276,6 +310,8 @@ var xTreeRemove func(uintptr, uintptr) bool | |||||
| 276 | // result in a O(n log(n)) operation where most of the other operations | 310 | // result in a O(n log(n)) operation where most of the other operations | ||
| 277 | // are O(log(n)). | 311 | // are O(log(n)). | ||
| 278 | func (x *Tree) Remove(KeyVar uintptr) bool { | 312 | func (x *Tree) Remove(KeyVar uintptr) bool { | ||
| 313 | + | core.LazyRegister(&xTreeRemove, "GLIB", "g_tree_remove", false) | |||
| 314 | + | ||||
| 279 | cret := xTreeRemove(x.GoPointer(), KeyVar) | 315 | cret := xTreeRemove(x.GoPointer(), KeyVar) | ||
| 280 | return cret | 316 | return cret | ||
| 281 | } | 317 | } | ||
| @@ -285,6 +321,8 @@ var xTreeRemoveAll func(uintptr) | |||||
| 285 | // Removes all nodes from a #GTree and destroys their keys and values, | 321 | // Removes all nodes from a #GTree and destroys their keys and values, | ||
| 286 | // then resets the #GTree’s root to %NULL. | 322 | // then resets the #GTree’s root to %NULL. | ||
| 287 | func (x *Tree) RemoveAll() { | 323 | func (x *Tree) RemoveAll() { | ||
| 324 | + | core.LazyRegister(&xTreeRemoveAll, "GLIB", "g_tree_remove_all", false) | |||
| 325 | + | ||||
| 288 | xTreeRemoveAll(x.GoPointer()) | 326 | xTreeRemoveAll(x.GoPointer()) | ||
| 289 | } | 327 | } | ||
| 290 | 328 | ||||
| @@ -293,6 +331,8 @@ var xTreeReplace func(uintptr, uintptr, uintptr) | |||||
| 293 | // Inserts a new key and value into a #GTree as g_tree_replace_node() does, | 331 | // Inserts a new key and value into a #GTree as g_tree_replace_node() does, | ||
| 294 | // only this function does not return the inserted or set node. | 332 | // only this function does not return the inserted or set node. | ||
| 295 | func (x *Tree) Replace(KeyVar uintptr, ValueVar uintptr) { | 333 | func (x *Tree) Replace(KeyVar uintptr, ValueVar uintptr) { | ||
| 334 | + | core.LazyRegister(&xTreeReplace, "GLIB", "g_tree_replace", false) | |||
| 335 | + | ||||
| 296 | xTreeReplace(x.GoPointer(), KeyVar, ValueVar) | 336 | xTreeReplace(x.GoPointer(), KeyVar, ValueVar) | ||
| 297 | } | 337 | } | ||
| 298 | 338 | ||||
| @@ -308,6 +348,8 @@ var xTreeReplaceNode func(uintptr, uintptr, uintptr) uintptr | |||||
| 308 | // The tree is automatically 'balanced' as new key/value pairs are added, | 348 | // The tree is automatically 'balanced' as new key/value pairs are added, | ||
| 309 | // so that the distance from the root to every leaf is as small as possible. | 349 | // so that the distance from the root to every leaf is as small as possible. | ||
| 310 | func (x *Tree) ReplaceNode(KeyVar uintptr, ValueVar uintptr) *TreeNode { | 350 | func (x *Tree) ReplaceNode(KeyVar uintptr, ValueVar uintptr) *TreeNode { | ||
| 351 | + | core.LazyRegister(&xTreeReplaceNode, "GLIB", "g_tree_replace_node", false) | |||
| 352 | + | ||||
| 311 | cret := xTreeReplaceNode(x.GoPointer(), KeyVar, ValueVar) | 353 | cret := xTreeReplaceNode(x.GoPointer(), KeyVar, ValueVar) | ||
| 312 | if cret == 0 { | 354 | if cret == 0 { | ||
| 313 | return nil | 355 | return nil | ||
| @@ -327,6 +369,8 @@ var xTreeSearch func(uintptr, uintptr, uintptr) uintptr | |||||
| 327 | // @search_func returns 1, searching will proceed among the key/value | 369 | // @search_func returns 1, searching will proceed among the key/value | ||
| 328 | // pairs that have a larger key. | 370 | // pairs that have a larger key. | ||
| 329 | func (x *Tree) Search(SearchFuncVar *CompareFunc, UserDataVar uintptr) uintptr { | 371 | func (x *Tree) Search(SearchFuncVar *CompareFunc, UserDataVar uintptr) uintptr { | ||
| 372 | + | core.LazyRegister(&xTreeSearch, "GLIB", "g_tree_search", false) | |||
| 373 | + | ||||
| 330 | cret := xTreeSearch(x.GoPointer(), NewCallback(SearchFuncVar), UserDataVar) | 374 | cret := xTreeSearch(x.GoPointer(), NewCallback(SearchFuncVar), UserDataVar) | ||
| 331 | return cret | 375 | return cret | ||
| 332 | } | 376 | } | ||
| @@ -343,6 +387,8 @@ var xTreeSearchNode func(uintptr, uintptr, uintptr) uintptr | |||||
| 343 | // @search_func returns 1, searching will proceed among the key/value | 387 | // @search_func returns 1, searching will proceed among the key/value | ||
| 344 | // pairs that have a larger key. | 388 | // pairs that have a larger key. | ||
| 345 | func (x *Tree) SearchNode(SearchFuncVar *CompareFunc, UserDataVar uintptr) *TreeNode { | 389 | func (x *Tree) SearchNode(SearchFuncVar *CompareFunc, UserDataVar uintptr) *TreeNode { | ||
| 390 | + | core.LazyRegister(&xTreeSearchNode, "GLIB", "g_tree_search_node", false) | |||
| 391 | + | ||||
| 346 | cret := xTreeSearchNode(x.GoPointer(), NewCallback(SearchFuncVar), UserDataVar) | 392 | cret := xTreeSearchNode(x.GoPointer(), NewCallback(SearchFuncVar), UserDataVar) | ||
| 347 | if cret == 0 { | 393 | if cret == 0 { | ||
| 348 | return nil | 394 | return nil | ||
| @@ -357,6 +403,8 @@ var xTreeSteal func(uintptr, uintptr) bool | |||||
| 357 | // | 403 | // | ||
| 358 | // If the key does not exist in the #GTree, the function does nothing. | 404 | // If the key does not exist in the #GTree, the function does nothing. | ||
| 359 | func (x *Tree) Steal(KeyVar uintptr) bool { | 405 | func (x *Tree) Steal(KeyVar uintptr) bool { | ||
| 406 | + | core.LazyRegister(&xTreeSteal, "GLIB", "g_tree_steal", false) | |||
| 407 | + | ||||
| 360 | cret := xTreeSteal(x.GoPointer(), KeyVar) | 408 | cret := xTreeSteal(x.GoPointer(), KeyVar) | ||
| 361 | return cret | 409 | return cret | ||
| 362 | } | 410 | } | ||
| @@ -365,6 +413,8 @@ var xTreeTraverse func(uintptr, uintptr, TraverseType, uintptr) | |||||
| 365 | 413 | ||||
| 366 | // Calls the given function for each node in the #GTree. | 414 | // Calls the given function for each node in the #GTree. | ||
| 367 | func (x *Tree) Traverse(TraverseFuncVar *TraverseFunc, TraverseTypeVar TraverseType, UserDataVar uintptr) { | 415 | func (x *Tree) Traverse(TraverseFuncVar *TraverseFunc, TraverseTypeVar TraverseType, UserDataVar uintptr) { | ||
| 416 | + | core.LazyRegister(&xTreeTraverse, "GLIB", "g_tree_traverse", false) | |||
| 417 | + | ||||
| 368 | xTreeTraverse(x.GoPointer(), NewCallback(TraverseFuncVar), TraverseTypeVar, UserDataVar) | 418 | xTreeTraverse(x.GoPointer(), NewCallback(TraverseFuncVar), TraverseTypeVar, UserDataVar) | ||
| 369 | } | 419 | } | ||
| 370 | 420 | ||||
| @@ -377,6 +427,8 @@ var xTreeUnref func(uintptr) | |||||
| 377 | // | 427 | // | ||
| 378 | // It is safe to call this function from any thread. | 428 | // It is safe to call this function from any thread. | ||
| 379 | func (x *Tree) Unref() { | 429 | func (x *Tree) Unref() { | ||
| 430 | + | core.LazyRegister(&xTreeUnref, "GLIB", "g_tree_unref", false) | |||
| 431 | + | ||||
| 380 | xTreeUnref(x.GoPointer()) | 432 | xTreeUnref(x.GoPointer()) | ||
| 381 | } | 433 | } | ||
| 382 | 434 | ||||
| @@ -389,6 +441,8 @@ var xTreeUpperBound func(uintptr, uintptr) uintptr | |||||
| 389 | // The upper bound is the first node that has its key strictly greater | 441 | // The upper bound is the first node that has its key strictly greater | ||
| 390 | // than the searched key. | 442 | // than the searched key. | ||
| 391 | func (x *Tree) UpperBound(KeyVar uintptr) *TreeNode { | 443 | func (x *Tree) UpperBound(KeyVar uintptr) *TreeNode { | ||
| 444 | + | core.LazyRegister(&xTreeUpperBound, "GLIB", "g_tree_upper_bound", false) | |||
| 445 | + | ||||
| 392 | cret := xTreeUpperBound(x.GoPointer(), KeyVar) | 446 | cret := xTreeUpperBound(x.GoPointer(), KeyVar) | ||
| 393 | if cret == 0 { | 447 | if cret == 0 { | ||
| 394 | return nil | 448 | return nil | ||
| @@ -417,6 +471,8 @@ var xTreeNodeKey func(uintptr) uintptr | |||||
| 417 | 471 | ||||
| 418 | // Gets the key stored at a particular tree node. | 472 | // Gets the key stored at a particular tree node. | ||
| 419 | func (x *TreeNode) Key() uintptr { | 473 | func (x *TreeNode) Key() uintptr { | ||
| 474 | + | core.LazyRegister(&xTreeNodeKey, "GLIB", "g_tree_node_key", false) | |||
| 475 | + | ||||
| 420 | cret := xTreeNodeKey(x.GoPointer()) | 476 | cret := xTreeNodeKey(x.GoPointer()) | ||
| 421 | return cret | 477 | return cret | ||
| 422 | } | 478 | } | ||
| @@ -426,6 +482,8 @@ var xTreeNodeNext func(uintptr) uintptr | |||||
| 426 | // Returns the next in-order node of the tree, or %NULL | 482 | // Returns the next in-order node of the tree, or %NULL | ||
| 427 | // if the passed node was already the last one. | 483 | // if the passed node was already the last one. | ||
| 428 | func (x *TreeNode) Next() *TreeNode { | 484 | func (x *TreeNode) Next() *TreeNode { | ||
| 485 | + | core.LazyRegister(&xTreeNodeNext, "GLIB", "g_tree_node_next", false) | |||
| 486 | + | ||||
| 429 | cret := xTreeNodeNext(x.GoPointer()) | 487 | cret := xTreeNodeNext(x.GoPointer()) | ||
| 430 | if cret == 0 { | 488 | if cret == 0 { | ||
| 431 | return nil | 489 | return nil | ||
| @@ -438,6 +496,8 @@ var xTreeNodePrevious func(uintptr) uintptr | |||||
| 438 | // Returns the previous in-order node of the tree, or %NULL | 496 | // Returns the previous in-order node of the tree, or %NULL | ||
| 439 | // if the passed node was already the first one. | 497 | // if the passed node was already the first one. | ||
| 440 | func (x *TreeNode) Previous() *TreeNode { | 498 | func (x *TreeNode) Previous() *TreeNode { | ||
| 499 | + | core.LazyRegister(&xTreeNodePrevious, "GLIB", "g_tree_node_previous", false) | |||
| 500 | + | ||||
| 441 | cret := xTreeNodePrevious(x.GoPointer()) | 501 | cret := xTreeNodePrevious(x.GoPointer()) | ||
| 442 | if cret == 0 { | 502 | if cret == 0 { | ||
| 443 | return nil | 503 | return nil | ||
| @@ -449,6 +509,8 @@ var xTreeNodeValue func(uintptr) uintptr | |||||
| 449 | 509 | ||||
| 450 | // Gets the value stored at a particular tree node. | 510 | // Gets the value stored at a particular tree node. | ||
| 451 | func (x *TreeNode) Value() uintptr { | 511 | func (x *TreeNode) Value() uintptr { | ||
| 512 | + | core.LazyRegister(&xTreeNodeValue, "GLIB", "g_tree_node_value", false) | |||
| 513 | + | ||||
| 452 | cret := xTreeNodeValue(x.GoPointer()) | 514 | cret := xTreeNodeValue(x.GoPointer()) | ||
| 453 | return cret | 515 | return cret | ||
| 454 | } | 516 | } | ||
| @@ -456,48 +518,4 @@ func (x *TreeNode) Value() uintptr { | |||||
| 456 | func init() { | 518 | func init() { | ||
| 457 | core.SetPackageName("GLIB", "glib-2.0") | 519 | core.SetPackageName("GLIB", "glib-2.0") | ||
| 458 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | 520 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | ||
| 459 | - | var libs []uintptr | |||
| 460 | - | for _, libPath := range core.GetPaths("GLIB") { | |||
| 461 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 462 | - | if err != nil { | |||
| 463 | - | panic(err) | |||
| 464 | - | } | |||
| 465 | - | libs = append(libs, lib) | |||
| 466 | - | } | |||
| 467 | - | ||||
| 468 | - | core.PuregoSafeRegister(&xTreeGLibType, libs, "g_tree_get_type") | |||
| 469 | - | ||||
| 470 | - | core.PuregoSafeRegister(&xNewTree, libs, "g_tree_new") | |||
| 471 | - | core.PuregoSafeRegister(&xNewTreeFull, libs, "g_tree_new_full") | |||
| 472 | - | core.PuregoSafeRegister(&xNewTreeWithData, libs, "g_tree_new_with_data") | |||
| 473 | - | ||||
| 474 | - | core.PuregoSafeRegister(&xTreeDestroy, libs, "g_tree_destroy") | |||
| 475 | - | core.PuregoSafeRegister(&xTreeForeach, libs, "g_tree_foreach") | |||
| 476 | - | core.PuregoSafeRegister(&xTreeForeachNode, libs, "g_tree_foreach_node") | |||
| 477 | - | core.PuregoSafeRegister(&xTreeHeight, libs, "g_tree_height") | |||
| 478 | - | core.PuregoSafeRegister(&xTreeInsert, libs, "g_tree_insert") | |||
| 479 | - | core.PuregoSafeRegister(&xTreeInsertNode, libs, "g_tree_insert_node") | |||
| 480 | - | core.PuregoSafeRegister(&xTreeLookup, libs, "g_tree_lookup") | |||
| 481 | - | core.PuregoSafeRegister(&xTreeLookupExtended, libs, "g_tree_lookup_extended") | |||
| 482 | - | core.PuregoSafeRegister(&xTreeLookupNode, libs, "g_tree_lookup_node") | |||
| 483 | - | core.PuregoSafeRegister(&xTreeLowerBound, libs, "g_tree_lower_bound") | |||
| 484 | - | core.PuregoSafeRegister(&xTreeNnodes, libs, "g_tree_nnodes") | |||
| 485 | - | core.PuregoSafeRegister(&xTreeNodeFirst, libs, "g_tree_node_first") | |||
| 486 | - | core.PuregoSafeRegister(&xTreeNodeLast, libs, "g_tree_node_last") | |||
| 487 | - | core.PuregoSafeRegister(&xTreeRef, libs, "g_tree_ref") | |||
| 488 | - | core.PuregoSafeRegister(&xTreeRemove, libs, "g_tree_remove") | |||
| 489 | - | core.PuregoSafeRegister(&xTreeRemoveAll, libs, "g_tree_remove_all") | |||
| 490 | - | core.PuregoSafeRegister(&xTreeReplace, libs, "g_tree_replace") | |||
| 491 | - | core.PuregoSafeRegister(&xTreeReplaceNode, libs, "g_tree_replace_node") | |||
| 492 | - | core.PuregoSafeRegister(&xTreeSearch, libs, "g_tree_search") | |||
| 493 | - | core.PuregoSafeRegister(&xTreeSearchNode, libs, "g_tree_search_node") | |||
| 494 | - | core.PuregoSafeRegister(&xTreeSteal, libs, "g_tree_steal") | |||
| 495 | - | core.PuregoSafeRegister(&xTreeTraverse, libs, "g_tree_traverse") | |||
| 496 | - | core.PuregoSafeRegister(&xTreeUnref, libs, "g_tree_unref") | |||
| 497 | - | core.PuregoSafeRegister(&xTreeUpperBound, libs, "g_tree_upper_bound") | |||
| 498 | - | ||||
| 499 | - | core.PuregoSafeRegister(&xTreeNodeKey, libs, "g_tree_node_key") | |||
| 500 | - | core.PuregoSafeRegister(&xTreeNodeNext, libs, "g_tree_node_next") | |||
| 501 | - | core.PuregoSafeRegister(&xTreeNodePrevious, libs, "g_tree_node_previous") | |||
| 502 | - | core.PuregoSafeRegister(&xTreeNodeValue, libs, "g_tree_node_value") | |||
| 503 | } | 521 | } | ||