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
| @@ -182,6 +182,7 @@ type PixbufLoader struct { | |||
| 182 | 182 | var xPixbufLoaderGLibType func() types.GType | |
| 183 | 183 | ||
| 184 | 184 | func PixbufLoaderGLibType() types.GType { | |
| 185 | + | core.LazyRegister(&xPixbufLoaderGLibType, "GDKPIXBUF", "gdk_pixbuf_loader_get_type", false) | |
| 185 | 186 | return xPixbufLoaderGLibType() | |
| 186 | 187 | } | |
| 187 | 188 | ||
| @@ -195,6 +196,7 @@ var xNewPixbufLoader func() uintptr | |||
| 195 | 196 | ||
| 196 | 197 | // Creates a new pixbuf loader object. | |
| 197 | 198 | func NewPixbufLoader() *PixbufLoader { | |
| 199 | + | core.LazyRegister(&xNewPixbufLoader, "GDKPIXBUF", "gdk_pixbuf_loader_new", false) | |
| 198 | 200 | var cls *PixbufLoader | |
| 199 | 201 | ||
| 200 | 202 | cret := xNewPixbufLoader() | |
| @@ -225,6 +227,7 @@ var xNewPixbufLoaderWithMimeType func(string, **glib.Error) uintptr | |||
| 225 | 227 | // gdk_pixbuf_format_get_mime_types() on each of the #GdkPixbufFormat | |
| 226 | 228 | // structs returned by gdk_pixbuf_get_formats(). | |
| 227 | 229 | func NewPixbufLoaderWithMimeType(MimeTypeVar string) (*PixbufLoader, error) { | |
| 230 | + | core.LazyRegister(&xNewPixbufLoaderWithMimeType, "GDKPIXBUF", "gdk_pixbuf_loader_new_with_mime_type", false) | |
| 228 | 231 | var cls *PixbufLoader | |
| 229 | 232 | var cerr *glib.Error | |
| 230 | 233 | ||
| @@ -258,6 +261,7 @@ var xNewPixbufLoaderWithType func(string, **glib.Error) uintptr | |||
| 258 | 261 | // supported image formats, call gdk_pixbuf_format_get_name() on each | |
| 259 | 262 | // of the #GdkPixbufFormat structs returned by gdk_pixbuf_get_formats(). | |
| 260 | 263 | func NewPixbufLoaderWithType(ImageTypeVar string) (*PixbufLoader, error) { | |
| 264 | + | core.LazyRegister(&xNewPixbufLoaderWithType, "GDKPIXBUF", "gdk_pixbuf_loader_new_with_type", false) | |
| 261 | 265 | var cls *PixbufLoader | |
| 262 | 266 | var cerr *glib.Error | |
| 263 | 267 | ||
| @@ -292,6 +296,7 @@ var xPixbufLoaderClose func(uintptr, **glib.Error) bool | |||
| 292 | 296 | // Remember that this function does not release a reference on the loader, so | |
| 293 | 297 | // you will need to explicitly release any reference you hold. | |
| 294 | 298 | func (x *PixbufLoader) Close() (bool, error) { | |
| 299 | + | core.LazyRegister(&xPixbufLoaderClose, "GDKPIXBUF", "gdk_pixbuf_loader_close", false) | |
| 295 | 300 | var cerr *glib.Error | |
| 296 | 301 | ||
| 297 | 302 | cret := xPixbufLoaderClose(x.GoPointer(), &cerr) | |
| @@ -312,6 +317,7 @@ var xPixbufLoaderGetAnimation func(uintptr) uintptr | |||
| 312 | 317 | // If the loader doesn't have enough bytes yet, and hasn't emitted the `area-prepared` | |
| 313 | 318 | // signal, this function will return `NULL`. | |
| 314 | 319 | func (x *PixbufLoader) GetAnimation() *PixbufAnimation { | |
| 320 | + | core.LazyRegister(&xPixbufLoaderGetAnimation, "GDKPIXBUF", "gdk_pixbuf_loader_get_animation", false) | |
| 315 | 321 | var cls *PixbufAnimation | |
| 316 | 322 | ||
| 317 | 323 | cret := xPixbufLoaderGetAnimation(x.GoPointer()) | |
| @@ -330,6 +336,8 @@ var xPixbufLoaderGetFormat func(uintptr) uintptr | |||
| 330 | 336 | // Obtains the available information about the format of the | |
| 331 | 337 | // currently loading image file. | |
| 332 | 338 | func (x *PixbufLoader) GetFormat() *PixbufFormat { | |
| 339 | + | core.LazyRegister(&xPixbufLoaderGetFormat, "GDKPIXBUF", "gdk_pixbuf_loader_get_format", false) | |
| 340 | + | ||
| 333 | 341 | cret := xPixbufLoaderGetFormat(x.GoPointer()) | |
| 334 | 342 | if cret == 0 { | |
| 335 | 343 | return nil | |
| @@ -355,6 +363,7 @@ var xPixbufLoaderGetPixbuf func(uintptr) uintptr | |||
| 355 | 363 | // Additionally, if the loader is an animation, it will return the "static | |
| 356 | 364 | // image" of the animation (see gdk_pixbuf_animation_get_static_image()). | |
| 357 | 365 | func (x *PixbufLoader) GetPixbuf() *Pixbuf { | |
| 366 | + | core.LazyRegister(&xPixbufLoaderGetPixbuf, "GDKPIXBUF", "gdk_pixbuf_loader_get_pixbuf", false) | |
| 358 | 367 | var cls *Pixbuf | |
| 359 | 368 | ||
| 360 | 369 | cret := xPixbufLoaderGetPixbuf(x.GoPointer()) | |
| @@ -379,6 +388,8 @@ var xPixbufLoaderSetSize func(uintptr, int, int) | |||
| 379 | 388 | // Attempts to set the desired image size are ignored after the | |
| 380 | 389 | // emission of the ::size-prepared signal. | |
| 381 | 390 | func (x *PixbufLoader) SetSize(WidthVar int, HeightVar int) { | |
| 391 | + | core.LazyRegister(&xPixbufLoaderSetSize, "GDKPIXBUF", "gdk_pixbuf_loader_set_size", false) | |
| 392 | + | ||
| 382 | 393 | xPixbufLoaderSetSize(x.GoPointer(), WidthVar, HeightVar) | |
| 383 | 394 | } | |
| 384 | 395 | ||
| @@ -386,6 +397,7 @@ var xPixbufLoaderWrite func(uintptr, []byte, uint, **glib.Error) bool | |||
| 386 | 397 | ||
| 387 | 398 | // Parses the next `count` bytes in the given image buffer. | |
| 388 | 399 | func (x *PixbufLoader) Write(BufVar []byte, CountVar uint) (bool, error) { | |
| 400 | + | core.LazyRegister(&xPixbufLoaderWrite, "GDKPIXBUF", "gdk_pixbuf_loader_write", false) | |
| 389 | 401 | var cerr *glib.Error | |
| 390 | 402 | ||
| 391 | 403 | cret := xPixbufLoaderWrite(x.GoPointer(), BufVar, CountVar, &cerr) | |
| @@ -399,6 +411,7 @@ var xPixbufLoaderWriteBytes func(uintptr, *glib.Bytes, **glib.Error) bool | |||
| 399 | 411 | ||
| 400 | 412 | // Parses the next contents of the given image buffer. | |
| 401 | 413 | func (x *PixbufLoader) WriteBytes(BufferVar *glib.Bytes) (bool, error) { | |
| 414 | + | core.LazyRegister(&xPixbufLoaderWriteBytes, "GDKPIXBUF", "gdk_pixbuf_loader_write_bytes", false) | |
| 402 | 415 | var cerr *glib.Error | |
| 403 | 416 | ||
| 404 | 417 | cret := xPixbufLoaderWriteBytes(x.GoPointer(), BufferVar, &cerr) | |
| @@ -536,26 +549,4 @@ func (x *PixbufLoader) ConnectSizePrepared(cb *func(PixbufLoader, int, int)) uin | |||
| 536 | 549 | func init() { | |
| 537 | 550 | core.SetPackageName("GDKPIXBUF", "gdk-pixbuf-2.0") | |
| 538 | 551 | core.SetSharedLibraries("GDKPIXBUF", []string{"libgdk_pixbuf-2.0.so.0", "libgdk_pixbuf-2.0.0.dylib"}) | |
| 539 | - | var libs []uintptr | |
| 540 | - | for _, libPath := range core.GetPaths("GDKPIXBUF") { | |
| 541 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 542 | - | if err != nil { | |
| 543 | - | panic(err) | |
| 544 | - | } | |
| 545 | - | libs = append(libs, lib) | |
| 546 | - | } | |
| 547 | - | ||
| 548 | - | core.PuregoSafeRegister(&xPixbufLoaderGLibType, libs, "gdk_pixbuf_loader_get_type") | |
| 549 | - | ||
| 550 | - | core.PuregoSafeRegister(&xNewPixbufLoader, libs, "gdk_pixbuf_loader_new") | |
| 551 | - | core.PuregoSafeRegister(&xNewPixbufLoaderWithMimeType, libs, "gdk_pixbuf_loader_new_with_mime_type") | |
| 552 | - | core.PuregoSafeRegister(&xNewPixbufLoaderWithType, libs, "gdk_pixbuf_loader_new_with_type") | |
| 553 | - | ||
| 554 | - | core.PuregoSafeRegister(&xPixbufLoaderClose, libs, "gdk_pixbuf_loader_close") | |
| 555 | - | core.PuregoSafeRegister(&xPixbufLoaderGetAnimation, libs, "gdk_pixbuf_loader_get_animation") | |
| 556 | - | core.PuregoSafeRegister(&xPixbufLoaderGetFormat, libs, "gdk_pixbuf_loader_get_format") | |
| 557 | - | core.PuregoSafeRegister(&xPixbufLoaderGetPixbuf, libs, "gdk_pixbuf_loader_get_pixbuf") | |
| 558 | - | core.PuregoSafeRegister(&xPixbufLoaderSetSize, libs, "gdk_pixbuf_loader_set_size") | |
| 559 | - | core.PuregoSafeRegister(&xPixbufLoaderWrite, libs, "gdk_pixbuf_loader_write") | |
| 560 | - | core.PuregoSafeRegister(&xPixbufLoaderWriteBytes, libs, "gdk_pixbuf_loader_write_bytes") | |
| 561 | 552 | } | |
| @@ -182,6 +182,7 @@ type PixbufLoader struct { | |||||
| 182 | var xPixbufLoaderGLibType func() types.GType | 182 | var xPixbufLoaderGLibType func() types.GType | ||
| 183 | 183 | ||||
| 184 | func PixbufLoaderGLibType() types.GType { | 184 | func PixbufLoaderGLibType() types.GType { | ||
| 185 | + | core.LazyRegister(&xPixbufLoaderGLibType, "GDKPIXBUF", "gdk_pixbuf_loader_get_type", false) | |||
| 185 | return xPixbufLoaderGLibType() | 186 | return xPixbufLoaderGLibType() | ||
| 186 | } | 187 | } | ||
| 187 | 188 | ||||
| @@ -195,6 +196,7 @@ var xNewPixbufLoader func() uintptr | |||||
| 195 | 196 | ||||
| 196 | // Creates a new pixbuf loader object. | 197 | // Creates a new pixbuf loader object. | ||
| 197 | func NewPixbufLoader() *PixbufLoader { | 198 | func NewPixbufLoader() *PixbufLoader { | ||
| 199 | + | core.LazyRegister(&xNewPixbufLoader, "GDKPIXBUF", "gdk_pixbuf_loader_new", false) | |||
| 198 | var cls *PixbufLoader | 200 | var cls *PixbufLoader | ||
| 199 | 201 | ||||
| 200 | cret := xNewPixbufLoader() | 202 | cret := xNewPixbufLoader() | ||
| @@ -225,6 +227,7 @@ var xNewPixbufLoaderWithMimeType func(string, **glib.Error) uintptr | |||||
| 225 | // gdk_pixbuf_format_get_mime_types() on each of the #GdkPixbufFormat | 227 | // gdk_pixbuf_format_get_mime_types() on each of the #GdkPixbufFormat | ||
| 226 | // structs returned by gdk_pixbuf_get_formats(). | 228 | // structs returned by gdk_pixbuf_get_formats(). | ||
| 227 | func NewPixbufLoaderWithMimeType(MimeTypeVar string) (*PixbufLoader, error) { | 229 | func NewPixbufLoaderWithMimeType(MimeTypeVar string) (*PixbufLoader, error) { | ||
| 230 | + | core.LazyRegister(&xNewPixbufLoaderWithMimeType, "GDKPIXBUF", "gdk_pixbuf_loader_new_with_mime_type", false) | |||
| 228 | var cls *PixbufLoader | 231 | var cls *PixbufLoader | ||
| 229 | var cerr *glib.Error | 232 | var cerr *glib.Error | ||
| 230 | 233 | ||||
| @@ -258,6 +261,7 @@ var xNewPixbufLoaderWithType func(string, **glib.Error) uintptr | |||||
| 258 | // supported image formats, call gdk_pixbuf_format_get_name() on each | 261 | // supported image formats, call gdk_pixbuf_format_get_name() on each | ||
| 259 | // of the #GdkPixbufFormat structs returned by gdk_pixbuf_get_formats(). | 262 | // of the #GdkPixbufFormat structs returned by gdk_pixbuf_get_formats(). | ||
| 260 | func NewPixbufLoaderWithType(ImageTypeVar string) (*PixbufLoader, error) { | 263 | func NewPixbufLoaderWithType(ImageTypeVar string) (*PixbufLoader, error) { | ||
| 264 | + | core.LazyRegister(&xNewPixbufLoaderWithType, "GDKPIXBUF", "gdk_pixbuf_loader_new_with_type", false) | |||
| 261 | var cls *PixbufLoader | 265 | var cls *PixbufLoader | ||
| 262 | var cerr *glib.Error | 266 | var cerr *glib.Error | ||
| 263 | 267 | ||||
| @@ -292,6 +296,7 @@ var xPixbufLoaderClose func(uintptr, **glib.Error) bool | |||||
| 292 | // Remember that this function does not release a reference on the loader, so | 296 | // Remember that this function does not release a reference on the loader, so | ||
| 293 | // you will need to explicitly release any reference you hold. | 297 | // you will need to explicitly release any reference you hold. | ||
| 294 | func (x *PixbufLoader) Close() (bool, error) { | 298 | func (x *PixbufLoader) Close() (bool, error) { | ||
| 299 | + | core.LazyRegister(&xPixbufLoaderClose, "GDKPIXBUF", "gdk_pixbuf_loader_close", false) | |||
| 295 | var cerr *glib.Error | 300 | var cerr *glib.Error | ||
| 296 | 301 | ||||
| 297 | cret := xPixbufLoaderClose(x.GoPointer(), &cerr) | 302 | cret := xPixbufLoaderClose(x.GoPointer(), &cerr) | ||
| @@ -312,6 +317,7 @@ var xPixbufLoaderGetAnimation func(uintptr) uintptr | |||||
| 312 | // If the loader doesn't have enough bytes yet, and hasn't emitted the `area-prepared` | 317 | // If the loader doesn't have enough bytes yet, and hasn't emitted the `area-prepared` | ||
| 313 | // signal, this function will return `NULL`. | 318 | // signal, this function will return `NULL`. | ||
| 314 | func (x *PixbufLoader) GetAnimation() *PixbufAnimation { | 319 | func (x *PixbufLoader) GetAnimation() *PixbufAnimation { | ||
| 320 | + | core.LazyRegister(&xPixbufLoaderGetAnimation, "GDKPIXBUF", "gdk_pixbuf_loader_get_animation", false) | |||
| 315 | var cls *PixbufAnimation | 321 | var cls *PixbufAnimation | ||
| 316 | 322 | ||||
| 317 | cret := xPixbufLoaderGetAnimation(x.GoPointer()) | 323 | cret := xPixbufLoaderGetAnimation(x.GoPointer()) | ||
| @@ -330,6 +336,8 @@ var xPixbufLoaderGetFormat func(uintptr) uintptr | |||||
| 330 | // Obtains the available information about the format of the | 336 | // Obtains the available information about the format of the | ||
| 331 | // currently loading image file. | 337 | // currently loading image file. | ||
| 332 | func (x *PixbufLoader) GetFormat() *PixbufFormat { | 338 | func (x *PixbufLoader) GetFormat() *PixbufFormat { | ||
| 339 | + | core.LazyRegister(&xPixbufLoaderGetFormat, "GDKPIXBUF", "gdk_pixbuf_loader_get_format", false) | |||
| 340 | + | ||||
| 333 | cret := xPixbufLoaderGetFormat(x.GoPointer()) | 341 | cret := xPixbufLoaderGetFormat(x.GoPointer()) | ||
| 334 | if cret == 0 { | 342 | if cret == 0 { | ||
| 335 | return nil | 343 | return nil | ||
| @@ -355,6 +363,7 @@ var xPixbufLoaderGetPixbuf func(uintptr) uintptr | |||||
| 355 | // Additionally, if the loader is an animation, it will return the "static | 363 | // Additionally, if the loader is an animation, it will return the "static | ||
| 356 | // image" of the animation (see gdk_pixbuf_animation_get_static_image()). | 364 | // image" of the animation (see gdk_pixbuf_animation_get_static_image()). | ||
| 357 | func (x *PixbufLoader) GetPixbuf() *Pixbuf { | 365 | func (x *PixbufLoader) GetPixbuf() *Pixbuf { | ||
| 366 | + | core.LazyRegister(&xPixbufLoaderGetPixbuf, "GDKPIXBUF", "gdk_pixbuf_loader_get_pixbuf", false) | |||
| 358 | var cls *Pixbuf | 367 | var cls *Pixbuf | ||
| 359 | 368 | ||||
| 360 | cret := xPixbufLoaderGetPixbuf(x.GoPointer()) | 369 | cret := xPixbufLoaderGetPixbuf(x.GoPointer()) | ||
| @@ -379,6 +388,8 @@ var xPixbufLoaderSetSize func(uintptr, int, int) | |||||
| 379 | // Attempts to set the desired image size are ignored after the | 388 | // Attempts to set the desired image size are ignored after the | ||
| 380 | // emission of the ::size-prepared signal. | 389 | // emission of the ::size-prepared signal. | ||
| 381 | func (x *PixbufLoader) SetSize(WidthVar int, HeightVar int) { | 390 | func (x *PixbufLoader) SetSize(WidthVar int, HeightVar int) { | ||
| 391 | + | core.LazyRegister(&xPixbufLoaderSetSize, "GDKPIXBUF", "gdk_pixbuf_loader_set_size", false) | |||
| 392 | + | ||||
| 382 | xPixbufLoaderSetSize(x.GoPointer(), WidthVar, HeightVar) | 393 | xPixbufLoaderSetSize(x.GoPointer(), WidthVar, HeightVar) | ||
| 383 | } | 394 | } | ||
| 384 | 395 | ||||
| @@ -386,6 +397,7 @@ var xPixbufLoaderWrite func(uintptr, []byte, uint, **glib.Error) bool | |||||
| 386 | 397 | ||||
| 387 | // Parses the next `count` bytes in the given image buffer. | 398 | // Parses the next `count` bytes in the given image buffer. | ||
| 388 | func (x *PixbufLoader) Write(BufVar []byte, CountVar uint) (bool, error) { | 399 | func (x *PixbufLoader) Write(BufVar []byte, CountVar uint) (bool, error) { | ||
| 400 | + | core.LazyRegister(&xPixbufLoaderWrite, "GDKPIXBUF", "gdk_pixbuf_loader_write", false) | |||
| 389 | var cerr *glib.Error | 401 | var cerr *glib.Error | ||
| 390 | 402 | ||||
| 391 | cret := xPixbufLoaderWrite(x.GoPointer(), BufVar, CountVar, &cerr) | 403 | cret := xPixbufLoaderWrite(x.GoPointer(), BufVar, CountVar, &cerr) | ||
| @@ -399,6 +411,7 @@ var xPixbufLoaderWriteBytes func(uintptr, *glib.Bytes, **glib.Error) bool | |||||
| 399 | 411 | ||||
| 400 | // Parses the next contents of the given image buffer. | 412 | // Parses the next contents of the given image buffer. | ||
| 401 | func (x *PixbufLoader) WriteBytes(BufferVar *glib.Bytes) (bool, error) { | 413 | func (x *PixbufLoader) WriteBytes(BufferVar *glib.Bytes) (bool, error) { | ||
| 414 | + | core.LazyRegister(&xPixbufLoaderWriteBytes, "GDKPIXBUF", "gdk_pixbuf_loader_write_bytes", false) | |||
| 402 | var cerr *glib.Error | 415 | var cerr *glib.Error | ||
| 403 | 416 | ||||
| 404 | cret := xPixbufLoaderWriteBytes(x.GoPointer(), BufferVar, &cerr) | 417 | cret := xPixbufLoaderWriteBytes(x.GoPointer(), BufferVar, &cerr) | ||
| @@ -536,26 +549,4 @@ func (x *PixbufLoader) ConnectSizePrepared(cb *func(PixbufLoader, int, int)) uin | |||||
| 536 | func init() { | 549 | func init() { | ||
| 537 | core.SetPackageName("GDKPIXBUF", "gdk-pixbuf-2.0") | 550 | core.SetPackageName("GDKPIXBUF", "gdk-pixbuf-2.0") | ||
| 538 | core.SetSharedLibraries("GDKPIXBUF", []string{"libgdk_pixbuf-2.0.so.0", "libgdk_pixbuf-2.0.0.dylib"}) | 551 | core.SetSharedLibraries("GDKPIXBUF", []string{"libgdk_pixbuf-2.0.so.0", "libgdk_pixbuf-2.0.0.dylib"}) | ||
| 539 | - | var libs []uintptr | |||
| 540 | - | for _, libPath := range core.GetPaths("GDKPIXBUF") { | |||
| 541 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 542 | - | if err != nil { | |||
| 543 | - | panic(err) | |||
| 544 | - | } | |||
| 545 | - | libs = append(libs, lib) | |||
| 546 | - | } | |||
| 547 | - | ||||
| 548 | - | core.PuregoSafeRegister(&xPixbufLoaderGLibType, libs, "gdk_pixbuf_loader_get_type") | |||
| 549 | - | ||||
| 550 | - | core.PuregoSafeRegister(&xNewPixbufLoader, libs, "gdk_pixbuf_loader_new") | |||
| 551 | - | core.PuregoSafeRegister(&xNewPixbufLoaderWithMimeType, libs, "gdk_pixbuf_loader_new_with_mime_type") | |||
| 552 | - | core.PuregoSafeRegister(&xNewPixbufLoaderWithType, libs, "gdk_pixbuf_loader_new_with_type") | |||
| 553 | - | ||||
| 554 | - | core.PuregoSafeRegister(&xPixbufLoaderClose, libs, "gdk_pixbuf_loader_close") | |||
| 555 | - | core.PuregoSafeRegister(&xPixbufLoaderGetAnimation, libs, "gdk_pixbuf_loader_get_animation") | |||
| 556 | - | core.PuregoSafeRegister(&xPixbufLoaderGetFormat, libs, "gdk_pixbuf_loader_get_format") | |||
| 557 | - | core.PuregoSafeRegister(&xPixbufLoaderGetPixbuf, libs, "gdk_pixbuf_loader_get_pixbuf") | |||
| 558 | - | core.PuregoSafeRegister(&xPixbufLoaderSetSize, libs, "gdk_pixbuf_loader_set_size") | |||
| 559 | - | core.PuregoSafeRegister(&xPixbufLoaderWrite, libs, "gdk_pixbuf_loader_write") | |||
| 560 | - | core.PuregoSafeRegister(&xPixbufLoaderWriteBytes, libs, "gdk_pixbuf_loader_write_bytes") | |||
| 561 | } | 552 | } | ||