Revert "chore(deps): pin puregotk nil-signal fix"
This reverts commit a161e348e2093172038390b0906448f0ae979a0d.
- commit
- 40378d5e4fd2372d054e49168ab2a6f67aedd0fd
- author
- brice · · 2026-07-14 17:59 UTC
- parent
- 8d647bb
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
905 files · +25263 -27842
M go.mod +1 -1
| @@ -11,7 +11,7 @@ require ( | |||
| 11 | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | |
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | |
| 14 | + | github.com/bnema/puregotk v0.7.0 | |
| 15 | 15 | github.com/charmbracelet/bubbles v1.0.0 | |
| 16 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 17 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -11,7 +11,7 @@ require ( | |||||
| 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | ||
| 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | ||
| 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | ||
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | 14 | + | github.com/bnema/puregotk v0.7.0 |
| 15 | github.com/charmbracelet/bubbles v1.0.0 | 15 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 16 | github.com/charmbracelet/bubbletea v1.3.10 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 17 | github.com/charmbracelet/lipgloss v1.1.0 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | ||
M go.sum +0 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +4 -197 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +0 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +64 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +62 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +29 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +47 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +27 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +25 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +26 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +38 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +37 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +37 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +33 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +38 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +48 -61 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +24 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +17 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +56 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +15 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +44 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +49 -60 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +38 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +33 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +29 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +27 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +39 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +34 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +30 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +21 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +44 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +24 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +28 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +30 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +32 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +87 -123 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +28 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +36 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +51 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +35 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +62 -78 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +22 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +46 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +46 -57 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/cairo/main.go +79 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +25 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +32 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +31 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +28 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +22 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +43 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +41 -53 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +28 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +24 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +1 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +118 -120 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +20 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +36 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +35 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +22 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +35 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmonitor.go +27 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpaintable.go +33 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +26 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +21 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +20 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +40 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +66 -157 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +25 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +16 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +72 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +32 -26
| @@ -333,7 +333,6 @@ 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) | |
| 337 | 336 | return xPixbufAnimationGLibType() | |
| 338 | 337 | } | |
| 339 | 338 | ||
| @@ -354,7 +353,6 @@ var xNewPixbufAnimationFromFile func(string, **glib.Error) uintptr | |||
| 354 | 353 | // | |
| 355 | 354 | // Possible errors are in the `GDK_PIXBUF_ERROR` and `G_FILE_ERROR` domains. | |
| 356 | 355 | func NewPixbufAnimationFromFile(FilenameVar string) (*PixbufAnimation, error) { | |
| 357 | - | core.LazyRegister(&xNewPixbufAnimationFromFile, "GDKPIXBUF", "gdk_pixbuf_animation_new_from_file", false) | |
| 358 | 356 | var cls *PixbufAnimation | |
| 359 | 357 | var cerr *glib.Error | |
| 360 | 358 | ||
| @@ -378,7 +376,6 @@ var xNewPixbufAnimationFromResource func(string, **glib.Error) uintptr | |||
| 378 | 376 | // The file format is detected automatically. If `NULL` is returned, then | |
| 379 | 377 | // @error will be set. | |
| 380 | 378 | func NewPixbufAnimationFromResource(ResourcePathVar string) (*PixbufAnimation, error) { | |
| 381 | - | core.LazyRegister(&xNewPixbufAnimationFromResource, "GDKPIXBUF", "gdk_pixbuf_animation_new_from_resource", false) | |
| 382 | 379 | var cls *PixbufAnimation | |
| 383 | 380 | var cerr *glib.Error | |
| 384 | 381 | ||
| @@ -410,7 +407,6 @@ var xNewPixbufAnimationFromStream func(uintptr, uintptr, **glib.Error) uintptr | |||
| 410 | 407 | // | |
| 411 | 408 | // The stream is not closed. | |
| 412 | 409 | func NewPixbufAnimationFromStream(StreamVar *gio.InputStream, CancellableVar *gio.Cancellable) (*PixbufAnimation, error) { | |
| 413 | - | core.LazyRegister(&xNewPixbufAnimationFromStream, "GDKPIXBUF", "gdk_pixbuf_animation_new_from_stream", false) | |
| 414 | 410 | var cls *PixbufAnimation | |
| 415 | 411 | var cerr *glib.Error | |
| 416 | 412 | ||
| @@ -432,7 +428,6 @@ var xNewPixbufAnimationFromStreamFinish func(uintptr, **glib.Error) uintptr | |||
| 432 | 428 | // Finishes an asynchronous pixbuf animation creation operation started with | |
| 433 | 429 | // [func@GdkPixbuf.PixbufAnimation.new_from_stream_async]. | |
| 434 | 430 | func NewPixbufAnimationFromStreamFinish(AsyncResultVar gio.AsyncResult) (*PixbufAnimation, error) { | |
| 435 | - | core.LazyRegister(&xNewPixbufAnimationFromStreamFinish, "GDKPIXBUF", "gdk_pixbuf_animation_new_from_stream_finish", false) | |
| 436 | 431 | var cls *PixbufAnimation | |
| 437 | 432 | var cerr *glib.Error | |
| 438 | 433 | ||
| @@ -453,8 +448,6 @@ var xPixbufAnimationGetHeight func(uintptr) int | |||
| 453 | 448 | ||
| 454 | 449 | // Queries the height of the bounding box of a pixbuf animation. | |
| 455 | 450 | func (x *PixbufAnimation) GetHeight() int { | |
| 456 | - | core.LazyRegister(&xPixbufAnimationGetHeight, "GDKPIXBUF", "gdk_pixbuf_animation_get_height", false) | |
| 457 | - | ||
| 458 | 451 | cret := xPixbufAnimationGetHeight(x.GoPointer()) | |
| 459 | 452 | return cret | |
| 460 | 453 | } | |
| @@ -496,7 +489,6 @@ var xPixbufAnimationGetIter func(uintptr, *glib.TimeVal) uintptr | |||
| 496 | 489 | // | |
| 497 | 490 | // A delay time of -1 is possible, indicating "infinite". | |
| 498 | 491 | func (x *PixbufAnimation) GetIter(StartTimeVar *glib.TimeVal) *PixbufAnimationIter { | |
| 499 | - | core.LazyRegister(&xPixbufAnimationGetIter, "GDKPIXBUF", "gdk_pixbuf_animation_get_iter", false) | |
| 500 | 492 | var cls *PixbufAnimationIter | |
| 501 | 493 | ||
| 502 | 494 | cret := xPixbufAnimationGetIter(x.GoPointer(), StartTimeVar) | |
| @@ -523,7 +515,6 @@ var xPixbufAnimationGetStaticImage func(uintptr) uintptr | |||
| 523 | 515 | // If an animation hasn't loaded any frames yet, this function will | |
| 524 | 516 | // return `NULL`. | |
| 525 | 517 | func (x *PixbufAnimation) GetStaticImage() *Pixbuf { | |
| 526 | - | core.LazyRegister(&xPixbufAnimationGetStaticImage, "GDKPIXBUF", "gdk_pixbuf_animation_get_static_image", false) | |
| 527 | 518 | var cls *Pixbuf | |
| 528 | 519 | ||
| 529 | 520 | cret := xPixbufAnimationGetStaticImage(x.GoPointer()) | |
| @@ -541,8 +532,6 @@ var xPixbufAnimationGetWidth func(uintptr) int | |||
| 541 | 532 | ||
| 542 | 533 | // Queries the width of the bounding box of a pixbuf animation. | |
| 543 | 534 | func (x *PixbufAnimation) GetWidth() int { | |
| 544 | - | core.LazyRegister(&xPixbufAnimationGetWidth, "GDKPIXBUF", "gdk_pixbuf_animation_get_width", false) | |
| 545 | - | ||
| 546 | 535 | cret := xPixbufAnimationGetWidth(x.GoPointer()) | |
| 547 | 536 | return cret | |
| 548 | 537 | } | |
| @@ -556,8 +545,6 @@ var xPixbufAnimationIsStaticImage func(uintptr) bool | |||
| 556 | 545 | // return `TRUE`. Use gdk_pixbuf_animation_get_static_image() to retrieve | |
| 557 | 546 | // the image. | |
| 558 | 547 | func (x *PixbufAnimation) IsStaticImage() bool { | |
| 559 | - | core.LazyRegister(&xPixbufAnimationIsStaticImage, "GDKPIXBUF", "gdk_pixbuf_animation_is_static_image", false) | |
| 560 | - | ||
| 561 | 548 | cret := xPixbufAnimationIsStaticImage(x.GoPointer()) | |
| 562 | 549 | return cret | |
| 563 | 550 | } | |
| @@ -566,7 +553,6 @@ var xPixbufAnimationRef func(uintptr) uintptr | |||
| 566 | 553 | ||
| 567 | 554 | // Adds a reference to an animation. | |
| 568 | 555 | func (x *PixbufAnimation) Ref() *PixbufAnimation { | |
| 569 | - | core.LazyRegister(&xPixbufAnimationRef, "GDKPIXBUF", "gdk_pixbuf_animation_ref", false) | |
| 570 | 556 | var cls *PixbufAnimation | |
| 571 | 557 | ||
| 572 | 558 | cret := xPixbufAnimationRef(x.GoPointer()) | |
| @@ -583,8 +569,6 @@ var xPixbufAnimationUnref func(uintptr) | |||
| 583 | 569 | ||
| 584 | 570 | // Removes a reference from an animation. | |
| 585 | 571 | func (x *PixbufAnimation) Unref() { | |
| 586 | - | core.LazyRegister(&xPixbufAnimationUnref, "GDKPIXBUF", "gdk_pixbuf_animation_unref", false) | |
| 587 | - | ||
| 588 | 572 | xPixbufAnimationUnref(x.GoPointer()) | |
| 589 | 573 | } | |
| 590 | 574 | ||
| @@ -610,8 +594,6 @@ var xPixbufAnimationNewFromStreamAsync func(uintptr, uintptr, uintptr, uintptr) | |||
| 610 | 594 | // You can then call gdk_pixbuf_animation_new_from_stream_finish() to get the | |
| 611 | 595 | // result of the operation. | |
| 612 | 596 | 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 | - | ||
| 615 | 597 | xPixbufAnimationNewFromStreamAsync(StreamVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 616 | 598 | } | |
| 617 | 599 | ||
| @@ -624,7 +606,6 @@ type PixbufAnimationIter struct { | |||
| 624 | 606 | var xPixbufAnimationIterGLibType func() types.GType | |
| 625 | 607 | ||
| 626 | 608 | func PixbufAnimationIterGLibType() types.GType { | |
| 627 | - | core.LazyRegister(&xPixbufAnimationIterGLibType, "GDKPIXBUF", "gdk_pixbuf_animation_iter_get_type", false) | |
| 628 | 609 | return xPixbufAnimationIterGLibType() | |
| 629 | 610 | } | |
| 630 | 611 | ||
| @@ -658,8 +639,6 @@ var xPixbufAnimationIterAdvance func(uintptr, *glib.TimeVal) bool | |||
| 658 | 639 | // if `TRUE`, you need to call gdk_pixbuf_animation_iter_get_pixbuf() | |
| 659 | 640 | // and update the display with the new pixbuf. | |
| 660 | 641 | func (x *PixbufAnimationIter) Advance(CurrentTimeVar *glib.TimeVal) bool { | |
| 661 | - | core.LazyRegister(&xPixbufAnimationIterAdvance, "GDKPIXBUF", "gdk_pixbuf_animation_iter_advance", false) | |
| 662 | - | ||
| 663 | 642 | cret := xPixbufAnimationIterAdvance(x.GoPointer(), CurrentTimeVar) | |
| 664 | 643 | return cret | |
| 665 | 644 | } | |
| @@ -676,8 +655,6 @@ var xPixbufAnimationIterGetDelayTime func(uintptr) int | |||
| 676 | 655 | // image file to avoid updates that are just too quick. The minimum timeout | |
| 677 | 656 | // for GIF images is currently 20 milliseconds. | |
| 678 | 657 | func (x *PixbufAnimationIter) GetDelayTime() int { | |
| 679 | - | core.LazyRegister(&xPixbufAnimationIterGetDelayTime, "GDKPIXBUF", "gdk_pixbuf_animation_iter_get_delay_time", false) | |
| 680 | - | ||
| 681 | 658 | cret := xPixbufAnimationIterGetDelayTime(x.GoPointer()) | |
| 682 | 659 | return cret | |
| 683 | 660 | } | |
| @@ -700,7 +677,6 @@ var xPixbufAnimationIterGetPixbuf func(uintptr) uintptr | |||
| 700 | 677 | // Copy the pixbuf to keep it (don't just add a reference), as it may get | |
| 701 | 678 | // recycled as you advance the iterator. | |
| 702 | 679 | func (x *PixbufAnimationIter) GetPixbuf() *Pixbuf { | |
| 703 | - | core.LazyRegister(&xPixbufAnimationIterGetPixbuf, "GDKPIXBUF", "gdk_pixbuf_animation_iter_get_pixbuf", false) | |
| 704 | 680 | var cls *Pixbuf | |
| 705 | 681 | ||
| 706 | 682 | cret := xPixbufAnimationIterGetPixbuf(x.GoPointer()) | |
| @@ -723,8 +699,6 @@ var xPixbufAnimationIterOnCurrentlyLoadingFrame func(uintptr) bool | |||
| 723 | 699 | // streaming in to the loader. So if you're on the currently loading frame, | |
| 724 | 700 | // you will need to redraw the screen for the updated area. | |
| 725 | 701 | func (x *PixbufAnimationIter) OnCurrentlyLoadingFrame() bool { | |
| 726 | - | core.LazyRegister(&xPixbufAnimationIterOnCurrentlyLoadingFrame, "GDKPIXBUF", "gdk_pixbuf_animation_iter_on_currently_loading_frame", false) | |
| 727 | - | ||
| 728 | 702 | cret := xPixbufAnimationIterOnCurrentlyLoadingFrame(x.GoPointer()) | |
| 729 | 703 | return cret | |
| 730 | 704 | } | |
| @@ -743,4 +717,36 @@ func (c *PixbufAnimationIter) SetGoPointer(ptr uintptr) { | |||
| 743 | 717 | func init() { | |
| 744 | 718 | core.SetPackageName("GDKPIXBUF", "gdk-pixbuf-2.0") | |
| 745 | 719 | 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") | |
| 746 | 752 | } | |
| @@ -333,7 +333,6 @@ 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) | |||
| 337 | return xPixbufAnimationGLibType() | 336 | return xPixbufAnimationGLibType() | ||
| 338 | } | 337 | } | ||
| 339 | 338 | ||||
| @@ -354,7 +353,6 @@ var xNewPixbufAnimationFromFile func(string, **glib.Error) uintptr | |||||
| 354 | // | 353 | // | ||
| 355 | // Possible errors are in the `GDK_PIXBUF_ERROR` and `G_FILE_ERROR` domains. | 354 | // Possible errors are in the `GDK_PIXBUF_ERROR` and `G_FILE_ERROR` domains. | ||
| 356 | func NewPixbufAnimationFromFile(FilenameVar string) (*PixbufAnimation, error) { | 355 | func NewPixbufAnimationFromFile(FilenameVar string) (*PixbufAnimation, error) { | ||
| 357 | - | core.LazyRegister(&xNewPixbufAnimationFromFile, "GDKPIXBUF", "gdk_pixbuf_animation_new_from_file", false) | |||
| 358 | var cls *PixbufAnimation | 356 | var cls *PixbufAnimation | ||
| 359 | var cerr *glib.Error | 357 | var cerr *glib.Error | ||
| 360 | 358 | ||||
| @@ -378,7 +376,6 @@ var xNewPixbufAnimationFromResource func(string, **glib.Error) uintptr | |||||
| 378 | // The file format is detected automatically. If `NULL` is returned, then | 376 | // The file format is detected automatically. If `NULL` is returned, then | ||
| 379 | // @error will be set. | 377 | // @error will be set. | ||
| 380 | func NewPixbufAnimationFromResource(ResourcePathVar string) (*PixbufAnimation, error) { | 378 | func NewPixbufAnimationFromResource(ResourcePathVar string) (*PixbufAnimation, error) { | ||
| 381 | - | core.LazyRegister(&xNewPixbufAnimationFromResource, "GDKPIXBUF", "gdk_pixbuf_animation_new_from_resource", false) | |||
| 382 | var cls *PixbufAnimation | 379 | var cls *PixbufAnimation | ||
| 383 | var cerr *glib.Error | 380 | var cerr *glib.Error | ||
| 384 | 381 | ||||
| @@ -410,7 +407,6 @@ var xNewPixbufAnimationFromStream func(uintptr, uintptr, **glib.Error) uintptr | |||||
| 410 | // | 407 | // | ||
| 411 | // The stream is not closed. | 408 | // The stream is not closed. | ||
| 412 | func NewPixbufAnimationFromStream(StreamVar *gio.InputStream, CancellableVar *gio.Cancellable) (*PixbufAnimation, error) { | 409 | func NewPixbufAnimationFromStream(StreamVar *gio.InputStream, CancellableVar *gio.Cancellable) (*PixbufAnimation, error) { | ||
| 413 | - | core.LazyRegister(&xNewPixbufAnimationFromStream, "GDKPIXBUF", "gdk_pixbuf_animation_new_from_stream", false) | |||
| 414 | var cls *PixbufAnimation | 410 | var cls *PixbufAnimation | ||
| 415 | var cerr *glib.Error | 411 | var cerr *glib.Error | ||
| 416 | 412 | ||||
| @@ -432,7 +428,6 @@ var xNewPixbufAnimationFromStreamFinish func(uintptr, **glib.Error) uintptr | |||||
| 432 | // Finishes an asynchronous pixbuf animation creation operation started with | 428 | // Finishes an asynchronous pixbuf animation creation operation started with | ||
| 433 | // [func@GdkPixbuf.PixbufAnimation.new_from_stream_async]. | 429 | // [func@GdkPixbuf.PixbufAnimation.new_from_stream_async]. | ||
| 434 | func NewPixbufAnimationFromStreamFinish(AsyncResultVar gio.AsyncResult) (*PixbufAnimation, error) { | 430 | func NewPixbufAnimationFromStreamFinish(AsyncResultVar gio.AsyncResult) (*PixbufAnimation, error) { | ||
| 435 | - | core.LazyRegister(&xNewPixbufAnimationFromStreamFinish, "GDKPIXBUF", "gdk_pixbuf_animation_new_from_stream_finish", false) | |||
| 436 | var cls *PixbufAnimation | 431 | var cls *PixbufAnimation | ||
| 437 | var cerr *glib.Error | 432 | var cerr *glib.Error | ||
| 438 | 433 | ||||
| @@ -453,8 +448,6 @@ var xPixbufAnimationGetHeight func(uintptr) int | |||||
| 453 | 448 | ||||
| 454 | // Queries the height of the bounding box of a pixbuf animation. | 449 | // Queries the height of the bounding box of a pixbuf animation. | ||
| 455 | func (x *PixbufAnimation) GetHeight() int { | 450 | func (x *PixbufAnimation) GetHeight() int { | ||
| 456 | - | core.LazyRegister(&xPixbufAnimationGetHeight, "GDKPIXBUF", "gdk_pixbuf_animation_get_height", false) | |||
| 457 | - | ||||
| 458 | cret := xPixbufAnimationGetHeight(x.GoPointer()) | 451 | cret := xPixbufAnimationGetHeight(x.GoPointer()) | ||
| 459 | return cret | 452 | return cret | ||
| 460 | } | 453 | } | ||
| @@ -496,7 +489,6 @@ var xPixbufAnimationGetIter func(uintptr, *glib.TimeVal) uintptr | |||||
| 496 | // | 489 | // | ||
| 497 | // A delay time of -1 is possible, indicating "infinite". | 490 | // A delay time of -1 is possible, indicating "infinite". | ||
| 498 | func (x *PixbufAnimation) GetIter(StartTimeVar *glib.TimeVal) *PixbufAnimationIter { | 491 | func (x *PixbufAnimation) GetIter(StartTimeVar *glib.TimeVal) *PixbufAnimationIter { | ||
| 499 | - | core.LazyRegister(&xPixbufAnimationGetIter, "GDKPIXBUF", "gdk_pixbuf_animation_get_iter", false) | |||
| 500 | var cls *PixbufAnimationIter | 492 | var cls *PixbufAnimationIter | ||
| 501 | 493 | ||||
| 502 | cret := xPixbufAnimationGetIter(x.GoPointer(), StartTimeVar) | 494 | cret := xPixbufAnimationGetIter(x.GoPointer(), StartTimeVar) | ||
| @@ -523,7 +515,6 @@ var xPixbufAnimationGetStaticImage func(uintptr) uintptr | |||||
| 523 | // If an animation hasn't loaded any frames yet, this function will | 515 | // If an animation hasn't loaded any frames yet, this function will | ||
| 524 | // return `NULL`. | 516 | // return `NULL`. | ||
| 525 | func (x *PixbufAnimation) GetStaticImage() *Pixbuf { | 517 | func (x *PixbufAnimation) GetStaticImage() *Pixbuf { | ||
| 526 | - | core.LazyRegister(&xPixbufAnimationGetStaticImage, "GDKPIXBUF", "gdk_pixbuf_animation_get_static_image", false) | |||
| 527 | var cls *Pixbuf | 518 | var cls *Pixbuf | ||
| 528 | 519 | ||||
| 529 | cret := xPixbufAnimationGetStaticImage(x.GoPointer()) | 520 | cret := xPixbufAnimationGetStaticImage(x.GoPointer()) | ||
| @@ -541,8 +532,6 @@ var xPixbufAnimationGetWidth func(uintptr) int | |||||
| 541 | 532 | ||||
| 542 | // Queries the width of the bounding box of a pixbuf animation. | 533 | // Queries the width of the bounding box of a pixbuf animation. | ||
| 543 | func (x *PixbufAnimation) GetWidth() int { | 534 | func (x *PixbufAnimation) GetWidth() int { | ||
| 544 | - | core.LazyRegister(&xPixbufAnimationGetWidth, "GDKPIXBUF", "gdk_pixbuf_animation_get_width", false) | |||
| 545 | - | ||||
| 546 | cret := xPixbufAnimationGetWidth(x.GoPointer()) | 535 | cret := xPixbufAnimationGetWidth(x.GoPointer()) | ||
| 547 | return cret | 536 | return cret | ||
| 548 | } | 537 | } | ||
| @@ -556,8 +545,6 @@ var xPixbufAnimationIsStaticImage func(uintptr) bool | |||||
| 556 | // return `TRUE`. Use gdk_pixbuf_animation_get_static_image() to retrieve | 545 | // return `TRUE`. Use gdk_pixbuf_animation_get_static_image() to retrieve | ||
| 557 | // the image. | 546 | // the image. | ||
| 558 | func (x *PixbufAnimation) IsStaticImage() bool { | 547 | func (x *PixbufAnimation) IsStaticImage() bool { | ||
| 559 | - | core.LazyRegister(&xPixbufAnimationIsStaticImage, "GDKPIXBUF", "gdk_pixbuf_animation_is_static_image", false) | |||
| 560 | - | ||||
| 561 | cret := xPixbufAnimationIsStaticImage(x.GoPointer()) | 548 | cret := xPixbufAnimationIsStaticImage(x.GoPointer()) | ||
| 562 | return cret | 549 | return cret | ||
| 563 | } | 550 | } | ||
| @@ -566,7 +553,6 @@ var xPixbufAnimationRef func(uintptr) uintptr | |||||
| 566 | 553 | ||||
| 567 | // Adds a reference to an animation. | 554 | // Adds a reference to an animation. | ||
| 568 | func (x *PixbufAnimation) Ref() *PixbufAnimation { | 555 | func (x *PixbufAnimation) Ref() *PixbufAnimation { | ||
| 569 | - | core.LazyRegister(&xPixbufAnimationRef, "GDKPIXBUF", "gdk_pixbuf_animation_ref", false) | |||
| 570 | var cls *PixbufAnimation | 556 | var cls *PixbufAnimation | ||
| 571 | 557 | ||||
| 572 | cret := xPixbufAnimationRef(x.GoPointer()) | 558 | cret := xPixbufAnimationRef(x.GoPointer()) | ||
| @@ -583,8 +569,6 @@ var xPixbufAnimationUnref func(uintptr) | |||||
| 583 | 569 | ||||
| 584 | // Removes a reference from an animation. | 570 | // Removes a reference from an animation. | ||
| 585 | func (x *PixbufAnimation) Unref() { | 571 | func (x *PixbufAnimation) Unref() { | ||
| 586 | - | core.LazyRegister(&xPixbufAnimationUnref, "GDKPIXBUF", "gdk_pixbuf_animation_unref", false) | |||
| 587 | - | ||||
| 588 | xPixbufAnimationUnref(x.GoPointer()) | 572 | xPixbufAnimationUnref(x.GoPointer()) | ||
| 589 | } | 573 | } | ||
| 590 | 574 | ||||
| @@ -610,8 +594,6 @@ var xPixbufAnimationNewFromStreamAsync func(uintptr, uintptr, uintptr, uintptr) | |||||
| 610 | // You can then call gdk_pixbuf_animation_new_from_stream_finish() to get the | 594 | // You can then call gdk_pixbuf_animation_new_from_stream_finish() to get the | ||
| 611 | // result of the operation. | 595 | // result of the operation. | ||
| 612 | func PixbufAnimationNewFromStreamAsync(StreamVar *gio.InputStream, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr) { | 596 | 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 | - | ||||
| 615 | xPixbufAnimationNewFromStreamAsync(StreamVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 597 | xPixbufAnimationNewFromStreamAsync(StreamVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 616 | } | 598 | } | ||
| 617 | 599 | ||||
| @@ -624,7 +606,6 @@ type PixbufAnimationIter struct { | |||||
| 624 | var xPixbufAnimationIterGLibType func() types.GType | 606 | var xPixbufAnimationIterGLibType func() types.GType | ||
| 625 | 607 | ||||
| 626 | func PixbufAnimationIterGLibType() types.GType { | 608 | func PixbufAnimationIterGLibType() types.GType { | ||
| 627 | - | core.LazyRegister(&xPixbufAnimationIterGLibType, "GDKPIXBUF", "gdk_pixbuf_animation_iter_get_type", false) | |||
| 628 | return xPixbufAnimationIterGLibType() | 609 | return xPixbufAnimationIterGLibType() | ||
| 629 | } | 610 | } | ||
| 630 | 611 | ||||
| @@ -658,8 +639,6 @@ var xPixbufAnimationIterAdvance func(uintptr, *glib.TimeVal) bool | |||||
| 658 | // if `TRUE`, you need to call gdk_pixbuf_animation_iter_get_pixbuf() | 639 | // if `TRUE`, you need to call gdk_pixbuf_animation_iter_get_pixbuf() | ||
| 659 | // and update the display with the new pixbuf. | 640 | // and update the display with the new pixbuf. | ||
| 660 | func (x *PixbufAnimationIter) Advance(CurrentTimeVar *glib.TimeVal) bool { | 641 | func (x *PixbufAnimationIter) Advance(CurrentTimeVar *glib.TimeVal) bool { | ||
| 661 | - | core.LazyRegister(&xPixbufAnimationIterAdvance, "GDKPIXBUF", "gdk_pixbuf_animation_iter_advance", false) | |||
| 662 | - | ||||
| 663 | cret := xPixbufAnimationIterAdvance(x.GoPointer(), CurrentTimeVar) | 642 | cret := xPixbufAnimationIterAdvance(x.GoPointer(), CurrentTimeVar) | ||
| 664 | return cret | 643 | return cret | ||
| 665 | } | 644 | } | ||
| @@ -676,8 +655,6 @@ var xPixbufAnimationIterGetDelayTime func(uintptr) int | |||||
| 676 | // image file to avoid updates that are just too quick. The minimum timeout | 655 | // image file to avoid updates that are just too quick. The minimum timeout | ||
| 677 | // for GIF images is currently 20 milliseconds. | 656 | // for GIF images is currently 20 milliseconds. | ||
| 678 | func (x *PixbufAnimationIter) GetDelayTime() int { | 657 | func (x *PixbufAnimationIter) GetDelayTime() int { | ||
| 679 | - | core.LazyRegister(&xPixbufAnimationIterGetDelayTime, "GDKPIXBUF", "gdk_pixbuf_animation_iter_get_delay_time", false) | |||
| 680 | - | ||||
| 681 | cret := xPixbufAnimationIterGetDelayTime(x.GoPointer()) | 658 | cret := xPixbufAnimationIterGetDelayTime(x.GoPointer()) | ||
| 682 | return cret | 659 | return cret | ||
| 683 | } | 660 | } | ||
| @@ -700,7 +677,6 @@ var xPixbufAnimationIterGetPixbuf func(uintptr) uintptr | |||||
| 700 | // Copy the pixbuf to keep it (don't just add a reference), as it may get | 677 | // Copy the pixbuf to keep it (don't just add a reference), as it may get | ||
| 701 | // recycled as you advance the iterator. | 678 | // recycled as you advance the iterator. | ||
| 702 | func (x *PixbufAnimationIter) GetPixbuf() *Pixbuf { | 679 | func (x *PixbufAnimationIter) GetPixbuf() *Pixbuf { | ||
| 703 | - | core.LazyRegister(&xPixbufAnimationIterGetPixbuf, "GDKPIXBUF", "gdk_pixbuf_animation_iter_get_pixbuf", false) | |||
| 704 | var cls *Pixbuf | 680 | var cls *Pixbuf | ||
| 705 | 681 | ||||
| 706 | cret := xPixbufAnimationIterGetPixbuf(x.GoPointer()) | 682 | cret := xPixbufAnimationIterGetPixbuf(x.GoPointer()) | ||
| @@ -723,8 +699,6 @@ var xPixbufAnimationIterOnCurrentlyLoadingFrame func(uintptr) bool | |||||
| 723 | // streaming in to the loader. So if you're on the currently loading frame, | 699 | // streaming in to the loader. So if you're on the currently loading frame, | ||
| 724 | // you will need to redraw the screen for the updated area. | 700 | // you will need to redraw the screen for the updated area. | ||
| 725 | func (x *PixbufAnimationIter) OnCurrentlyLoadingFrame() bool { | 701 | func (x *PixbufAnimationIter) OnCurrentlyLoadingFrame() bool { | ||
| 726 | - | core.LazyRegister(&xPixbufAnimationIterOnCurrentlyLoadingFrame, "GDKPIXBUF", "gdk_pixbuf_animation_iter_on_currently_loading_frame", false) | |||
| 727 | - | ||||
| 728 | cret := xPixbufAnimationIterOnCurrentlyLoadingFrame(x.GoPointer()) | 702 | cret := xPixbufAnimationIterOnCurrentlyLoadingFrame(x.GoPointer()) | ||
| 729 | return cret | 703 | return cret | ||
| 730 | } | 704 | } | ||
| @@ -743,4 +717,36 @@ func (c *PixbufAnimationIter) SetGoPointer(ptr uintptr) { | |||||
| 743 | func init() { | 717 | func init() { | ||
| 744 | core.SetPackageName("GDKPIXBUF", "gdk-pixbuf-2.0") | 718 | core.SetPackageName("GDKPIXBUF", "gdk-pixbuf-2.0") | ||
| 745 | core.SetSharedLibraries("GDKPIXBUF", []string{"libgdk_pixbuf-2.0.so.0", "libgdk_pixbuf-2.0.0.dylib"}) | 719 | 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") | |||
| 746 | } | 752 | } | ||