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
| @@ -333,6 +333,7 @@ type PixbufAnimation struct { | |||
| 333 | 333 | var xPixbufAnimationGLibType func() types.GType | |
| 334 | 334 | ||
| 335 | 335 | func PixbufAnimationGLibType() types.GType { | |
| 336 | + | core.LazyRegister(&xPixbufAnimationGLibType, "GDKPIXBUF", "gdk_pixbuf_animation_get_type", false) | |
| 336 | 337 | return xPixbufAnimationGLibType() | |
| 337 | 338 | } | |
| 338 | 339 | ||
| @@ -353,6 +354,7 @@ var xNewPixbufAnimationFromFile func(string, **glib.Error) uintptr | |||
| 353 | 354 | // | |
| 354 | 355 | // Possible errors are in the `GDK_PIXBUF_ERROR` and `G_FILE_ERROR` domains. | |
| 355 | 356 | func NewPixbufAnimationFromFile(FilenameVar string) (*PixbufAnimation, error) { | |
| 357 | + | core.LazyRegister(&xNewPixbufAnimationFromFile, "GDKPIXBUF", "gdk_pixbuf_animation_new_from_file", false) | |
| 356 | 358 | var cls *PixbufAnimation | |
| 357 | 359 | var cerr *glib.Error | |
| 358 | 360 | ||
| @@ -376,6 +378,7 @@ var xNewPixbufAnimationFromResource func(string, **glib.Error) uintptr | |||
| 376 | 378 | // The file format is detected automatically. If `NULL` is returned, then | |
| 377 | 379 | // @error will be set. | |
| 378 | 380 | func NewPixbufAnimationFromResource(ResourcePathVar string) (*PixbufAnimation, error) { | |
| 381 | + | core.LazyRegister(&xNewPixbufAnimationFromResource, "GDKPIXBUF", "gdk_pixbuf_animation_new_from_resource", false) | |
| 379 | 382 | var cls *PixbufAnimation | |
| 380 | 383 | var cerr *glib.Error | |
| 381 | 384 | ||
| @@ -407,6 +410,7 @@ var xNewPixbufAnimationFromStream func(uintptr, uintptr, **glib.Error) uintptr | |||
| 407 | 410 | // | |
| 408 | 411 | // The stream is not closed. | |
| 409 | 412 | func NewPixbufAnimationFromStream(StreamVar *gio.InputStream, CancellableVar *gio.Cancellable) (*PixbufAnimation, error) { | |
| 413 | + | core.LazyRegister(&xNewPixbufAnimationFromStream, "GDKPIXBUF", "gdk_pixbuf_animation_new_from_stream", false) | |
| 410 | 414 | var cls *PixbufAnimation | |
| 411 | 415 | var cerr *glib.Error | |
| 412 | 416 | ||
| @@ -428,6 +432,7 @@ var xNewPixbufAnimationFromStreamFinish func(uintptr, **glib.Error) uintptr | |||
| 428 | 432 | // Finishes an asynchronous pixbuf animation creation operation started with | |
| 429 | 433 | // [func@GdkPixbuf.PixbufAnimation.new_from_stream_async]. | |
| 430 | 434 | func NewPixbufAnimationFromStreamFinish(AsyncResultVar gio.AsyncResult) (*PixbufAnimation, error) { | |
| 435 | + | core.LazyRegister(&xNewPixbufAnimationFromStreamFinish, "GDKPIXBUF", "gdk_pixbuf_animation_new_from_stream_finish", false) | |
| 431 | 436 | var cls *PixbufAnimation | |
| 432 | 437 | var cerr *glib.Error | |
| 433 | 438 | ||
| @@ -448,6 +453,8 @@ var xPixbufAnimationGetHeight func(uintptr) int | |||
| 448 | 453 | ||
| 449 | 454 | // Queries the height of the bounding box of a pixbuf animation. | |
| 450 | 455 | func (x *PixbufAnimation) GetHeight() int { | |
| 456 | + | core.LazyRegister(&xPixbufAnimationGetHeight, "GDKPIXBUF", "gdk_pixbuf_animation_get_height", false) | |
| 457 | + | ||
| 451 | 458 | cret := xPixbufAnimationGetHeight(x.GoPointer()) | |
| 452 | 459 | return cret | |
| 453 | 460 | } | |
| @@ -489,6 +496,7 @@ var xPixbufAnimationGetIter func(uintptr, *glib.TimeVal) uintptr | |||
| 489 | 496 | // | |
| 490 | 497 | // A delay time of -1 is possible, indicating "infinite". | |
| 491 | 498 | func (x *PixbufAnimation) GetIter(StartTimeVar *glib.TimeVal) *PixbufAnimationIter { | |
| 499 | + | core.LazyRegister(&xPixbufAnimationGetIter, "GDKPIXBUF", "gdk_pixbuf_animation_get_iter", false) | |
| 492 | 500 | var cls *PixbufAnimationIter | |
| 493 | 501 | ||
| 494 | 502 | cret := xPixbufAnimationGetIter(x.GoPointer(), StartTimeVar) | |
| @@ -515,6 +523,7 @@ var xPixbufAnimationGetStaticImage func(uintptr) uintptr | |||
| 515 | 523 | // If an animation hasn't loaded any frames yet, this function will | |
| 516 | 524 | // return `NULL`. | |
| 517 | 525 | func (x *PixbufAnimation) GetStaticImage() *Pixbuf { | |
| 526 | + | core.LazyRegister(&xPixbufAnimationGetStaticImage, "GDKPIXBUF", "gdk_pixbuf_animation_get_static_image", false) | |
| 518 | 527 | var cls *Pixbuf | |
| 519 | 528 | ||
| 520 | 529 | cret := xPixbufAnimationGetStaticImage(x.GoPointer()) | |
| @@ -532,6 +541,8 @@ var xPixbufAnimationGetWidth func(uintptr) int | |||
| 532 | 541 | ||
| 533 | 542 | // Queries the width of the bounding box of a pixbuf animation. | |
| 534 | 543 | func (x *PixbufAnimation) GetWidth() int { | |
| 544 | + | core.LazyRegister(&xPixbufAnimationGetWidth, "GDKPIXBUF", "gdk_pixbuf_animation_get_width", false) | |
| 545 | + | ||
| 535 | 546 | cret := xPixbufAnimationGetWidth(x.GoPointer()) | |
| 536 | 547 | return cret | |
| 537 | 548 | } | |
| @@ -545,6 +556,8 @@ var xPixbufAnimationIsStaticImage func(uintptr) bool | |||
| 545 | 556 | // return `TRUE`. Use gdk_pixbuf_animation_get_static_image() to retrieve | |
| 546 | 557 | // the image. | |
| 547 | 558 | func (x *PixbufAnimation) IsStaticImage() bool { | |
| 559 | + | core.LazyRegister(&xPixbufAnimationIsStaticImage, "GDKPIXBUF", "gdk_pixbuf_animation_is_static_image", false) | |
| 560 | + | ||
| 548 | 561 | cret := xPixbufAnimationIsStaticImage(x.GoPointer()) | |
| 549 | 562 | return cret | |
| 550 | 563 | } | |
| @@ -553,6 +566,7 @@ var xPixbufAnimationRef func(uintptr) uintptr | |||
| 553 | 566 | ||
| 554 | 567 | // Adds a reference to an animation. | |
| 555 | 568 | func (x *PixbufAnimation) Ref() *PixbufAnimation { | |
| 569 | + | core.LazyRegister(&xPixbufAnimationRef, "GDKPIXBUF", "gdk_pixbuf_animation_ref", false) | |
| 556 | 570 | var cls *PixbufAnimation | |
| 557 | 571 | ||
| 558 | 572 | cret := xPixbufAnimationRef(x.GoPointer()) | |
| @@ -569,6 +583,8 @@ var xPixbufAnimationUnref func(uintptr) | |||
| 569 | 583 | ||
| 570 | 584 | // Removes a reference from an animation. | |
| 571 | 585 | func (x *PixbufAnimation) Unref() { | |
| 586 | + | core.LazyRegister(&xPixbufAnimationUnref, "GDKPIXBUF", "gdk_pixbuf_animation_unref", false) | |
| 587 | + | ||
| 572 | 588 | xPixbufAnimationUnref(x.GoPointer()) | |
| 573 | 589 | } | |
| 574 | 590 | ||
| @@ -594,6 +610,8 @@ var xPixbufAnimationNewFromStreamAsync func(uintptr, uintptr, uintptr, uintptr) | |||
| 594 | 610 | // You can then call gdk_pixbuf_animation_new_from_stream_finish() to get the | |
| 595 | 611 | // result of the operation. | |
| 596 | 612 | func PixbufAnimationNewFromStreamAsync(StreamVar *gio.InputStream, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 613 | + | core.LazyRegister(&xPixbufAnimationNewFromStreamAsync, "GDKPIXBUF", "gdk_pixbuf_animation_new_from_stream_async", false) | |
| 614 | + | ||
| 597 | 615 | xPixbufAnimationNewFromStreamAsync(StreamVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 598 | 616 | } | |
| 599 | 617 | ||
| @@ -606,6 +624,7 @@ type PixbufAnimationIter struct { | |||
| 606 | 624 | var xPixbufAnimationIterGLibType func() types.GType | |
| 607 | 625 | ||
| 608 | 626 | func PixbufAnimationIterGLibType() types.GType { | |
| 627 | + | core.LazyRegister(&xPixbufAnimationIterGLibType, "GDKPIXBUF", "gdk_pixbuf_animation_iter_get_type", false) | |
| 609 | 628 | return xPixbufAnimationIterGLibType() | |
| 610 | 629 | } | |
| 611 | 630 | ||
| @@ -639,6 +658,8 @@ var xPixbufAnimationIterAdvance func(uintptr, *glib.TimeVal) bool | |||
| 639 | 658 | // if `TRUE`, you need to call gdk_pixbuf_animation_iter_get_pixbuf() | |
| 640 | 659 | // and update the display with the new pixbuf. | |
| 641 | 660 | func (x *PixbufAnimationIter) Advance(CurrentTimeVar *glib.TimeVal) bool { | |
| 661 | + | core.LazyRegister(&xPixbufAnimationIterAdvance, "GDKPIXBUF", "gdk_pixbuf_animation_iter_advance", false) | |
| 662 | + | ||
| 642 | 663 | cret := xPixbufAnimationIterAdvance(x.GoPointer(), CurrentTimeVar) | |
| 643 | 664 | return cret | |
| 644 | 665 | } | |
| @@ -655,6 +676,8 @@ var xPixbufAnimationIterGetDelayTime func(uintptr) int | |||
| 655 | 676 | // image file to avoid updates that are just too quick. The minimum timeout | |
| 656 | 677 | // for GIF images is currently 20 milliseconds. | |
| 657 | 678 | func (x *PixbufAnimationIter) GetDelayTime() int { | |
| 679 | + | core.LazyRegister(&xPixbufAnimationIterGetDelayTime, "GDKPIXBUF", "gdk_pixbuf_animation_iter_get_delay_time", false) | |
| 680 | + | ||
| 658 | 681 | cret := xPixbufAnimationIterGetDelayTime(x.GoPointer()) | |
| 659 | 682 | return cret | |
| 660 | 683 | } | |
| @@ -677,6 +700,7 @@ var xPixbufAnimationIterGetPixbuf func(uintptr) uintptr | |||
| 677 | 700 | // Copy the pixbuf to keep it (don't just add a reference), as it may get | |
| 678 | 701 | // recycled as you advance the iterator. | |
| 679 | 702 | func (x *PixbufAnimationIter) GetPixbuf() *Pixbuf { | |
| 703 | + | core.LazyRegister(&xPixbufAnimationIterGetPixbuf, "GDKPIXBUF", "gdk_pixbuf_animation_iter_get_pixbuf", false) | |
| 680 | 704 | var cls *Pixbuf | |
| 681 | 705 | ||
| 682 | 706 | cret := xPixbufAnimationIterGetPixbuf(x.GoPointer()) | |
| @@ -699,6 +723,8 @@ var xPixbufAnimationIterOnCurrentlyLoadingFrame func(uintptr) bool | |||
| 699 | 723 | // streaming in to the loader. So if you're on the currently loading frame, | |
| 700 | 724 | // you will need to redraw the screen for the updated area. | |
| 701 | 725 | func (x *PixbufAnimationIter) OnCurrentlyLoadingFrame() bool { | |
| 726 | + | core.LazyRegister(&xPixbufAnimationIterOnCurrentlyLoadingFrame, "GDKPIXBUF", "gdk_pixbuf_animation_iter_on_currently_loading_frame", false) | |
| 727 | + | ||
| 702 | 728 | cret := xPixbufAnimationIterOnCurrentlyLoadingFrame(x.GoPointer()) | |
| 703 | 729 | return cret | |
| 704 | 730 | } | |
| @@ -717,36 +743,4 @@ func (c *PixbufAnimationIter) SetGoPointer(ptr uintptr) { | |||
| 717 | 743 | func init() { | |
| 718 | 744 | core.SetPackageName("GDKPIXBUF", "gdk-pixbuf-2.0") | |
| 719 | 745 | core.SetSharedLibraries("GDKPIXBUF", []string{"libgdk_pixbuf-2.0.so.0", "libgdk_pixbuf-2.0.0.dylib"}) | |
| 720 | - | var libs []uintptr | |
| 721 | - | for _, libPath := range core.GetPaths("GDKPIXBUF") { | |
| 722 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 723 | - | if err != nil { | |
| 724 | - | panic(err) | |
| 725 | - | } | |
| 726 | - | libs = append(libs, lib) | |
| 727 | - | } | |
| 728 | - | ||
| 729 | - | core.PuregoSafeRegister(&xPixbufAnimationGLibType, libs, "gdk_pixbuf_animation_get_type") | |
| 730 | - | ||
| 731 | - | core.PuregoSafeRegister(&xNewPixbufAnimationFromFile, libs, "gdk_pixbuf_animation_new_from_file") | |
| 732 | - | core.PuregoSafeRegister(&xNewPixbufAnimationFromResource, libs, "gdk_pixbuf_animation_new_from_resource") | |
| 733 | - | core.PuregoSafeRegister(&xNewPixbufAnimationFromStream, libs, "gdk_pixbuf_animation_new_from_stream") | |
| 734 | - | core.PuregoSafeRegister(&xNewPixbufAnimationFromStreamFinish, libs, "gdk_pixbuf_animation_new_from_stream_finish") | |
| 735 | - | ||
| 736 | - | core.PuregoSafeRegister(&xPixbufAnimationGetHeight, libs, "gdk_pixbuf_animation_get_height") | |
| 737 | - | core.PuregoSafeRegister(&xPixbufAnimationGetIter, libs, "gdk_pixbuf_animation_get_iter") | |
| 738 | - | core.PuregoSafeRegister(&xPixbufAnimationGetStaticImage, libs, "gdk_pixbuf_animation_get_static_image") | |
| 739 | - | core.PuregoSafeRegister(&xPixbufAnimationGetWidth, libs, "gdk_pixbuf_animation_get_width") | |
| 740 | - | core.PuregoSafeRegister(&xPixbufAnimationIsStaticImage, libs, "gdk_pixbuf_animation_is_static_image") | |
| 741 | - | core.PuregoSafeRegister(&xPixbufAnimationRef, libs, "gdk_pixbuf_animation_ref") | |
| 742 | - | core.PuregoSafeRegister(&xPixbufAnimationUnref, libs, "gdk_pixbuf_animation_unref") | |
| 743 | - | ||
| 744 | - | core.PuregoSafeRegister(&xPixbufAnimationNewFromStreamAsync, libs, "gdk_pixbuf_animation_new_from_stream_async") | |
| 745 | - | ||
| 746 | - | core.PuregoSafeRegister(&xPixbufAnimationIterGLibType, libs, "gdk_pixbuf_animation_iter_get_type") | |
| 747 | - | ||
| 748 | - | core.PuregoSafeRegister(&xPixbufAnimationIterAdvance, libs, "gdk_pixbuf_animation_iter_advance") | |
| 749 | - | core.PuregoSafeRegister(&xPixbufAnimationIterGetDelayTime, libs, "gdk_pixbuf_animation_iter_get_delay_time") | |
| 750 | - | core.PuregoSafeRegister(&xPixbufAnimationIterGetPixbuf, libs, "gdk_pixbuf_animation_iter_get_pixbuf") | |
| 751 | - | core.PuregoSafeRegister(&xPixbufAnimationIterOnCurrentlyLoadingFrame, libs, "gdk_pixbuf_animation_iter_on_currently_loading_frame") | |
| 752 | 746 | } | |
| @@ -333,6 +333,7 @@ type PixbufAnimation struct { | |||||
| 333 | var xPixbufAnimationGLibType func() types.GType | 333 | var xPixbufAnimationGLibType func() types.GType | ||
| 334 | 334 | ||||
| 335 | func PixbufAnimationGLibType() types.GType { | 335 | func PixbufAnimationGLibType() types.GType { | ||
| 336 | + | core.LazyRegister(&xPixbufAnimationGLibType, "GDKPIXBUF", "gdk_pixbuf_animation_get_type", false) | |||
| 336 | return xPixbufAnimationGLibType() | 337 | return xPixbufAnimationGLibType() | ||
| 337 | } | 338 | } | ||
| 338 | 339 | ||||
| @@ -353,6 +354,7 @@ var xNewPixbufAnimationFromFile func(string, **glib.Error) uintptr | |||||
| 353 | // | 354 | // | ||
| 354 | // Possible errors are in the `GDK_PIXBUF_ERROR` and `G_FILE_ERROR` domains. | 355 | // Possible errors are in the `GDK_PIXBUF_ERROR` and `G_FILE_ERROR` domains. | ||
| 355 | func NewPixbufAnimationFromFile(FilenameVar string) (*PixbufAnimation, error) { | 356 | func NewPixbufAnimationFromFile(FilenameVar string) (*PixbufAnimation, error) { | ||
| 357 | + | core.LazyRegister(&xNewPixbufAnimationFromFile, "GDKPIXBUF", "gdk_pixbuf_animation_new_from_file", false) | |||
| 356 | var cls *PixbufAnimation | 358 | var cls *PixbufAnimation | ||
| 357 | var cerr *glib.Error | 359 | var cerr *glib.Error | ||
| 358 | 360 | ||||
| @@ -376,6 +378,7 @@ var xNewPixbufAnimationFromResource func(string, **glib.Error) uintptr | |||||
| 376 | // The file format is detected automatically. If `NULL` is returned, then | 378 | // The file format is detected automatically. If `NULL` is returned, then | ||
| 377 | // @error will be set. | 379 | // @error will be set. | ||
| 378 | func NewPixbufAnimationFromResource(ResourcePathVar string) (*PixbufAnimation, error) { | 380 | func NewPixbufAnimationFromResource(ResourcePathVar string) (*PixbufAnimation, error) { | ||
| 381 | + | core.LazyRegister(&xNewPixbufAnimationFromResource, "GDKPIXBUF", "gdk_pixbuf_animation_new_from_resource", false) | |||
| 379 | var cls *PixbufAnimation | 382 | var cls *PixbufAnimation | ||
| 380 | var cerr *glib.Error | 383 | var cerr *glib.Error | ||
| 381 | 384 | ||||
| @@ -407,6 +410,7 @@ var xNewPixbufAnimationFromStream func(uintptr, uintptr, **glib.Error) uintptr | |||||
| 407 | // | 410 | // | ||
| 408 | // The stream is not closed. | 411 | // The stream is not closed. | ||
| 409 | func NewPixbufAnimationFromStream(StreamVar *gio.InputStream, CancellableVar *gio.Cancellable) (*PixbufAnimation, error) { | 412 | func NewPixbufAnimationFromStream(StreamVar *gio.InputStream, CancellableVar *gio.Cancellable) (*PixbufAnimation, error) { | ||
| 413 | + | core.LazyRegister(&xNewPixbufAnimationFromStream, "GDKPIXBUF", "gdk_pixbuf_animation_new_from_stream", false) | |||
| 410 | var cls *PixbufAnimation | 414 | var cls *PixbufAnimation | ||
| 411 | var cerr *glib.Error | 415 | var cerr *glib.Error | ||
| 412 | 416 | ||||
| @@ -428,6 +432,7 @@ var xNewPixbufAnimationFromStreamFinish func(uintptr, **glib.Error) uintptr | |||||
| 428 | // Finishes an asynchronous pixbuf animation creation operation started with | 432 | // Finishes an asynchronous pixbuf animation creation operation started with | ||
| 429 | // [func@GdkPixbuf.PixbufAnimation.new_from_stream_async]. | 433 | // [func@GdkPixbuf.PixbufAnimation.new_from_stream_async]. | ||
| 430 | func NewPixbufAnimationFromStreamFinish(AsyncResultVar gio.AsyncResult) (*PixbufAnimation, error) { | 434 | func NewPixbufAnimationFromStreamFinish(AsyncResultVar gio.AsyncResult) (*PixbufAnimation, error) { | ||
| 435 | + | core.LazyRegister(&xNewPixbufAnimationFromStreamFinish, "GDKPIXBUF", "gdk_pixbuf_animation_new_from_stream_finish", false) | |||
| 431 | var cls *PixbufAnimation | 436 | var cls *PixbufAnimation | ||
| 432 | var cerr *glib.Error | 437 | var cerr *glib.Error | ||
| 433 | 438 | ||||
| @@ -448,6 +453,8 @@ var xPixbufAnimationGetHeight func(uintptr) int | |||||
| 448 | 453 | ||||
| 449 | // Queries the height of the bounding box of a pixbuf animation. | 454 | // Queries the height of the bounding box of a pixbuf animation. | ||
| 450 | func (x *PixbufAnimation) GetHeight() int { | 455 | func (x *PixbufAnimation) GetHeight() int { | ||
| 456 | + | core.LazyRegister(&xPixbufAnimationGetHeight, "GDKPIXBUF", "gdk_pixbuf_animation_get_height", false) | |||
| 457 | + | ||||
| 451 | cret := xPixbufAnimationGetHeight(x.GoPointer()) | 458 | cret := xPixbufAnimationGetHeight(x.GoPointer()) | ||
| 452 | return cret | 459 | return cret | ||
| 453 | } | 460 | } | ||
| @@ -489,6 +496,7 @@ var xPixbufAnimationGetIter func(uintptr, *glib.TimeVal) uintptr | |||||
| 489 | // | 496 | // | ||
| 490 | // A delay time of -1 is possible, indicating "infinite". | 497 | // A delay time of -1 is possible, indicating "infinite". | ||
| 491 | func (x *PixbufAnimation) GetIter(StartTimeVar *glib.TimeVal) *PixbufAnimationIter { | 498 | func (x *PixbufAnimation) GetIter(StartTimeVar *glib.TimeVal) *PixbufAnimationIter { | ||
| 499 | + | core.LazyRegister(&xPixbufAnimationGetIter, "GDKPIXBUF", "gdk_pixbuf_animation_get_iter", false) | |||
| 492 | var cls *PixbufAnimationIter | 500 | var cls *PixbufAnimationIter | ||
| 493 | 501 | ||||
| 494 | cret := xPixbufAnimationGetIter(x.GoPointer(), StartTimeVar) | 502 | cret := xPixbufAnimationGetIter(x.GoPointer(), StartTimeVar) | ||
| @@ -515,6 +523,7 @@ var xPixbufAnimationGetStaticImage func(uintptr) uintptr | |||||
| 515 | // If an animation hasn't loaded any frames yet, this function will | 523 | // If an animation hasn't loaded any frames yet, this function will | ||
| 516 | // return `NULL`. | 524 | // return `NULL`. | ||
| 517 | func (x *PixbufAnimation) GetStaticImage() *Pixbuf { | 525 | func (x *PixbufAnimation) GetStaticImage() *Pixbuf { | ||
| 526 | + | core.LazyRegister(&xPixbufAnimationGetStaticImage, "GDKPIXBUF", "gdk_pixbuf_animation_get_static_image", false) | |||
| 518 | var cls *Pixbuf | 527 | var cls *Pixbuf | ||
| 519 | 528 | ||||
| 520 | cret := xPixbufAnimationGetStaticImage(x.GoPointer()) | 529 | cret := xPixbufAnimationGetStaticImage(x.GoPointer()) | ||
| @@ -532,6 +541,8 @@ var xPixbufAnimationGetWidth func(uintptr) int | |||||
| 532 | 541 | ||||
| 533 | // Queries the width of the bounding box of a pixbuf animation. | 542 | // Queries the width of the bounding box of a pixbuf animation. | ||
| 534 | func (x *PixbufAnimation) GetWidth() int { | 543 | func (x *PixbufAnimation) GetWidth() int { | ||
| 544 | + | core.LazyRegister(&xPixbufAnimationGetWidth, "GDKPIXBUF", "gdk_pixbuf_animation_get_width", false) | |||
| 545 | + | ||||
| 535 | cret := xPixbufAnimationGetWidth(x.GoPointer()) | 546 | cret := xPixbufAnimationGetWidth(x.GoPointer()) | ||
| 536 | return cret | 547 | return cret | ||
| 537 | } | 548 | } | ||
| @@ -545,6 +556,8 @@ var xPixbufAnimationIsStaticImage func(uintptr) bool | |||||
| 545 | // return `TRUE`. Use gdk_pixbuf_animation_get_static_image() to retrieve | 556 | // return `TRUE`. Use gdk_pixbuf_animation_get_static_image() to retrieve | ||
| 546 | // the image. | 557 | // the image. | ||
| 547 | func (x *PixbufAnimation) IsStaticImage() bool { | 558 | func (x *PixbufAnimation) IsStaticImage() bool { | ||
| 559 | + | core.LazyRegister(&xPixbufAnimationIsStaticImage, "GDKPIXBUF", "gdk_pixbuf_animation_is_static_image", false) | |||
| 560 | + | ||||
| 548 | cret := xPixbufAnimationIsStaticImage(x.GoPointer()) | 561 | cret := xPixbufAnimationIsStaticImage(x.GoPointer()) | ||
| 549 | return cret | 562 | return cret | ||
| 550 | } | 563 | } | ||
| @@ -553,6 +566,7 @@ var xPixbufAnimationRef func(uintptr) uintptr | |||||
| 553 | 566 | ||||
| 554 | // Adds a reference to an animation. | 567 | // Adds a reference to an animation. | ||
| 555 | func (x *PixbufAnimation) Ref() *PixbufAnimation { | 568 | func (x *PixbufAnimation) Ref() *PixbufAnimation { | ||
| 569 | + | core.LazyRegister(&xPixbufAnimationRef, "GDKPIXBUF", "gdk_pixbuf_animation_ref", false) | |||
| 556 | var cls *PixbufAnimation | 570 | var cls *PixbufAnimation | ||
| 557 | 571 | ||||
| 558 | cret := xPixbufAnimationRef(x.GoPointer()) | 572 | cret := xPixbufAnimationRef(x.GoPointer()) | ||
| @@ -569,6 +583,8 @@ var xPixbufAnimationUnref func(uintptr) | |||||
| 569 | 583 | ||||
| 570 | // Removes a reference from an animation. | 584 | // Removes a reference from an animation. | ||
| 571 | func (x *PixbufAnimation) Unref() { | 585 | func (x *PixbufAnimation) Unref() { | ||
| 586 | + | core.LazyRegister(&xPixbufAnimationUnref, "GDKPIXBUF", "gdk_pixbuf_animation_unref", false) | |||
| 587 | + | ||||
| 572 | xPixbufAnimationUnref(x.GoPointer()) | 588 | xPixbufAnimationUnref(x.GoPointer()) | ||
| 573 | } | 589 | } | ||
| 574 | 590 | ||||
| @@ -594,6 +610,8 @@ var xPixbufAnimationNewFromStreamAsync func(uintptr, uintptr, uintptr, uintptr) | |||||
| 594 | // You can then call gdk_pixbuf_animation_new_from_stream_finish() to get the | 610 | // You can then call gdk_pixbuf_animation_new_from_stream_finish() to get the | ||
| 595 | // result of the operation. | 611 | // result of the operation. | ||
| 596 | func PixbufAnimationNewFromStreamAsync(StreamVar *gio.InputStream, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | 612 | func PixbufAnimationNewFromStreamAsync(StreamVar *gio.InputStream, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | ||
| 613 | + | core.LazyRegister(&xPixbufAnimationNewFromStreamAsync, "GDKPIXBUF", "gdk_pixbuf_animation_new_from_stream_async", false) | |||
| 614 | + | ||||
| 597 | xPixbufAnimationNewFromStreamAsync(StreamVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 615 | xPixbufAnimationNewFromStreamAsync(StreamVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 598 | } | 616 | } | ||
| 599 | 617 | ||||
| @@ -606,6 +624,7 @@ type PixbufAnimationIter struct { | |||||
| 606 | var xPixbufAnimationIterGLibType func() types.GType | 624 | var xPixbufAnimationIterGLibType func() types.GType | ||
| 607 | 625 | ||||
| 608 | func PixbufAnimationIterGLibType() types.GType { | 626 | func PixbufAnimationIterGLibType() types.GType { | ||
| 627 | + | core.LazyRegister(&xPixbufAnimationIterGLibType, "GDKPIXBUF", "gdk_pixbuf_animation_iter_get_type", false) | |||
| 609 | return xPixbufAnimationIterGLibType() | 628 | return xPixbufAnimationIterGLibType() | ||
| 610 | } | 629 | } | ||
| 611 | 630 | ||||
| @@ -639,6 +658,8 @@ var xPixbufAnimationIterAdvance func(uintptr, *glib.TimeVal) bool | |||||
| 639 | // if `TRUE`, you need to call gdk_pixbuf_animation_iter_get_pixbuf() | 658 | // if `TRUE`, you need to call gdk_pixbuf_animation_iter_get_pixbuf() | ||
| 640 | // and update the display with the new pixbuf. | 659 | // and update the display with the new pixbuf. | ||
| 641 | func (x *PixbufAnimationIter) Advance(CurrentTimeVar *glib.TimeVal) bool { | 660 | func (x *PixbufAnimationIter) Advance(CurrentTimeVar *glib.TimeVal) bool { | ||
| 661 | + | core.LazyRegister(&xPixbufAnimationIterAdvance, "GDKPIXBUF", "gdk_pixbuf_animation_iter_advance", false) | |||
| 662 | + | ||||
| 642 | cret := xPixbufAnimationIterAdvance(x.GoPointer(), CurrentTimeVar) | 663 | cret := xPixbufAnimationIterAdvance(x.GoPointer(), CurrentTimeVar) | ||
| 643 | return cret | 664 | return cret | ||
| 644 | } | 665 | } | ||
| @@ -655,6 +676,8 @@ var xPixbufAnimationIterGetDelayTime func(uintptr) int | |||||
| 655 | // image file to avoid updates that are just too quick. The minimum timeout | 676 | // image file to avoid updates that are just too quick. The minimum timeout | ||
| 656 | // for GIF images is currently 20 milliseconds. | 677 | // for GIF images is currently 20 milliseconds. | ||
| 657 | func (x *PixbufAnimationIter) GetDelayTime() int { | 678 | func (x *PixbufAnimationIter) GetDelayTime() int { | ||
| 679 | + | core.LazyRegister(&xPixbufAnimationIterGetDelayTime, "GDKPIXBUF", "gdk_pixbuf_animation_iter_get_delay_time", false) | |||
| 680 | + | ||||
| 658 | cret := xPixbufAnimationIterGetDelayTime(x.GoPointer()) | 681 | cret := xPixbufAnimationIterGetDelayTime(x.GoPointer()) | ||
| 659 | return cret | 682 | return cret | ||
| 660 | } | 683 | } | ||
| @@ -677,6 +700,7 @@ var xPixbufAnimationIterGetPixbuf func(uintptr) uintptr | |||||
| 677 | // Copy the pixbuf to keep it (don't just add a reference), as it may get | 700 | // Copy the pixbuf to keep it (don't just add a reference), as it may get | ||
| 678 | // recycled as you advance the iterator. | 701 | // recycled as you advance the iterator. | ||
| 679 | func (x *PixbufAnimationIter) GetPixbuf() *Pixbuf { | 702 | func (x *PixbufAnimationIter) GetPixbuf() *Pixbuf { | ||
| 703 | + | core.LazyRegister(&xPixbufAnimationIterGetPixbuf, "GDKPIXBUF", "gdk_pixbuf_animation_iter_get_pixbuf", false) | |||
| 680 | var cls *Pixbuf | 704 | var cls *Pixbuf | ||
| 681 | 705 | ||||
| 682 | cret := xPixbufAnimationIterGetPixbuf(x.GoPointer()) | 706 | cret := xPixbufAnimationIterGetPixbuf(x.GoPointer()) | ||
| @@ -699,6 +723,8 @@ var xPixbufAnimationIterOnCurrentlyLoadingFrame func(uintptr) bool | |||||
| 699 | // streaming in to the loader. So if you're on the currently loading frame, | 723 | // streaming in to the loader. So if you're on the currently loading frame, | ||
| 700 | // you will need to redraw the screen for the updated area. | 724 | // you will need to redraw the screen for the updated area. | ||
| 701 | func (x *PixbufAnimationIter) OnCurrentlyLoadingFrame() bool { | 725 | func (x *PixbufAnimationIter) OnCurrentlyLoadingFrame() bool { | ||
| 726 | + | core.LazyRegister(&xPixbufAnimationIterOnCurrentlyLoadingFrame, "GDKPIXBUF", "gdk_pixbuf_animation_iter_on_currently_loading_frame", false) | |||
| 727 | + | ||||
| 702 | cret := xPixbufAnimationIterOnCurrentlyLoadingFrame(x.GoPointer()) | 728 | cret := xPixbufAnimationIterOnCurrentlyLoadingFrame(x.GoPointer()) | ||
| 703 | return cret | 729 | return cret | ||
| 704 | } | 730 | } | ||
| @@ -717,36 +743,4 @@ func (c *PixbufAnimationIter) SetGoPointer(ptr uintptr) { | |||||
| 717 | func init() { | 743 | func init() { | ||
| 718 | core.SetPackageName("GDKPIXBUF", "gdk-pixbuf-2.0") | 744 | core.SetPackageName("GDKPIXBUF", "gdk-pixbuf-2.0") | ||
| 719 | core.SetSharedLibraries("GDKPIXBUF", []string{"libgdk_pixbuf-2.0.so.0", "libgdk_pixbuf-2.0.0.dylib"}) | 745 | core.SetSharedLibraries("GDKPIXBUF", []string{"libgdk_pixbuf-2.0.so.0", "libgdk_pixbuf-2.0.0.dylib"}) | ||
| 720 | - | var libs []uintptr | |||
| 721 | - | for _, libPath := range core.GetPaths("GDKPIXBUF") { | |||
| 722 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 723 | - | if err != nil { | |||
| 724 | - | panic(err) | |||
| 725 | - | } | |||
| 726 | - | libs = append(libs, lib) | |||
| 727 | - | } | |||
| 728 | - | ||||
| 729 | - | core.PuregoSafeRegister(&xPixbufAnimationGLibType, libs, "gdk_pixbuf_animation_get_type") | |||
| 730 | - | ||||
| 731 | - | core.PuregoSafeRegister(&xNewPixbufAnimationFromFile, libs, "gdk_pixbuf_animation_new_from_file") | |||
| 732 | - | core.PuregoSafeRegister(&xNewPixbufAnimationFromResource, libs, "gdk_pixbuf_animation_new_from_resource") | |||
| 733 | - | core.PuregoSafeRegister(&xNewPixbufAnimationFromStream, libs, "gdk_pixbuf_animation_new_from_stream") | |||
| 734 | - | core.PuregoSafeRegister(&xNewPixbufAnimationFromStreamFinish, libs, "gdk_pixbuf_animation_new_from_stream_finish") | |||
| 735 | - | ||||
| 736 | - | core.PuregoSafeRegister(&xPixbufAnimationGetHeight, libs, "gdk_pixbuf_animation_get_height") | |||
| 737 | - | core.PuregoSafeRegister(&xPixbufAnimationGetIter, libs, "gdk_pixbuf_animation_get_iter") | |||
| 738 | - | core.PuregoSafeRegister(&xPixbufAnimationGetStaticImage, libs, "gdk_pixbuf_animation_get_static_image") | |||
| 739 | - | core.PuregoSafeRegister(&xPixbufAnimationGetWidth, libs, "gdk_pixbuf_animation_get_width") | |||
| 740 | - | core.PuregoSafeRegister(&xPixbufAnimationIsStaticImage, libs, "gdk_pixbuf_animation_is_static_image") | |||
| 741 | - | core.PuregoSafeRegister(&xPixbufAnimationRef, libs, "gdk_pixbuf_animation_ref") | |||
| 742 | - | core.PuregoSafeRegister(&xPixbufAnimationUnref, libs, "gdk_pixbuf_animation_unref") | |||
| 743 | - | ||||
| 744 | - | core.PuregoSafeRegister(&xPixbufAnimationNewFromStreamAsync, libs, "gdk_pixbuf_animation_new_from_stream_async") | |||
| 745 | - | ||||
| 746 | - | core.PuregoSafeRegister(&xPixbufAnimationIterGLibType, libs, "gdk_pixbuf_animation_iter_get_type") | |||
| 747 | - | ||||
| 748 | - | core.PuregoSafeRegister(&xPixbufAnimationIterAdvance, libs, "gdk_pixbuf_animation_iter_advance") | |||
| 749 | - | core.PuregoSafeRegister(&xPixbufAnimationIterGetDelayTime, libs, "gdk_pixbuf_animation_iter_get_delay_time") | |||
| 750 | - | core.PuregoSafeRegister(&xPixbufAnimationIterGetPixbuf, libs, "gdk_pixbuf_animation_iter_get_pixbuf") | |||
| 751 | - | core.PuregoSafeRegister(&xPixbufAnimationIterOnCurrentlyLoadingFrame, libs, "gdk_pixbuf_animation_iter_on_currently_loading_frame") | |||
| 752 | } | 746 | } | ||