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
| @@ -5,6 +5,7 @@ import ( | |||
| 5 | 5 | "structs" | |
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | + | "github.com/bnema/purego" | |
| 8 | 9 | "github.com/bnema/puregotk/pkg/core" | |
| 9 | 10 | "github.com/bnema/puregotk/v4/gdkpixbuf" | |
| 10 | 11 | "github.com/bnema/puregotk/v4/gio" | |
| @@ -35,7 +36,6 @@ type TextureError int | |||
| 35 | 36 | var xTextureErrorGLibType func() types.GType | |
| 36 | 37 | ||
| 37 | 38 | func TextureErrorGLibType() types.GType { | |
| 38 | - | core.LazyRegister(&xTextureErrorGLibType, "GDK", "gdk_texture_error_get_type", false) | |
| 39 | 39 | return xTextureErrorGLibType() | |
| 40 | 40 | } | |
| 41 | 41 | ||
| @@ -56,8 +56,6 @@ var xTextureErrorQuark func() glib.Quark | |||
| 56 | 56 | ||
| 57 | 57 | // Registers an error quark for [class@Gdk.Texture] errors. | |
| 58 | 58 | func TextureErrorQuark() glib.Quark { | |
| 59 | - | core.LazyRegister(&xTextureErrorQuark, "GDK", "gdk_texture_error_quark", false) | |
| 60 | - | ||
| 61 | 59 | cret := xTextureErrorQuark() | |
| 62 | 60 | return cret | |
| 63 | 61 | } | |
| @@ -95,7 +93,6 @@ type Texture struct { | |||
| 95 | 93 | var xTextureGLibType func() types.GType | |
| 96 | 94 | ||
| 97 | 95 | func TextureGLibType() types.GType { | |
| 98 | - | core.LazyRegister(&xTextureGLibType, "GDK", "gdk_texture_get_type", false) | |
| 99 | 96 | return xTextureGLibType() | |
| 100 | 97 | } | |
| 101 | 98 | ||
| @@ -113,7 +110,6 @@ var xNewTextureForPixbuf func(uintptr) uintptr | |||
| 113 | 110 | // and [method@Gio.Task.run_in_thread] to avoid blocking the main | |
| 114 | 111 | // thread while loading a big image. | |
| 115 | 112 | func NewTextureForPixbuf(PixbufVar *gdkpixbuf.Pixbuf) *Texture { | |
| 116 | - | core.LazyRegister(&xNewTextureForPixbuf, "GDK", "gdk_texture_new_for_pixbuf", false) | |
| 117 | 113 | var cls *Texture | |
| 118 | 114 | ||
| 119 | 115 | cret := xNewTextureForPixbuf(PixbufVar.GoPointer()) | |
| @@ -145,7 +141,6 @@ var xNewTextureFromBytes func(*glib.Bytes, **glib.Error) uintptr | |||
| 145 | 141 | // Use a proper image loading framework such as libglycin, which can | |
| 146 | 142 | // load many image formats into a `GdkTexture`. | |
| 147 | 143 | func NewTextureFromBytes(BytesVar *glib.Bytes) (*Texture, error) { | |
| 148 | - | core.LazyRegister(&xNewTextureFromBytes, "GDK", "gdk_texture_new_from_bytes", false) | |
| 149 | 144 | var cls *Texture | |
| 150 | 145 | var cerr *glib.Error | |
| 151 | 146 | ||
| @@ -181,7 +176,6 @@ var xNewTextureFromFile func(uintptr, **glib.Error) uintptr | |||
| 181 | 176 | // Use a proper image loading framework such as libglycin, which can | |
| 182 | 177 | // load many image formats into a `GdkTexture`. | |
| 183 | 178 | func NewTextureFromFile(FileVar gio.File) (*Texture, error) { | |
| 184 | - | core.LazyRegister(&xNewTextureFromFile, "GDK", "gdk_texture_new_from_file", false) | |
| 185 | 179 | var cls *Texture | |
| 186 | 180 | var cerr *glib.Error | |
| 187 | 181 | ||
| @@ -217,7 +211,6 @@ var xNewTextureFromFilename func(string, **glib.Error) uintptr | |||
| 217 | 211 | // Use a proper image loading framework such as libglycin, which can | |
| 218 | 212 | // load many image formats into a `GdkTexture`. | |
| 219 | 213 | func NewTextureFromFilename(PathVar string) (*Texture, error) { | |
| 220 | - | core.LazyRegister(&xNewTextureFromFilename, "GDK", "gdk_texture_new_from_filename", false) | |
| 221 | 214 | var cls *Texture | |
| 222 | 215 | var cerr *glib.Error | |
| 223 | 216 | ||
| @@ -250,7 +243,6 @@ var xNewTextureFromResource func(string) uintptr | |||
| 250 | 243 | // and [method@Gio.Task.run_in_thread] to avoid blocking the main thread | |
| 251 | 244 | // while loading a big image. | |
| 252 | 245 | func NewTextureFromResource(ResourcePathVar string) *Texture { | |
| 253 | - | core.LazyRegister(&xNewTextureFromResource, "GDK", "gdk_texture_new_from_resource", false) | |
| 254 | 246 | var cls *Texture | |
| 255 | 247 | ||
| 256 | 248 | cret := xNewTextureFromResource(ResourcePathVar) | |
| @@ -292,8 +284,6 @@ var xTextureDownload func(uintptr, []byte, uint) | |||
| 292 | 284 | // For more flexible download capabilities, see | |
| 293 | 285 | // [struct@Gdk.TextureDownloader]. | |
| 294 | 286 | func (x *Texture) Download(DataVar []byte, StrideVar uint) { | |
| 295 | - | core.LazyRegister(&xTextureDownload, "GDK", "gdk_texture_download", false) | |
| 296 | - | ||
| 297 | 287 | xTextureDownload(x.GoPointer(), DataVar, StrideVar) | |
| 298 | 288 | } | |
| 299 | 289 | ||
| @@ -301,8 +291,6 @@ var xTextureGetColorState func(uintptr) uintptr | |||
| 301 | 291 | ||
| 302 | 292 | // Returns the color state associated with the texture. | |
| 303 | 293 | func (x *Texture) GetColorState() *ColorState { | |
| 304 | - | core.LazyRegister(&xTextureGetColorState, "GDK", "gdk_texture_get_color_state", false) | |
| 305 | - | ||
| 306 | 294 | cret := xTextureGetColorState(x.GoPointer()) | |
| 307 | 295 | if cret == 0 { | |
| 308 | 296 | return nil | |
| @@ -322,8 +310,6 @@ var xTextureGetFormat func(uintptr) MemoryFormat | |||
| 322 | 310 | // of the texture and is useful to determine the best format for | |
| 323 | 311 | // downloading the texture. | |
| 324 | 312 | func (x *Texture) GetFormat() MemoryFormat { | |
| 325 | - | core.LazyRegister(&xTextureGetFormat, "GDK", "gdk_texture_get_format", false) | |
| 326 | - | ||
| 327 | 313 | cret := xTextureGetFormat(x.GoPointer()) | |
| 328 | 314 | return cret | |
| 329 | 315 | } | |
| @@ -332,8 +318,6 @@ var xTextureGetHeight func(uintptr) int | |||
| 332 | 318 | ||
| 333 | 319 | // Returns the height of the @texture, in pixels. | |
| 334 | 320 | func (x *Texture) GetHeight() int { | |
| 335 | - | core.LazyRegister(&xTextureGetHeight, "GDK", "gdk_texture_get_height", false) | |
| 336 | - | ||
| 337 | 321 | cret := xTextureGetHeight(x.GoPointer()) | |
| 338 | 322 | return cret | |
| 339 | 323 | } | |
| @@ -342,8 +326,6 @@ var xTextureGetWidth func(uintptr) int | |||
| 342 | 326 | ||
| 343 | 327 | // Returns the width of @texture, in pixels. | |
| 344 | 328 | func (x *Texture) GetWidth() int { | |
| 345 | - | core.LazyRegister(&xTextureGetWidth, "GDK", "gdk_texture_get_width", false) | |
| 346 | - | ||
| 347 | 329 | cret := xTextureGetWidth(x.GoPointer()) | |
| 348 | 330 | return cret | |
| 349 | 331 | } | |
| @@ -358,8 +340,6 @@ var xTextureSaveToPng func(uintptr, string) bool | |||
| 358 | 340 | // want to use [method@Gdk.Texture.save_to_png_bytes] or look into | |
| 359 | 341 | // the libglycin library. | |
| 360 | 342 | func (x *Texture) SaveToPng(FilenameVar string) bool { | |
| 361 | - | core.LazyRegister(&xTextureSaveToPng, "GDK", "gdk_texture_save_to_png", false) | |
| 362 | - | ||
| 363 | 343 | cret := xTextureSaveToPng(x.GoPointer(), FilenameVar) | |
| 364 | 344 | return cret | |
| 365 | 345 | } | |
| @@ -381,8 +361,6 @@ var xTextureSaveToPngBytes func(uintptr) uintptr | |||
| 381 | 361 | // might also want to consider [method@Gdk.Texture.save_to_tiff_bytes] | |
| 382 | 362 | // instead. | |
| 383 | 363 | func (x *Texture) SaveToPngBytes() *glib.Bytes { | |
| 384 | - | core.LazyRegister(&xTextureSaveToPngBytes, "GDK", "gdk_texture_save_to_png_bytes", false) | |
| 385 | - | ||
| 386 | 364 | cret := xTextureSaveToPngBytes(x.GoPointer()) | |
| 387 | 365 | if cret == 0 { | |
| 388 | 366 | return nil | |
| @@ -396,8 +374,6 @@ var xTextureSaveToTiff func(uintptr, string) bool | |||
| 396 | 374 | // | |
| 397 | 375 | // GTK will attempt to store data without loss. | |
| 398 | 376 | func (x *Texture) SaveToTiff(FilenameVar string) bool { | |
| 399 | - | core.LazyRegister(&xTextureSaveToTiff, "GDK", "gdk_texture_save_to_tiff", false) | |
| 400 | - | ||
| 401 | 377 | cret := xTextureSaveToTiff(x.GoPointer(), FilenameVar) | |
| 402 | 378 | return cret | |
| 403 | 379 | } | |
| @@ -417,8 +393,6 @@ var xTextureSaveToTiffBytes func(uintptr) uintptr | |||
| 417 | 393 | // smaller size and a more portable format, you might want to | |
| 418 | 394 | // use [method@Gdk.Texture.save_to_png_bytes]. | |
| 419 | 395 | func (x *Texture) SaveToTiffBytes() *glib.Bytes { | |
| 420 | - | core.LazyRegister(&xTextureSaveToTiffBytes, "GDK", "gdk_texture_save_to_tiff_bytes", false) | |
| 421 | - | ||
| 422 | 396 | cret := xTextureSaveToTiffBytes(x.GoPointer()) | |
| 423 | 397 | if cret == 0 { | |
| 424 | 398 | return nil | |
| @@ -713,4 +687,34 @@ func (x *Texture) LoadFinish(ResVar gio.AsyncResult, TypeVar *string) (*gio.Inpu | |||
| 713 | 687 | func init() { | |
| 714 | 688 | core.SetPackageName("GDK", "gtk4") | |
| 715 | 689 | core.SetSharedLibraries("GDK", []string{"libgtk-4.so.1", "libgtk-4.1.dylib"}) | |
| 690 | + | var libs []uintptr | |
| 691 | + | for _, libPath := range core.GetPaths("GDK") { | |
| 692 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 693 | + | if err != nil { | |
| 694 | + | panic(err) | |
| 695 | + | } | |
| 696 | + | libs = append(libs, lib) | |
| 697 | + | } | |
| 698 | + | ||
| 699 | + | core.PuregoSafeRegister(&xTextureErrorGLibType, libs, "gdk_texture_error_get_type") | |
| 700 | + | ||
| 701 | + | core.PuregoSafeRegister(&xTextureErrorQuark, libs, "gdk_texture_error_quark") | |
| 702 | + | ||
| 703 | + | core.PuregoSafeRegister(&xTextureGLibType, libs, "gdk_texture_get_type") | |
| 704 | + | ||
| 705 | + | core.PuregoSafeRegister(&xNewTextureForPixbuf, libs, "gdk_texture_new_for_pixbuf") | |
| 706 | + | core.PuregoSafeRegister(&xNewTextureFromBytes, libs, "gdk_texture_new_from_bytes") | |
| 707 | + | core.PuregoSafeRegister(&xNewTextureFromFile, libs, "gdk_texture_new_from_file") | |
| 708 | + | core.PuregoSafeRegister(&xNewTextureFromFilename, libs, "gdk_texture_new_from_filename") | |
| 709 | + | core.PuregoSafeRegister(&xNewTextureFromResource, libs, "gdk_texture_new_from_resource") | |
| 710 | + | ||
| 711 | + | core.PuregoSafeRegister(&xTextureDownload, libs, "gdk_texture_download") | |
| 712 | + | core.PuregoSafeRegister(&xTextureGetColorState, libs, "gdk_texture_get_color_state") | |
| 713 | + | core.PuregoSafeRegister(&xTextureGetFormat, libs, "gdk_texture_get_format") | |
| 714 | + | core.PuregoSafeRegister(&xTextureGetHeight, libs, "gdk_texture_get_height") | |
| 715 | + | core.PuregoSafeRegister(&xTextureGetWidth, libs, "gdk_texture_get_width") | |
| 716 | + | core.PuregoSafeRegister(&xTextureSaveToPng, libs, "gdk_texture_save_to_png") | |
| 717 | + | core.PuregoSafeRegister(&xTextureSaveToPngBytes, libs, "gdk_texture_save_to_png_bytes") | |
| 718 | + | core.PuregoSafeRegister(&xTextureSaveToTiff, libs, "gdk_texture_save_to_tiff") | |
| 719 | + | core.PuregoSafeRegister(&xTextureSaveToTiffBytes, libs, "gdk_texture_save_to_tiff_bytes") | |
| 716 | 720 | } | |
| @@ -5,6 +5,7 @@ import ( | |||||
| 5 | "structs" | 5 | "structs" | ||
| 6 | "unsafe" | 6 | "unsafe" | ||
| 7 | 7 | ||||
| 8 | + | "github.com/bnema/purego" | |||
| 8 | "github.com/bnema/puregotk/pkg/core" | 9 | "github.com/bnema/puregotk/pkg/core" | ||
| 9 | "github.com/bnema/puregotk/v4/gdkpixbuf" | 10 | "github.com/bnema/puregotk/v4/gdkpixbuf" | ||
| 10 | "github.com/bnema/puregotk/v4/gio" | 11 | "github.com/bnema/puregotk/v4/gio" | ||
| @@ -35,7 +36,6 @@ type TextureError int | |||||
| 35 | var xTextureErrorGLibType func() types.GType | 36 | var xTextureErrorGLibType func() types.GType | ||
| 36 | 37 | ||||
| 37 | func TextureErrorGLibType() types.GType { | 38 | func TextureErrorGLibType() types.GType { | ||
| 38 | - | core.LazyRegister(&xTextureErrorGLibType, "GDK", "gdk_texture_error_get_type", false) | |||
| 39 | return xTextureErrorGLibType() | 39 | return xTextureErrorGLibType() | ||
| 40 | } | 40 | } | ||
| 41 | 41 | ||||
| @@ -56,8 +56,6 @@ var xTextureErrorQuark func() glib.Quark | |||||
| 56 | 56 | ||||
| 57 | // Registers an error quark for [class@Gdk.Texture] errors. | 57 | // Registers an error quark for [class@Gdk.Texture] errors. | ||
| 58 | func TextureErrorQuark() glib.Quark { | 58 | func TextureErrorQuark() glib.Quark { | ||
| 59 | - | core.LazyRegister(&xTextureErrorQuark, "GDK", "gdk_texture_error_quark", false) | |||
| 60 | - | ||||
| 61 | cret := xTextureErrorQuark() | 59 | cret := xTextureErrorQuark() | ||
| 62 | return cret | 60 | return cret | ||
| 63 | } | 61 | } | ||
| @@ -95,7 +93,6 @@ type Texture struct { | |||||
| 95 | var xTextureGLibType func() types.GType | 93 | var xTextureGLibType func() types.GType | ||
| 96 | 94 | ||||
| 97 | func TextureGLibType() types.GType { | 95 | func TextureGLibType() types.GType { | ||
| 98 | - | core.LazyRegister(&xTextureGLibType, "GDK", "gdk_texture_get_type", false) | |||
| 99 | return xTextureGLibType() | 96 | return xTextureGLibType() | ||
| 100 | } | 97 | } | ||
| 101 | 98 | ||||
| @@ -113,7 +110,6 @@ var xNewTextureForPixbuf func(uintptr) uintptr | |||||
| 113 | // and [method@Gio.Task.run_in_thread] to avoid blocking the main | 110 | // and [method@Gio.Task.run_in_thread] to avoid blocking the main | ||
| 114 | // thread while loading a big image. | 111 | // thread while loading a big image. | ||
| 115 | func NewTextureForPixbuf(PixbufVar *gdkpixbuf.Pixbuf) *Texture { | 112 | func NewTextureForPixbuf(PixbufVar *gdkpixbuf.Pixbuf) *Texture { | ||
| 116 | - | core.LazyRegister(&xNewTextureForPixbuf, "GDK", "gdk_texture_new_for_pixbuf", false) | |||
| 117 | var cls *Texture | 113 | var cls *Texture | ||
| 118 | 114 | ||||
| 119 | cret := xNewTextureForPixbuf(PixbufVar.GoPointer()) | 115 | cret := xNewTextureForPixbuf(PixbufVar.GoPointer()) | ||
| @@ -145,7 +141,6 @@ var xNewTextureFromBytes func(*glib.Bytes, **glib.Error) uintptr | |||||
| 145 | // Use a proper image loading framework such as libglycin, which can | 141 | // Use a proper image loading framework such as libglycin, which can | ||
| 146 | // load many image formats into a `GdkTexture`. | 142 | // load many image formats into a `GdkTexture`. | ||
| 147 | func NewTextureFromBytes(BytesVar *glib.Bytes) (*Texture, error) { | 143 | func NewTextureFromBytes(BytesVar *glib.Bytes) (*Texture, error) { | ||
| 148 | - | core.LazyRegister(&xNewTextureFromBytes, "GDK", "gdk_texture_new_from_bytes", false) | |||
| 149 | var cls *Texture | 144 | var cls *Texture | ||
| 150 | var cerr *glib.Error | 145 | var cerr *glib.Error | ||
| 151 | 146 | ||||
| @@ -181,7 +176,6 @@ var xNewTextureFromFile func(uintptr, **glib.Error) uintptr | |||||
| 181 | // Use a proper image loading framework such as libglycin, which can | 176 | // Use a proper image loading framework such as libglycin, which can | ||
| 182 | // load many image formats into a `GdkTexture`. | 177 | // load many image formats into a `GdkTexture`. | ||
| 183 | func NewTextureFromFile(FileVar gio.File) (*Texture, error) { | 178 | func NewTextureFromFile(FileVar gio.File) (*Texture, error) { | ||
| 184 | - | core.LazyRegister(&xNewTextureFromFile, "GDK", "gdk_texture_new_from_file", false) | |||
| 185 | var cls *Texture | 179 | var cls *Texture | ||
| 186 | var cerr *glib.Error | 180 | var cerr *glib.Error | ||
| 187 | 181 | ||||
| @@ -217,7 +211,6 @@ var xNewTextureFromFilename func(string, **glib.Error) uintptr | |||||
| 217 | // Use a proper image loading framework such as libglycin, which can | 211 | // Use a proper image loading framework such as libglycin, which can | ||
| 218 | // load many image formats into a `GdkTexture`. | 212 | // load many image formats into a `GdkTexture`. | ||
| 219 | func NewTextureFromFilename(PathVar string) (*Texture, error) { | 213 | func NewTextureFromFilename(PathVar string) (*Texture, error) { | ||
| 220 | - | core.LazyRegister(&xNewTextureFromFilename, "GDK", "gdk_texture_new_from_filename", false) | |||
| 221 | var cls *Texture | 214 | var cls *Texture | ||
| 222 | var cerr *glib.Error | 215 | var cerr *glib.Error | ||
| 223 | 216 | ||||
| @@ -250,7 +243,6 @@ var xNewTextureFromResource func(string) uintptr | |||||
| 250 | // and [method@Gio.Task.run_in_thread] to avoid blocking the main thread | 243 | // and [method@Gio.Task.run_in_thread] to avoid blocking the main thread | ||
| 251 | // while loading a big image. | 244 | // while loading a big image. | ||
| 252 | func NewTextureFromResource(ResourcePathVar string) *Texture { | 245 | func NewTextureFromResource(ResourcePathVar string) *Texture { | ||
| 253 | - | core.LazyRegister(&xNewTextureFromResource, "GDK", "gdk_texture_new_from_resource", false) | |||
| 254 | var cls *Texture | 246 | var cls *Texture | ||
| 255 | 247 | ||||
| 256 | cret := xNewTextureFromResource(ResourcePathVar) | 248 | cret := xNewTextureFromResource(ResourcePathVar) | ||
| @@ -292,8 +284,6 @@ var xTextureDownload func(uintptr, []byte, uint) | |||||
| 292 | // For more flexible download capabilities, see | 284 | // For more flexible download capabilities, see | ||
| 293 | // [struct@Gdk.TextureDownloader]. | 285 | // [struct@Gdk.TextureDownloader]. | ||
| 294 | func (x *Texture) Download(DataVar []byte, StrideVar uint) { | 286 | func (x *Texture) Download(DataVar []byte, StrideVar uint) { | ||
| 295 | - | core.LazyRegister(&xTextureDownload, "GDK", "gdk_texture_download", false) | |||
| 296 | - | ||||
| 297 | xTextureDownload(x.GoPointer(), DataVar, StrideVar) | 287 | xTextureDownload(x.GoPointer(), DataVar, StrideVar) | ||
| 298 | } | 288 | } | ||
| 299 | 289 | ||||
| @@ -301,8 +291,6 @@ var xTextureGetColorState func(uintptr) uintptr | |||||
| 301 | 291 | ||||
| 302 | // Returns the color state associated with the texture. | 292 | // Returns the color state associated with the texture. | ||
| 303 | func (x *Texture) GetColorState() *ColorState { | 293 | func (x *Texture) GetColorState() *ColorState { | ||
| 304 | - | core.LazyRegister(&xTextureGetColorState, "GDK", "gdk_texture_get_color_state", false) | |||
| 305 | - | ||||
| 306 | cret := xTextureGetColorState(x.GoPointer()) | 294 | cret := xTextureGetColorState(x.GoPointer()) | ||
| 307 | if cret == 0 { | 295 | if cret == 0 { | ||
| 308 | return nil | 296 | return nil | ||
| @@ -322,8 +310,6 @@ var xTextureGetFormat func(uintptr) MemoryFormat | |||||
| 322 | // of the texture and is useful to determine the best format for | 310 | // of the texture and is useful to determine the best format for | ||
| 323 | // downloading the texture. | 311 | // downloading the texture. | ||
| 324 | func (x *Texture) GetFormat() MemoryFormat { | 312 | func (x *Texture) GetFormat() MemoryFormat { | ||
| 325 | - | core.LazyRegister(&xTextureGetFormat, "GDK", "gdk_texture_get_format", false) | |||
| 326 | - | ||||
| 327 | cret := xTextureGetFormat(x.GoPointer()) | 313 | cret := xTextureGetFormat(x.GoPointer()) | ||
| 328 | return cret | 314 | return cret | ||
| 329 | } | 315 | } | ||
| @@ -332,8 +318,6 @@ var xTextureGetHeight func(uintptr) int | |||||
| 332 | 318 | ||||
| 333 | // Returns the height of the @texture, in pixels. | 319 | // Returns the height of the @texture, in pixels. | ||
| 334 | func (x *Texture) GetHeight() int { | 320 | func (x *Texture) GetHeight() int { | ||
| 335 | - | core.LazyRegister(&xTextureGetHeight, "GDK", "gdk_texture_get_height", false) | |||
| 336 | - | ||||
| 337 | cret := xTextureGetHeight(x.GoPointer()) | 321 | cret := xTextureGetHeight(x.GoPointer()) | ||
| 338 | return cret | 322 | return cret | ||
| 339 | } | 323 | } | ||
| @@ -342,8 +326,6 @@ var xTextureGetWidth func(uintptr) int | |||||
| 342 | 326 | ||||
| 343 | // Returns the width of @texture, in pixels. | 327 | // Returns the width of @texture, in pixels. | ||
| 344 | func (x *Texture) GetWidth() int { | 328 | func (x *Texture) GetWidth() int { | ||
| 345 | - | core.LazyRegister(&xTextureGetWidth, "GDK", "gdk_texture_get_width", false) | |||
| 346 | - | ||||
| 347 | cret := xTextureGetWidth(x.GoPointer()) | 329 | cret := xTextureGetWidth(x.GoPointer()) | ||
| 348 | return cret | 330 | return cret | ||
| 349 | } | 331 | } | ||
| @@ -358,8 +340,6 @@ var xTextureSaveToPng func(uintptr, string) bool | |||||
| 358 | // want to use [method@Gdk.Texture.save_to_png_bytes] or look into | 340 | // want to use [method@Gdk.Texture.save_to_png_bytes] or look into | ||
| 359 | // the libglycin library. | 341 | // the libglycin library. | ||
| 360 | func (x *Texture) SaveToPng(FilenameVar string) bool { | 342 | func (x *Texture) SaveToPng(FilenameVar string) bool { | ||
| 361 | - | core.LazyRegister(&xTextureSaveToPng, "GDK", "gdk_texture_save_to_png", false) | |||
| 362 | - | ||||
| 363 | cret := xTextureSaveToPng(x.GoPointer(), FilenameVar) | 343 | cret := xTextureSaveToPng(x.GoPointer(), FilenameVar) | ||
| 364 | return cret | 344 | return cret | ||
| 365 | } | 345 | } | ||
| @@ -381,8 +361,6 @@ var xTextureSaveToPngBytes func(uintptr) uintptr | |||||
| 381 | // might also want to consider [method@Gdk.Texture.save_to_tiff_bytes] | 361 | // might also want to consider [method@Gdk.Texture.save_to_tiff_bytes] | ||
| 382 | // instead. | 362 | // instead. | ||
| 383 | func (x *Texture) SaveToPngBytes() *glib.Bytes { | 363 | func (x *Texture) SaveToPngBytes() *glib.Bytes { | ||
| 384 | - | core.LazyRegister(&xTextureSaveToPngBytes, "GDK", "gdk_texture_save_to_png_bytes", false) | |||
| 385 | - | ||||
| 386 | cret := xTextureSaveToPngBytes(x.GoPointer()) | 364 | cret := xTextureSaveToPngBytes(x.GoPointer()) | ||
| 387 | if cret == 0 { | 365 | if cret == 0 { | ||
| 388 | return nil | 366 | return nil | ||
| @@ -396,8 +374,6 @@ var xTextureSaveToTiff func(uintptr, string) bool | |||||
| 396 | // | 374 | // | ||
| 397 | // GTK will attempt to store data without loss. | 375 | // GTK will attempt to store data without loss. | ||
| 398 | func (x *Texture) SaveToTiff(FilenameVar string) bool { | 376 | func (x *Texture) SaveToTiff(FilenameVar string) bool { | ||
| 399 | - | core.LazyRegister(&xTextureSaveToTiff, "GDK", "gdk_texture_save_to_tiff", false) | |||
| 400 | - | ||||
| 401 | cret := xTextureSaveToTiff(x.GoPointer(), FilenameVar) | 377 | cret := xTextureSaveToTiff(x.GoPointer(), FilenameVar) | ||
| 402 | return cret | 378 | return cret | ||
| 403 | } | 379 | } | ||
| @@ -417,8 +393,6 @@ var xTextureSaveToTiffBytes func(uintptr) uintptr | |||||
| 417 | // smaller size and a more portable format, you might want to | 393 | // smaller size and a more portable format, you might want to | ||
| 418 | // use [method@Gdk.Texture.save_to_png_bytes]. | 394 | // use [method@Gdk.Texture.save_to_png_bytes]. | ||
| 419 | func (x *Texture) SaveToTiffBytes() *glib.Bytes { | 395 | func (x *Texture) SaveToTiffBytes() *glib.Bytes { | ||
| 420 | - | core.LazyRegister(&xTextureSaveToTiffBytes, "GDK", "gdk_texture_save_to_tiff_bytes", false) | |||
| 421 | - | ||||
| 422 | cret := xTextureSaveToTiffBytes(x.GoPointer()) | 396 | cret := xTextureSaveToTiffBytes(x.GoPointer()) | ||
| 423 | if cret == 0 { | 397 | if cret == 0 { | ||
| 424 | return nil | 398 | return nil | ||
| @@ -713,4 +687,34 @@ func (x *Texture) LoadFinish(ResVar gio.AsyncResult, TypeVar *string) (*gio.Inpu | |||||
| 713 | func init() { | 687 | func init() { | ||
| 714 | core.SetPackageName("GDK", "gtk4") | 688 | core.SetPackageName("GDK", "gtk4") | ||
| 715 | core.SetSharedLibraries("GDK", []string{"libgtk-4.so.1", "libgtk-4.1.dylib"}) | 689 | core.SetSharedLibraries("GDK", []string{"libgtk-4.so.1", "libgtk-4.1.dylib"}) | ||
| 690 | + | var libs []uintptr | |||
| 691 | + | for _, libPath := range core.GetPaths("GDK") { | |||
| 692 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 693 | + | if err != nil { | |||
| 694 | + | panic(err) | |||
| 695 | + | } | |||
| 696 | + | libs = append(libs, lib) | |||
| 697 | + | } | |||
| 698 | + | ||||
| 699 | + | core.PuregoSafeRegister(&xTextureErrorGLibType, libs, "gdk_texture_error_get_type") | |||
| 700 | + | ||||
| 701 | + | core.PuregoSafeRegister(&xTextureErrorQuark, libs, "gdk_texture_error_quark") | |||
| 702 | + | ||||
| 703 | + | core.PuregoSafeRegister(&xTextureGLibType, libs, "gdk_texture_get_type") | |||
| 704 | + | ||||
| 705 | + | core.PuregoSafeRegister(&xNewTextureForPixbuf, libs, "gdk_texture_new_for_pixbuf") | |||
| 706 | + | core.PuregoSafeRegister(&xNewTextureFromBytes, libs, "gdk_texture_new_from_bytes") | |||
| 707 | + | core.PuregoSafeRegister(&xNewTextureFromFile, libs, "gdk_texture_new_from_file") | |||
| 708 | + | core.PuregoSafeRegister(&xNewTextureFromFilename, libs, "gdk_texture_new_from_filename") | |||
| 709 | + | core.PuregoSafeRegister(&xNewTextureFromResource, libs, "gdk_texture_new_from_resource") | |||
| 710 | + | ||||
| 711 | + | core.PuregoSafeRegister(&xTextureDownload, libs, "gdk_texture_download") | |||
| 712 | + | core.PuregoSafeRegister(&xTextureGetColorState, libs, "gdk_texture_get_color_state") | |||
| 713 | + | core.PuregoSafeRegister(&xTextureGetFormat, libs, "gdk_texture_get_format") | |||
| 714 | + | core.PuregoSafeRegister(&xTextureGetHeight, libs, "gdk_texture_get_height") | |||
| 715 | + | core.PuregoSafeRegister(&xTextureGetWidth, libs, "gdk_texture_get_width") | |||
| 716 | + | core.PuregoSafeRegister(&xTextureSaveToPng, libs, "gdk_texture_save_to_png") | |||
| 717 | + | core.PuregoSafeRegister(&xTextureSaveToPngBytes, libs, "gdk_texture_save_to_png_bytes") | |||
| 718 | + | core.PuregoSafeRegister(&xTextureSaveToTiff, libs, "gdk_texture_save_to_tiff") | |||
| 719 | + | core.PuregoSafeRegister(&xTextureSaveToTiffBytes, libs, "gdk_texture_save_to_tiff_bytes") | |||
| 716 | } | 720 | } | ||