chore(deps): pin puregotk nil-signal fix
- commit
- a161e348e2093172038390b0906448f0ae979a0d
- author
- brice · · 2026-07-14 17:11 UTC
- parent
- c053b99
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
905 files · +27842 -25263
M go.mod +1 -1
| @@ -10,7 +10,7 @@ require ( | |||
| 10 | 10 | github.com/bnema/purego-cef2gtk v0.8.4-0.20260714160309-bbd397409ebe | |
| 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 | - | github.com/bnema/puregotk v0.7.0 | |
| 13 | + | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | |
| 14 | 14 | github.com/charmbracelet/bubbles v1.0.0 | |
| 15 | 15 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 16 | 16 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -10,7 +10,7 @@ require ( | |||||
| 10 | github.com/bnema/purego-cef2gtk v0.8.4-0.20260714160309-bbd397409ebe | 10 | github.com/bnema/purego-cef2gtk v0.8.4-0.20260714160309-bbd397409ebe | ||
| 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/puregotk v0.7.0 | 13 | + | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 |
| 14 | github.com/charmbracelet/bubbles v1.0.0 | 14 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 15 | github.com/charmbracelet/bubbletea v1.3.10 | 15 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 16 | github.com/charmbracelet/lipgloss v1.1.0 | 16 | github.com/charmbracelet/lipgloss v1.1.0 | ||
M go.sum +4 -0 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/gdkdrag.go +20 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +6 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +11 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +19 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +21 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +120 -118 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +22 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +17 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +40 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +41 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +19 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +42 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmonitor.go +27 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpaintable.go +63 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +4 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +2 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +47 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +36 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +19 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +11 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +7 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +46 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +27 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +157 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +24 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +9 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +95 -72 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +26 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-core.go +9 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-io.go +25 -23
| @@ -130,6 +130,7 @@ 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) | |
| 133 | 134 | return xPixbufFormatGLibType() | |
| 134 | 135 | } | |
| 135 | 136 | ||
| @@ -149,6 +150,8 @@ var xPixbufFormatCopy func(uintptr) uintptr | |||
| 149 | 150 | ||
| 150 | 151 | // Creates a copy of `format`. | |
| 151 | 152 | func (x *PixbufFormat) Copy() *PixbufFormat { | |
| 153 | + | core.LazyRegister(&xPixbufFormatCopy, "GDKPIXBUF", "gdk_pixbuf_format_copy", false) | |
| 154 | + | ||
| 152 | 155 | cret := xPixbufFormatCopy(x.GoPointer()) | |
| 153 | 156 | if cret == 0 { | |
| 154 | 157 | return nil | |
| @@ -161,6 +164,8 @@ var xPixbufFormatFree func(uintptr) | |||
| 161 | 164 | // Frees the resources allocated when copying a `GdkPixbufFormat` | |
| 162 | 165 | // using gdk_pixbuf_format_copy() | |
| 163 | 166 | func (x *PixbufFormat) Free() { | |
| 167 | + | core.LazyRegister(&xPixbufFormatFree, "GDKPIXBUF", "gdk_pixbuf_format_free", false) | |
| 168 | + | ||
| 164 | 169 | xPixbufFormatFree(x.GoPointer()) | |
| 165 | 170 | } | |
| 166 | 171 | ||
| @@ -168,6 +173,8 @@ var xPixbufFormatGetDescription func(uintptr) string | |||
| 168 | 173 | ||
| 169 | 174 | // Returns a description of the format. | |
| 170 | 175 | func (x *PixbufFormat) GetDescription() string { | |
| 176 | + | core.LazyRegister(&xPixbufFormatGetDescription, "GDKPIXBUF", "gdk_pixbuf_format_get_description", false) | |
| 177 | + | ||
| 171 | 178 | cret := xPixbufFormatGetDescription(x.GoPointer()) | |
| 172 | 179 | return cret | |
| 173 | 180 | } | |
| @@ -177,6 +184,8 @@ var xPixbufFormatGetExtensions func(uintptr) []string | |||
| 177 | 184 | // Returns the filename extensions typically used for files in the | |
| 178 | 185 | // given format. | |
| 179 | 186 | func (x *PixbufFormat) GetExtensions() []string { | |
| 187 | + | core.LazyRegister(&xPixbufFormatGetExtensions, "GDKPIXBUF", "gdk_pixbuf_format_get_extensions", false) | |
| 188 | + | ||
| 180 | 189 | cret := xPixbufFormatGetExtensions(x.GoPointer()) | |
| 181 | 190 | return cret | |
| 182 | 191 | } | |
| @@ -188,6 +197,8 @@ var xPixbufFormatGetLicense func(uintptr) string | |||
| 188 | 197 | // The returned string should be a shorthand for a well known license, e.g. | |
| 189 | 198 | // "LGPL", "GPL", "QPL", "GPL/QPL", or "other" to indicate some other license. | |
| 190 | 199 | func (x *PixbufFormat) GetLicense() string { | |
| 200 | + | core.LazyRegister(&xPixbufFormatGetLicense, "GDKPIXBUF", "gdk_pixbuf_format_get_license", false) | |
| 201 | + | ||
| 191 | 202 | cret := xPixbufFormatGetLicense(x.GoPointer()) | |
| 192 | 203 | return cret | |
| 193 | 204 | } | |
| @@ -196,6 +207,8 @@ var xPixbufFormatGetMimeTypes func(uintptr) []string | |||
| 196 | 207 | ||
| 197 | 208 | // Returns the mime types supported by the format. | |
| 198 | 209 | func (x *PixbufFormat) GetMimeTypes() []string { | |
| 210 | + | core.LazyRegister(&xPixbufFormatGetMimeTypes, "GDKPIXBUF", "gdk_pixbuf_format_get_mime_types", false) | |
| 211 | + | ||
| 199 | 212 | cret := xPixbufFormatGetMimeTypes(x.GoPointer()) | |
| 200 | 213 | return cret | |
| 201 | 214 | } | |
| @@ -204,6 +217,8 @@ var xPixbufFormatGetName func(uintptr) string | |||
| 204 | 217 | ||
| 205 | 218 | // Returns the name of the format. | |
| 206 | 219 | func (x *PixbufFormat) GetName() string { | |
| 220 | + | core.LazyRegister(&xPixbufFormatGetName, "GDKPIXBUF", "gdk_pixbuf_format_get_name", false) | |
| 221 | + | ||
| 207 | 222 | cret := xPixbufFormatGetName(x.GoPointer()) | |
| 208 | 223 | return cret | |
| 209 | 224 | } | |
| @@ -214,6 +229,8 @@ var xPixbufFormatIsDisabled func(uintptr) bool | |||
| 214 | 229 | // | |
| 215 | 230 | // See gdk_pixbuf_format_set_disabled(). | |
| 216 | 231 | func (x *PixbufFormat) IsDisabled() bool { | |
| 232 | + | core.LazyRegister(&xPixbufFormatIsDisabled, "GDKPIXBUF", "gdk_pixbuf_format_is_disabled", false) | |
| 233 | + | ||
| 217 | 234 | cret := xPixbufFormatIsDisabled(x.GoPointer()) | |
| 218 | 235 | return cret | |
| 219 | 236 | } | |
| @@ -225,6 +242,8 @@ var xPixbufFormatIsSaveOptionSupported func(uintptr, string) bool | |||
| 225 | 242 | // | |
| 226 | 243 | // See gdk_pixbuf_save() for more information about option keys. | |
| 227 | 244 | func (x *PixbufFormat) IsSaveOptionSupported(OptionKeyVar string) bool { | |
| 245 | + | core.LazyRegister(&xPixbufFormatIsSaveOptionSupported, "GDKPIXBUF", "gdk_pixbuf_format_is_save_option_supported", false) | |
| 246 | + | ||
| 228 | 247 | cret := xPixbufFormatIsSaveOptionSupported(x.GoPointer(), OptionKeyVar) | |
| 229 | 248 | return cret | |
| 230 | 249 | } | |
| @@ -237,6 +256,8 @@ var xPixbufFormatIsScalable func(uintptr) bool | |||
| 237 | 256 | // the desired size, rather than loading it at the default size and | |
| 238 | 257 | // scaling the resulting pixbuf to the desired size. | |
| 239 | 258 | func (x *PixbufFormat) IsScalable() bool { | |
| 259 | + | core.LazyRegister(&xPixbufFormatIsScalable, "GDKPIXBUF", "gdk_pixbuf_format_is_scalable", false) | |
| 260 | + | ||
| 240 | 261 | cret := xPixbufFormatIsScalable(x.GoPointer()) | |
| 241 | 262 | return cret | |
| 242 | 263 | } | |
| @@ -245,6 +266,8 @@ var xPixbufFormatIsWritable func(uintptr) bool | |||
| 245 | 266 | ||
| 246 | 267 | // Returns whether pixbufs can be saved in the given format. | |
| 247 | 268 | func (x *PixbufFormat) IsWritable() bool { | |
| 269 | + | core.LazyRegister(&xPixbufFormatIsWritable, "GDKPIXBUF", "gdk_pixbuf_format_is_writable", false) | |
| 270 | + | ||
| 248 | 271 | cret := xPixbufFormatIsWritable(x.GoPointer()) | |
| 249 | 272 | return cret | |
| 250 | 273 | } | |
| @@ -259,6 +282,8 @@ var xPixbufFormatSetDisabled func(uintptr, bool) | |||
| 259 | 282 | // Applications can use this to avoid using image loaders with an | |
| 260 | 283 | // inappropriate license, see gdk_pixbuf_format_get_license(). | |
| 261 | 284 | func (x *PixbufFormat) SetDisabled(DisabledVar bool) { | |
| 285 | + | core.LazyRegister(&xPixbufFormatSetDisabled, "GDKPIXBUF", "gdk_pixbuf_format_set_disabled", false) | |
| 286 | + | ||
| 262 | 287 | xPixbufFormatSetDisabled(x.GoPointer(), DisabledVar) | |
| 263 | 288 | } | |
| 264 | 289 | ||
| @@ -521,27 +546,4 @@ const ( | |||
| 521 | 546 | func init() { | |
| 522 | 547 | core.SetPackageName("GDKPIXBUF", "gdk-pixbuf-2.0") | |
| 523 | 548 | 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") | |
| 547 | 549 | } | |
| @@ -130,6 +130,7 @@ 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) | |||
| 133 | return xPixbufFormatGLibType() | 134 | return xPixbufFormatGLibType() | ||
| 134 | } | 135 | } | ||
| 135 | 136 | ||||
| @@ -149,6 +150,8 @@ var xPixbufFormatCopy func(uintptr) uintptr | |||||
| 149 | 150 | ||||
| 150 | // Creates a copy of `format`. | 151 | // Creates a copy of `format`. | ||
| 151 | func (x *PixbufFormat) Copy() *PixbufFormat { | 152 | func (x *PixbufFormat) Copy() *PixbufFormat { | ||
| 153 | + | core.LazyRegister(&xPixbufFormatCopy, "GDKPIXBUF", "gdk_pixbuf_format_copy", false) | |||
| 154 | + | ||||
| 152 | cret := xPixbufFormatCopy(x.GoPointer()) | 155 | cret := xPixbufFormatCopy(x.GoPointer()) | ||
| 153 | if cret == 0 { | 156 | if cret == 0 { | ||
| 154 | return nil | 157 | return nil | ||
| @@ -161,6 +164,8 @@ var xPixbufFormatFree func(uintptr) | |||||
| 161 | // Frees the resources allocated when copying a `GdkPixbufFormat` | 164 | // Frees the resources allocated when copying a `GdkPixbufFormat` | ||
| 162 | // using gdk_pixbuf_format_copy() | 165 | // using gdk_pixbuf_format_copy() | ||
| 163 | func (x *PixbufFormat) Free() { | 166 | func (x *PixbufFormat) Free() { | ||
| 167 | + | core.LazyRegister(&xPixbufFormatFree, "GDKPIXBUF", "gdk_pixbuf_format_free", false) | |||
| 168 | + | ||||
| 164 | xPixbufFormatFree(x.GoPointer()) | 169 | xPixbufFormatFree(x.GoPointer()) | ||
| 165 | } | 170 | } | ||
| 166 | 171 | ||||
| @@ -168,6 +173,8 @@ var xPixbufFormatGetDescription func(uintptr) string | |||||
| 168 | 173 | ||||
| 169 | // Returns a description of the format. | 174 | // Returns a description of the format. | ||
| 170 | func (x *PixbufFormat) GetDescription() string { | 175 | func (x *PixbufFormat) GetDescription() string { | ||
| 176 | + | core.LazyRegister(&xPixbufFormatGetDescription, "GDKPIXBUF", "gdk_pixbuf_format_get_description", false) | |||
| 177 | + | ||||
| 171 | cret := xPixbufFormatGetDescription(x.GoPointer()) | 178 | cret := xPixbufFormatGetDescription(x.GoPointer()) | ||
| 172 | return cret | 179 | return cret | ||
| 173 | } | 180 | } | ||
| @@ -177,6 +184,8 @@ var xPixbufFormatGetExtensions func(uintptr) []string | |||||
| 177 | // Returns the filename extensions typically used for files in the | 184 | // Returns the filename extensions typically used for files in the | ||
| 178 | // given format. | 185 | // given format. | ||
| 179 | func (x *PixbufFormat) GetExtensions() []string { | 186 | func (x *PixbufFormat) GetExtensions() []string { | ||
| 187 | + | core.LazyRegister(&xPixbufFormatGetExtensions, "GDKPIXBUF", "gdk_pixbuf_format_get_extensions", false) | |||
| 188 | + | ||||
| 180 | cret := xPixbufFormatGetExtensions(x.GoPointer()) | 189 | cret := xPixbufFormatGetExtensions(x.GoPointer()) | ||
| 181 | return cret | 190 | return cret | ||
| 182 | } | 191 | } | ||
| @@ -188,6 +197,8 @@ var xPixbufFormatGetLicense func(uintptr) string | |||||
| 188 | // The returned string should be a shorthand for a well known license, e.g. | 197 | // The returned string should be a shorthand for a well known license, e.g. | ||
| 189 | // "LGPL", "GPL", "QPL", "GPL/QPL", or "other" to indicate some other license. | 198 | // "LGPL", "GPL", "QPL", "GPL/QPL", or "other" to indicate some other license. | ||
| 190 | func (x *PixbufFormat) GetLicense() string { | 199 | func (x *PixbufFormat) GetLicense() string { | ||
| 200 | + | core.LazyRegister(&xPixbufFormatGetLicense, "GDKPIXBUF", "gdk_pixbuf_format_get_license", false) | |||
| 201 | + | ||||
| 191 | cret := xPixbufFormatGetLicense(x.GoPointer()) | 202 | cret := xPixbufFormatGetLicense(x.GoPointer()) | ||
| 192 | return cret | 203 | return cret | ||
| 193 | } | 204 | } | ||
| @@ -196,6 +207,8 @@ var xPixbufFormatGetMimeTypes func(uintptr) []string | |||||
| 196 | 207 | ||||
| 197 | // Returns the mime types supported by the format. | 208 | // Returns the mime types supported by the format. | ||
| 198 | func (x *PixbufFormat) GetMimeTypes() []string { | 209 | func (x *PixbufFormat) GetMimeTypes() []string { | ||
| 210 | + | core.LazyRegister(&xPixbufFormatGetMimeTypes, "GDKPIXBUF", "gdk_pixbuf_format_get_mime_types", false) | |||
| 211 | + | ||||
| 199 | cret := xPixbufFormatGetMimeTypes(x.GoPointer()) | 212 | cret := xPixbufFormatGetMimeTypes(x.GoPointer()) | ||
| 200 | return cret | 213 | return cret | ||
| 201 | } | 214 | } | ||
| @@ -204,6 +217,8 @@ var xPixbufFormatGetName func(uintptr) string | |||||
| 204 | 217 | ||||
| 205 | // Returns the name of the format. | 218 | // Returns the name of the format. | ||
| 206 | func (x *PixbufFormat) GetName() string { | 219 | func (x *PixbufFormat) GetName() string { | ||
| 220 | + | core.LazyRegister(&xPixbufFormatGetName, "GDKPIXBUF", "gdk_pixbuf_format_get_name", false) | |||
| 221 | + | ||||
| 207 | cret := xPixbufFormatGetName(x.GoPointer()) | 222 | cret := xPixbufFormatGetName(x.GoPointer()) | ||
| 208 | return cret | 223 | return cret | ||
| 209 | } | 224 | } | ||
| @@ -214,6 +229,8 @@ var xPixbufFormatIsDisabled func(uintptr) bool | |||||
| 214 | // | 229 | // | ||
| 215 | // See gdk_pixbuf_format_set_disabled(). | 230 | // See gdk_pixbuf_format_set_disabled(). | ||
| 216 | func (x *PixbufFormat) IsDisabled() bool { | 231 | func (x *PixbufFormat) IsDisabled() bool { | ||
| 232 | + | core.LazyRegister(&xPixbufFormatIsDisabled, "GDKPIXBUF", "gdk_pixbuf_format_is_disabled", false) | |||
| 233 | + | ||||
| 217 | cret := xPixbufFormatIsDisabled(x.GoPointer()) | 234 | cret := xPixbufFormatIsDisabled(x.GoPointer()) | ||
| 218 | return cret | 235 | return cret | ||
| 219 | } | 236 | } | ||
| @@ -225,6 +242,8 @@ var xPixbufFormatIsSaveOptionSupported func(uintptr, string) bool | |||||
| 225 | // | 242 | // | ||
| 226 | // See gdk_pixbuf_save() for more information about option keys. | 243 | // See gdk_pixbuf_save() for more information about option keys. | ||
| 227 | func (x *PixbufFormat) IsSaveOptionSupported(OptionKeyVar string) bool { | 244 | func (x *PixbufFormat) IsSaveOptionSupported(OptionKeyVar string) bool { | ||
| 245 | + | core.LazyRegister(&xPixbufFormatIsSaveOptionSupported, "GDKPIXBUF", "gdk_pixbuf_format_is_save_option_supported", false) | |||
| 246 | + | ||||
| 228 | cret := xPixbufFormatIsSaveOptionSupported(x.GoPointer(), OptionKeyVar) | 247 | cret := xPixbufFormatIsSaveOptionSupported(x.GoPointer(), OptionKeyVar) | ||
| 229 | return cret | 248 | return cret | ||
| 230 | } | 249 | } | ||
| @@ -237,6 +256,8 @@ var xPixbufFormatIsScalable func(uintptr) bool | |||||
| 237 | // the desired size, rather than loading it at the default size and | 256 | // the desired size, rather than loading it at the default size and | ||
| 238 | // scaling the resulting pixbuf to the desired size. | 257 | // scaling the resulting pixbuf to the desired size. | ||
| 239 | func (x *PixbufFormat) IsScalable() bool { | 258 | func (x *PixbufFormat) IsScalable() bool { | ||
| 259 | + | core.LazyRegister(&xPixbufFormatIsScalable, "GDKPIXBUF", "gdk_pixbuf_format_is_scalable", false) | |||
| 260 | + | ||||
| 240 | cret := xPixbufFormatIsScalable(x.GoPointer()) | 261 | cret := xPixbufFormatIsScalable(x.GoPointer()) | ||
| 241 | return cret | 262 | return cret | ||
| 242 | } | 263 | } | ||
| @@ -245,6 +266,8 @@ var xPixbufFormatIsWritable func(uintptr) bool | |||||
| 245 | 266 | ||||
| 246 | // Returns whether pixbufs can be saved in the given format. | 267 | // Returns whether pixbufs can be saved in the given format. | ||
| 247 | func (x *PixbufFormat) IsWritable() bool { | 268 | func (x *PixbufFormat) IsWritable() bool { | ||
| 269 | + | core.LazyRegister(&xPixbufFormatIsWritable, "GDKPIXBUF", "gdk_pixbuf_format_is_writable", false) | |||
| 270 | + | ||||
| 248 | cret := xPixbufFormatIsWritable(x.GoPointer()) | 271 | cret := xPixbufFormatIsWritable(x.GoPointer()) | ||
| 249 | return cret | 272 | return cret | ||
| 250 | } | 273 | } | ||
| @@ -259,6 +282,8 @@ var xPixbufFormatSetDisabled func(uintptr, bool) | |||||
| 259 | // Applications can use this to avoid using image loaders with an | 282 | // Applications can use this to avoid using image loaders with an | ||
| 260 | // inappropriate license, see gdk_pixbuf_format_get_license(). | 283 | // inappropriate license, see gdk_pixbuf_format_get_license(). | ||
| 261 | func (x *PixbufFormat) SetDisabled(DisabledVar bool) { | 284 | func (x *PixbufFormat) SetDisabled(DisabledVar bool) { | ||
| 285 | + | core.LazyRegister(&xPixbufFormatSetDisabled, "GDKPIXBUF", "gdk_pixbuf_format_set_disabled", false) | |||
| 286 | + | ||||
| 262 | xPixbufFormatSetDisabled(x.GoPointer(), DisabledVar) | 287 | xPixbufFormatSetDisabled(x.GoPointer(), DisabledVar) | ||
| 263 | } | 288 | } | ||
| 264 | 289 | ||||
| @@ -521,27 +546,4 @@ const ( | |||||
| 521 | func init() { | 546 | func init() { | ||
| 522 | core.SetPackageName("GDKPIXBUF", "gdk-pixbuf-2.0") | 547 | core.SetPackageName("GDKPIXBUF", "gdk-pixbuf-2.0") | ||
| 523 | core.SetSharedLibraries("GDKPIXBUF", []string{"libgdk_pixbuf-2.0.so.0", "libgdk_pixbuf-2.0.0.dylib"}) | 548 | 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") | |||
| 547 | } | 549 | } | ||