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 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-core.go +0 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-io.go +23 -25
| @@ -130,7 +130,6 @@ type PixbufFormat struct { | |||
| 130 | 130 | var xPixbufFormatGLibType func() types.GType | |
| 131 | 131 | ||
| 132 | 132 | func PixbufFormatGLibType() types.GType { | |
| 133 | - | core.LazyRegister(&xPixbufFormatGLibType, "GDKPIXBUF", "gdk_pixbuf_format_get_type", false) | |
| 134 | 133 | return xPixbufFormatGLibType() | |
| 135 | 134 | } | |
| 136 | 135 | ||
| @@ -150,8 +149,6 @@ var xPixbufFormatCopy func(uintptr) uintptr | |||
| 150 | 149 | ||
| 151 | 150 | // Creates a copy of `format`. | |
| 152 | 151 | func (x *PixbufFormat) Copy() *PixbufFormat { | |
| 153 | - | core.LazyRegister(&xPixbufFormatCopy, "GDKPIXBUF", "gdk_pixbuf_format_copy", false) | |
| 154 | - | ||
| 155 | 152 | cret := xPixbufFormatCopy(x.GoPointer()) | |
| 156 | 153 | if cret == 0 { | |
| 157 | 154 | return nil | |
| @@ -164,8 +161,6 @@ var xPixbufFormatFree func(uintptr) | |||
| 164 | 161 | // Frees the resources allocated when copying a `GdkPixbufFormat` | |
| 165 | 162 | // using gdk_pixbuf_format_copy() | |
| 166 | 163 | func (x *PixbufFormat) Free() { | |
| 167 | - | core.LazyRegister(&xPixbufFormatFree, "GDKPIXBUF", "gdk_pixbuf_format_free", false) | |
| 168 | - | ||
| 169 | 164 | xPixbufFormatFree(x.GoPointer()) | |
| 170 | 165 | } | |
| 171 | 166 | ||
| @@ -173,8 +168,6 @@ var xPixbufFormatGetDescription func(uintptr) string | |||
| 173 | 168 | ||
| 174 | 169 | // Returns a description of the format. | |
| 175 | 170 | func (x *PixbufFormat) GetDescription() string { | |
| 176 | - | core.LazyRegister(&xPixbufFormatGetDescription, "GDKPIXBUF", "gdk_pixbuf_format_get_description", false) | |
| 177 | - | ||
| 178 | 171 | cret := xPixbufFormatGetDescription(x.GoPointer()) | |
| 179 | 172 | return cret | |
| 180 | 173 | } | |
| @@ -184,8 +177,6 @@ var xPixbufFormatGetExtensions func(uintptr) []string | |||
| 184 | 177 | // Returns the filename extensions typically used for files in the | |
| 185 | 178 | // given format. | |
| 186 | 179 | func (x *PixbufFormat) GetExtensions() []string { | |
| 187 | - | core.LazyRegister(&xPixbufFormatGetExtensions, "GDKPIXBUF", "gdk_pixbuf_format_get_extensions", false) | |
| 188 | - | ||
| 189 | 180 | cret := xPixbufFormatGetExtensions(x.GoPointer()) | |
| 190 | 181 | return cret | |
| 191 | 182 | } | |
| @@ -197,8 +188,6 @@ var xPixbufFormatGetLicense func(uintptr) string | |||
| 197 | 188 | // The returned string should be a shorthand for a well known license, e.g. | |
| 198 | 189 | // "LGPL", "GPL", "QPL", "GPL/QPL", or "other" to indicate some other license. | |
| 199 | 190 | func (x *PixbufFormat) GetLicense() string { | |
| 200 | - | core.LazyRegister(&xPixbufFormatGetLicense, "GDKPIXBUF", "gdk_pixbuf_format_get_license", false) | |
| 201 | - | ||
| 202 | 191 | cret := xPixbufFormatGetLicense(x.GoPointer()) | |
| 203 | 192 | return cret | |
| 204 | 193 | } | |
| @@ -207,8 +196,6 @@ var xPixbufFormatGetMimeTypes func(uintptr) []string | |||
| 207 | 196 | ||
| 208 | 197 | // Returns the mime types supported by the format. | |
| 209 | 198 | func (x *PixbufFormat) GetMimeTypes() []string { | |
| 210 | - | core.LazyRegister(&xPixbufFormatGetMimeTypes, "GDKPIXBUF", "gdk_pixbuf_format_get_mime_types", false) | |
| 211 | - | ||
| 212 | 199 | cret := xPixbufFormatGetMimeTypes(x.GoPointer()) | |
| 213 | 200 | return cret | |
| 214 | 201 | } | |
| @@ -217,8 +204,6 @@ var xPixbufFormatGetName func(uintptr) string | |||
| 217 | 204 | ||
| 218 | 205 | // Returns the name of the format. | |
| 219 | 206 | func (x *PixbufFormat) GetName() string { | |
| 220 | - | core.LazyRegister(&xPixbufFormatGetName, "GDKPIXBUF", "gdk_pixbuf_format_get_name", false) | |
| 221 | - | ||
| 222 | 207 | cret := xPixbufFormatGetName(x.GoPointer()) | |
| 223 | 208 | return cret | |
| 224 | 209 | } | |
| @@ -229,8 +214,6 @@ var xPixbufFormatIsDisabled func(uintptr) bool | |||
| 229 | 214 | // | |
| 230 | 215 | // See gdk_pixbuf_format_set_disabled(). | |
| 231 | 216 | func (x *PixbufFormat) IsDisabled() bool { | |
| 232 | - | core.LazyRegister(&xPixbufFormatIsDisabled, "GDKPIXBUF", "gdk_pixbuf_format_is_disabled", false) | |
| 233 | - | ||
| 234 | 217 | cret := xPixbufFormatIsDisabled(x.GoPointer()) | |
| 235 | 218 | return cret | |
| 236 | 219 | } | |
| @@ -242,8 +225,6 @@ var xPixbufFormatIsSaveOptionSupported func(uintptr, string) bool | |||
| 242 | 225 | // | |
| 243 | 226 | // See gdk_pixbuf_save() for more information about option keys. | |
| 244 | 227 | func (x *PixbufFormat) IsSaveOptionSupported(OptionKeyVar string) bool { | |
| 245 | - | core.LazyRegister(&xPixbufFormatIsSaveOptionSupported, "GDKPIXBUF", "gdk_pixbuf_format_is_save_option_supported", false) | |
| 246 | - | ||
| 247 | 228 | cret := xPixbufFormatIsSaveOptionSupported(x.GoPointer(), OptionKeyVar) | |
| 248 | 229 | return cret | |
| 249 | 230 | } | |
| @@ -256,8 +237,6 @@ var xPixbufFormatIsScalable func(uintptr) bool | |||
| 256 | 237 | // the desired size, rather than loading it at the default size and | |
| 257 | 238 | // scaling the resulting pixbuf to the desired size. | |
| 258 | 239 | func (x *PixbufFormat) IsScalable() bool { | |
| 259 | - | core.LazyRegister(&xPixbufFormatIsScalable, "GDKPIXBUF", "gdk_pixbuf_format_is_scalable", false) | |
| 260 | - | ||
| 261 | 240 | cret := xPixbufFormatIsScalable(x.GoPointer()) | |
| 262 | 241 | return cret | |
| 263 | 242 | } | |
| @@ -266,8 +245,6 @@ var xPixbufFormatIsWritable func(uintptr) bool | |||
| 266 | 245 | ||
| 267 | 246 | // Returns whether pixbufs can be saved in the given format. | |
| 268 | 247 | func (x *PixbufFormat) IsWritable() bool { | |
| 269 | - | core.LazyRegister(&xPixbufFormatIsWritable, "GDKPIXBUF", "gdk_pixbuf_format_is_writable", false) | |
| 270 | - | ||
| 271 | 248 | cret := xPixbufFormatIsWritable(x.GoPointer()) | |
| 272 | 249 | return cret | |
| 273 | 250 | } | |
| @@ -282,8 +259,6 @@ var xPixbufFormatSetDisabled func(uintptr, bool) | |||
| 282 | 259 | // Applications can use this to avoid using image loaders with an | |
| 283 | 260 | // inappropriate license, see gdk_pixbuf_format_get_license(). | |
| 284 | 261 | func (x *PixbufFormat) SetDisabled(DisabledVar bool) { | |
| 285 | - | core.LazyRegister(&xPixbufFormatSetDisabled, "GDKPIXBUF", "gdk_pixbuf_format_set_disabled", false) | |
| 286 | - | ||
| 287 | 262 | xPixbufFormatSetDisabled(x.GoPointer(), DisabledVar) | |
| 288 | 263 | } | |
| 289 | 264 | ||
| @@ -546,4 +521,27 @@ const ( | |||
| 546 | 521 | func init() { | |
| 547 | 522 | core.SetPackageName("GDKPIXBUF", "gdk-pixbuf-2.0") | |
| 548 | 523 | core.SetSharedLibraries("GDKPIXBUF", []string{"libgdk_pixbuf-2.0.so.0", "libgdk_pixbuf-2.0.0.dylib"}) | |
| 524 | + | var libs []uintptr | |
| 525 | + | for _, libPath := range core.GetPaths("GDKPIXBUF") { | |
| 526 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 527 | + | if err != nil { | |
| 528 | + | panic(err) | |
| 529 | + | } | |
| 530 | + | libs = append(libs, lib) | |
| 531 | + | } | |
| 532 | + | ||
| 533 | + | core.PuregoSafeRegister(&xPixbufFormatGLibType, libs, "gdk_pixbuf_format_get_type") | |
| 534 | + | ||
| 535 | + | core.PuregoSafeRegister(&xPixbufFormatCopy, libs, "gdk_pixbuf_format_copy") | |
| 536 | + | core.PuregoSafeRegister(&xPixbufFormatFree, libs, "gdk_pixbuf_format_free") | |
| 537 | + | core.PuregoSafeRegister(&xPixbufFormatGetDescription, libs, "gdk_pixbuf_format_get_description") | |
| 538 | + | core.PuregoSafeRegister(&xPixbufFormatGetExtensions, libs, "gdk_pixbuf_format_get_extensions") | |
| 539 | + | core.PuregoSafeRegister(&xPixbufFormatGetLicense, libs, "gdk_pixbuf_format_get_license") | |
| 540 | + | core.PuregoSafeRegister(&xPixbufFormatGetMimeTypes, libs, "gdk_pixbuf_format_get_mime_types") | |
| 541 | + | core.PuregoSafeRegister(&xPixbufFormatGetName, libs, "gdk_pixbuf_format_get_name") | |
| 542 | + | core.PuregoSafeRegister(&xPixbufFormatIsDisabled, libs, "gdk_pixbuf_format_is_disabled") | |
| 543 | + | core.PuregoSafeRegister(&xPixbufFormatIsSaveOptionSupported, libs, "gdk_pixbuf_format_is_save_option_supported") | |
| 544 | + | core.PuregoSafeRegister(&xPixbufFormatIsScalable, libs, "gdk_pixbuf_format_is_scalable") | |
| 545 | + | core.PuregoSafeRegister(&xPixbufFormatIsWritable, libs, "gdk_pixbuf_format_is_writable") | |
| 546 | + | core.PuregoSafeRegister(&xPixbufFormatSetDisabled, libs, "gdk_pixbuf_format_set_disabled") | |
| 549 | 547 | } | |
| @@ -130,7 +130,6 @@ type PixbufFormat struct { | |||||
| 130 | var xPixbufFormatGLibType func() types.GType | 130 | var xPixbufFormatGLibType func() types.GType | ||
| 131 | 131 | ||||
| 132 | func PixbufFormatGLibType() types.GType { | 132 | func PixbufFormatGLibType() types.GType { | ||
| 133 | - | core.LazyRegister(&xPixbufFormatGLibType, "GDKPIXBUF", "gdk_pixbuf_format_get_type", false) | |||
| 134 | return xPixbufFormatGLibType() | 133 | return xPixbufFormatGLibType() | ||
| 135 | } | 134 | } | ||
| 136 | 135 | ||||
| @@ -150,8 +149,6 @@ var xPixbufFormatCopy func(uintptr) uintptr | |||||
| 150 | 149 | ||||
| 151 | // Creates a copy of `format`. | 150 | // Creates a copy of `format`. | ||
| 152 | func (x *PixbufFormat) Copy() *PixbufFormat { | 151 | func (x *PixbufFormat) Copy() *PixbufFormat { | ||
| 153 | - | core.LazyRegister(&xPixbufFormatCopy, "GDKPIXBUF", "gdk_pixbuf_format_copy", false) | |||
| 154 | - | ||||
| 155 | cret := xPixbufFormatCopy(x.GoPointer()) | 152 | cret := xPixbufFormatCopy(x.GoPointer()) | ||
| 156 | if cret == 0 { | 153 | if cret == 0 { | ||
| 157 | return nil | 154 | return nil | ||
| @@ -164,8 +161,6 @@ var xPixbufFormatFree func(uintptr) | |||||
| 164 | // Frees the resources allocated when copying a `GdkPixbufFormat` | 161 | // Frees the resources allocated when copying a `GdkPixbufFormat` | ||
| 165 | // using gdk_pixbuf_format_copy() | 162 | // using gdk_pixbuf_format_copy() | ||
| 166 | func (x *PixbufFormat) Free() { | 163 | func (x *PixbufFormat) Free() { | ||
| 167 | - | core.LazyRegister(&xPixbufFormatFree, "GDKPIXBUF", "gdk_pixbuf_format_free", false) | |||
| 168 | - | ||||
| 169 | xPixbufFormatFree(x.GoPointer()) | 164 | xPixbufFormatFree(x.GoPointer()) | ||
| 170 | } | 165 | } | ||
| 171 | 166 | ||||
| @@ -173,8 +168,6 @@ var xPixbufFormatGetDescription func(uintptr) string | |||||
| 173 | 168 | ||||
| 174 | // Returns a description of the format. | 169 | // Returns a description of the format. | ||
| 175 | func (x *PixbufFormat) GetDescription() string { | 170 | func (x *PixbufFormat) GetDescription() string { | ||
| 176 | - | core.LazyRegister(&xPixbufFormatGetDescription, "GDKPIXBUF", "gdk_pixbuf_format_get_description", false) | |||
| 177 | - | ||||
| 178 | cret := xPixbufFormatGetDescription(x.GoPointer()) | 171 | cret := xPixbufFormatGetDescription(x.GoPointer()) | ||
| 179 | return cret | 172 | return cret | ||
| 180 | } | 173 | } | ||
| @@ -184,8 +177,6 @@ var xPixbufFormatGetExtensions func(uintptr) []string | |||||
| 184 | // Returns the filename extensions typically used for files in the | 177 | // Returns the filename extensions typically used for files in the | ||
| 185 | // given format. | 178 | // given format. | ||
| 186 | func (x *PixbufFormat) GetExtensions() []string { | 179 | func (x *PixbufFormat) GetExtensions() []string { | ||
| 187 | - | core.LazyRegister(&xPixbufFormatGetExtensions, "GDKPIXBUF", "gdk_pixbuf_format_get_extensions", false) | |||
| 188 | - | ||||
| 189 | cret := xPixbufFormatGetExtensions(x.GoPointer()) | 180 | cret := xPixbufFormatGetExtensions(x.GoPointer()) | ||
| 190 | return cret | 181 | return cret | ||
| 191 | } | 182 | } | ||
| @@ -197,8 +188,6 @@ var xPixbufFormatGetLicense func(uintptr) string | |||||
| 197 | // The returned string should be a shorthand for a well known license, e.g. | 188 | // The returned string should be a shorthand for a well known license, e.g. | ||
| 198 | // "LGPL", "GPL", "QPL", "GPL/QPL", or "other" to indicate some other license. | 189 | // "LGPL", "GPL", "QPL", "GPL/QPL", or "other" to indicate some other license. | ||
| 199 | func (x *PixbufFormat) GetLicense() string { | 190 | func (x *PixbufFormat) GetLicense() string { | ||
| 200 | - | core.LazyRegister(&xPixbufFormatGetLicense, "GDKPIXBUF", "gdk_pixbuf_format_get_license", false) | |||
| 201 | - | ||||
| 202 | cret := xPixbufFormatGetLicense(x.GoPointer()) | 191 | cret := xPixbufFormatGetLicense(x.GoPointer()) | ||
| 203 | return cret | 192 | return cret | ||
| 204 | } | 193 | } | ||
| @@ -207,8 +196,6 @@ var xPixbufFormatGetMimeTypes func(uintptr) []string | |||||
| 207 | 196 | ||||
| 208 | // Returns the mime types supported by the format. | 197 | // Returns the mime types supported by the format. | ||
| 209 | func (x *PixbufFormat) GetMimeTypes() []string { | 198 | func (x *PixbufFormat) GetMimeTypes() []string { | ||
| 210 | - | core.LazyRegister(&xPixbufFormatGetMimeTypes, "GDKPIXBUF", "gdk_pixbuf_format_get_mime_types", false) | |||
| 211 | - | ||||
| 212 | cret := xPixbufFormatGetMimeTypes(x.GoPointer()) | 199 | cret := xPixbufFormatGetMimeTypes(x.GoPointer()) | ||
| 213 | return cret | 200 | return cret | ||
| 214 | } | 201 | } | ||
| @@ -217,8 +204,6 @@ var xPixbufFormatGetName func(uintptr) string | |||||
| 217 | 204 | ||||
| 218 | // Returns the name of the format. | 205 | // Returns the name of the format. | ||
| 219 | func (x *PixbufFormat) GetName() string { | 206 | func (x *PixbufFormat) GetName() string { | ||
| 220 | - | core.LazyRegister(&xPixbufFormatGetName, "GDKPIXBUF", "gdk_pixbuf_format_get_name", false) | |||
| 221 | - | ||||
| 222 | cret := xPixbufFormatGetName(x.GoPointer()) | 207 | cret := xPixbufFormatGetName(x.GoPointer()) | ||
| 223 | return cret | 208 | return cret | ||
| 224 | } | 209 | } | ||
| @@ -229,8 +214,6 @@ var xPixbufFormatIsDisabled func(uintptr) bool | |||||
| 229 | // | 214 | // | ||
| 230 | // See gdk_pixbuf_format_set_disabled(). | 215 | // See gdk_pixbuf_format_set_disabled(). | ||
| 231 | func (x *PixbufFormat) IsDisabled() bool { | 216 | func (x *PixbufFormat) IsDisabled() bool { | ||
| 232 | - | core.LazyRegister(&xPixbufFormatIsDisabled, "GDKPIXBUF", "gdk_pixbuf_format_is_disabled", false) | |||
| 233 | - | ||||
| 234 | cret := xPixbufFormatIsDisabled(x.GoPointer()) | 217 | cret := xPixbufFormatIsDisabled(x.GoPointer()) | ||
| 235 | return cret | 218 | return cret | ||
| 236 | } | 219 | } | ||
| @@ -242,8 +225,6 @@ var xPixbufFormatIsSaveOptionSupported func(uintptr, string) bool | |||||
| 242 | // | 225 | // | ||
| 243 | // See gdk_pixbuf_save() for more information about option keys. | 226 | // See gdk_pixbuf_save() for more information about option keys. | ||
| 244 | func (x *PixbufFormat) IsSaveOptionSupported(OptionKeyVar string) bool { | 227 | func (x *PixbufFormat) IsSaveOptionSupported(OptionKeyVar string) bool { | ||
| 245 | - | core.LazyRegister(&xPixbufFormatIsSaveOptionSupported, "GDKPIXBUF", "gdk_pixbuf_format_is_save_option_supported", false) | |||
| 246 | - | ||||
| 247 | cret := xPixbufFormatIsSaveOptionSupported(x.GoPointer(), OptionKeyVar) | 228 | cret := xPixbufFormatIsSaveOptionSupported(x.GoPointer(), OptionKeyVar) | ||
| 248 | return cret | 229 | return cret | ||
| 249 | } | 230 | } | ||
| @@ -256,8 +237,6 @@ var xPixbufFormatIsScalable func(uintptr) bool | |||||
| 256 | // the desired size, rather than loading it at the default size and | 237 | // the desired size, rather than loading it at the default size and | ||
| 257 | // scaling the resulting pixbuf to the desired size. | 238 | // scaling the resulting pixbuf to the desired size. | ||
| 258 | func (x *PixbufFormat) IsScalable() bool { | 239 | func (x *PixbufFormat) IsScalable() bool { | ||
| 259 | - | core.LazyRegister(&xPixbufFormatIsScalable, "GDKPIXBUF", "gdk_pixbuf_format_is_scalable", false) | |||
| 260 | - | ||||
| 261 | cret := xPixbufFormatIsScalable(x.GoPointer()) | 240 | cret := xPixbufFormatIsScalable(x.GoPointer()) | ||
| 262 | return cret | 241 | return cret | ||
| 263 | } | 242 | } | ||
| @@ -266,8 +245,6 @@ var xPixbufFormatIsWritable func(uintptr) bool | |||||
| 266 | 245 | ||||
| 267 | // Returns whether pixbufs can be saved in the given format. | 246 | // Returns whether pixbufs can be saved in the given format. | ||
| 268 | func (x *PixbufFormat) IsWritable() bool { | 247 | func (x *PixbufFormat) IsWritable() bool { | ||
| 269 | - | core.LazyRegister(&xPixbufFormatIsWritable, "GDKPIXBUF", "gdk_pixbuf_format_is_writable", false) | |||
| 270 | - | ||||
| 271 | cret := xPixbufFormatIsWritable(x.GoPointer()) | 248 | cret := xPixbufFormatIsWritable(x.GoPointer()) | ||
| 272 | return cret | 249 | return cret | ||
| 273 | } | 250 | } | ||
| @@ -282,8 +259,6 @@ var xPixbufFormatSetDisabled func(uintptr, bool) | |||||
| 282 | // Applications can use this to avoid using image loaders with an | 259 | // Applications can use this to avoid using image loaders with an | ||
| 283 | // inappropriate license, see gdk_pixbuf_format_get_license(). | 260 | // inappropriate license, see gdk_pixbuf_format_get_license(). | ||
| 284 | func (x *PixbufFormat) SetDisabled(DisabledVar bool) { | 261 | func (x *PixbufFormat) SetDisabled(DisabledVar bool) { | ||
| 285 | - | core.LazyRegister(&xPixbufFormatSetDisabled, "GDKPIXBUF", "gdk_pixbuf_format_set_disabled", false) | |||
| 286 | - | ||||
| 287 | xPixbufFormatSetDisabled(x.GoPointer(), DisabledVar) | 262 | xPixbufFormatSetDisabled(x.GoPointer(), DisabledVar) | ||
| 288 | } | 263 | } | ||
| 289 | 264 | ||||
| @@ -546,4 +521,27 @@ const ( | |||||
| 546 | func init() { | 521 | func init() { | ||
| 547 | core.SetPackageName("GDKPIXBUF", "gdk-pixbuf-2.0") | 522 | core.SetPackageName("GDKPIXBUF", "gdk-pixbuf-2.0") | ||
| 548 | core.SetSharedLibraries("GDKPIXBUF", []string{"libgdk_pixbuf-2.0.so.0", "libgdk_pixbuf-2.0.0.dylib"}) | 523 | core.SetSharedLibraries("GDKPIXBUF", []string{"libgdk_pixbuf-2.0.so.0", "libgdk_pixbuf-2.0.0.dylib"}) | ||
| 524 | + | var libs []uintptr | |||
| 525 | + | for _, libPath := range core.GetPaths("GDKPIXBUF") { | |||
| 526 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 527 | + | if err != nil { | |||
| 528 | + | panic(err) | |||
| 529 | + | } | |||
| 530 | + | libs = append(libs, lib) | |||
| 531 | + | } | |||
| 532 | + | ||||
| 533 | + | core.PuregoSafeRegister(&xPixbufFormatGLibType, libs, "gdk_pixbuf_format_get_type") | |||
| 534 | + | ||||
| 535 | + | core.PuregoSafeRegister(&xPixbufFormatCopy, libs, "gdk_pixbuf_format_copy") | |||
| 536 | + | core.PuregoSafeRegister(&xPixbufFormatFree, libs, "gdk_pixbuf_format_free") | |||
| 537 | + | core.PuregoSafeRegister(&xPixbufFormatGetDescription, libs, "gdk_pixbuf_format_get_description") | |||
| 538 | + | core.PuregoSafeRegister(&xPixbufFormatGetExtensions, libs, "gdk_pixbuf_format_get_extensions") | |||
| 539 | + | core.PuregoSafeRegister(&xPixbufFormatGetLicense, libs, "gdk_pixbuf_format_get_license") | |||
| 540 | + | core.PuregoSafeRegister(&xPixbufFormatGetMimeTypes, libs, "gdk_pixbuf_format_get_mime_types") | |||
| 541 | + | core.PuregoSafeRegister(&xPixbufFormatGetName, libs, "gdk_pixbuf_format_get_name") | |||
| 542 | + | core.PuregoSafeRegister(&xPixbufFormatIsDisabled, libs, "gdk_pixbuf_format_is_disabled") | |||
| 543 | + | core.PuregoSafeRegister(&xPixbufFormatIsSaveOptionSupported, libs, "gdk_pixbuf_format_is_save_option_supported") | |||
| 544 | + | core.PuregoSafeRegister(&xPixbufFormatIsScalable, libs, "gdk_pixbuf_format_is_scalable") | |||
| 545 | + | core.PuregoSafeRegister(&xPixbufFormatIsWritable, libs, "gdk_pixbuf_format_is_writable") | |||
| 546 | + | core.PuregoSafeRegister(&xPixbufFormatSetDisabled, libs, "gdk_pixbuf_format_set_disabled") | |||
| 549 | } | 547 | } | ||