fix(deps): repin puregotk lazy registration fix
- commit
- d685b6e820d6baba0d0dea254169664012ed203d
- author
- brice · · 2026-07-14 18:24 UTC
- parent
- ec6db2e
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
907 files · +27874 -25294
M go.mod +3 -1
| @@ -11,7 +11,7 @@ require ( | |||
| 11 | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | |
| 14 | - | github.com/bnema/puregotk v0.7.0 | |
| 14 | + | github.com/bnema/puregotk v0.7.1-0.20260714181430-679a9ed72959 | |
| 15 | 15 | github.com/charmbracelet/bubbles v1.0.0 | |
| 16 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 17 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -47,6 +47,7 @@ require ( | |||
| 47 | 47 | github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect | |
| 48 | 48 | github.com/fatih/color v1.19.0 // indirect | |
| 49 | 49 | github.com/go-viper/mapstructure/v2 v2.5.0 // indirect | |
| 50 | + | github.com/google/go-cmp v0.7.0 // indirect | |
| 50 | 51 | github.com/inconshreveable/mousetrap v1.1.0 // indirect | |
| 51 | 52 | github.com/lucasb-eyer/go-colorful v1.4.0 // indirect | |
| 52 | 53 | github.com/mattn/go-colorable v0.1.14 // indirect | |
| @@ -80,6 +81,7 @@ require ( | |||
| 80 | 81 | golang.org/x/text v0.40.0 // indirect | |
| 81 | 82 | golang.org/x/tools v0.47.0 // indirect | |
| 82 | 83 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect | |
| 84 | + | mvdan.cc/gofumpt v0.9.2 // indirect | |
| 83 | 85 | ) | |
| 84 | 86 | ||
| 85 | 87 | tool github.com/a-h/templ/cmd/templ | |
| @@ -11,7 +11,7 @@ require ( | |||||
| 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | ||
| 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | ||
| 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | ||
| 14 | - | github.com/bnema/puregotk v0.7.0 | 14 | + | github.com/bnema/puregotk v0.7.1-0.20260714181430-679a9ed72959 |
| 15 | github.com/charmbracelet/bubbles v1.0.0 | 15 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 16 | github.com/charmbracelet/bubbletea v1.3.10 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 17 | github.com/charmbracelet/lipgloss v1.1.0 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | ||
| @@ -47,6 +47,7 @@ require ( | |||||
| 47 | github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect | 47 | github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect | ||
| 48 | github.com/fatih/color v1.19.0 // indirect | 48 | github.com/fatih/color v1.19.0 // indirect | ||
| 49 | github.com/go-viper/mapstructure/v2 v2.5.0 // indirect | 49 | github.com/go-viper/mapstructure/v2 v2.5.0 // indirect | ||
| 50 | + | github.com/google/go-cmp v0.7.0 // indirect | |||
| 50 | github.com/inconshreveable/mousetrap v1.1.0 // indirect | 51 | github.com/inconshreveable/mousetrap v1.1.0 // indirect | ||
| 51 | github.com/lucasb-eyer/go-colorful v1.4.0 // indirect | 52 | github.com/lucasb-eyer/go-colorful v1.4.0 // indirect | ||
| 52 | github.com/mattn/go-colorable v0.1.14 // indirect | 53 | github.com/mattn/go-colorable v0.1.14 // indirect | ||
| @@ -80,6 +81,7 @@ require ( | |||||
| 80 | golang.org/x/text v0.40.0 // indirect | 81 | golang.org/x/text v0.40.0 // indirect | ||
| 81 | golang.org/x/tools v0.47.0 // indirect | 82 | golang.org/x/tools v0.47.0 // indirect | ||
| 82 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect | 83 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect | ||
| 84 | + | mvdan.cc/gofumpt v0.9.2 // indirect | |||
| 83 | ) | 85 | ) | ||
| 84 | 86 | ||||
| 85 | tool github.com/a-h/templ/cmd/templ | 87 | tool github.com/a-h/templ/cmd/templ | ||
M go.sum +4 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +197 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +10 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +99 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +95 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +7 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +33 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +66 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +10 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +4 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +24 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +14 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +3 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +22 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +23 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +47 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +10 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +33 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +18 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +47 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +14 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +17 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +17 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +34 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +45 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +40 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +13 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +40 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +61 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +10 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +36 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +18 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +7 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +69 -56 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +5 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +5 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +63 -44 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +17 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +10 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +36 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +60 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +48 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +24 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +38 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +18 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +31 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +45 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +24 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +41 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +40 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +39 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +34 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +17 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +49 -44 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +20 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +25 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +33 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +33 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +6 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +35 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +45 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +123 -87 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +30 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +41 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +64 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +40 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +7 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +78 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +15 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +19 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +10 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +14 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +66 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +57 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/cairo/main.go +36 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +10 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +12 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +20 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +34 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +12 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +26 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +28 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +23 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +26 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +12 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +36 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +27 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +51 -43 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +10 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +53 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder_extra.go +6 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +20 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +6 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +11 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +19 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +21 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +120 -118 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +22 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +17 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +40 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +41 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +19 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +42 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmonitor.go +27 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpaintable.go +63 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +4 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +2 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +47 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +36 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +19 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +11 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +7 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +46 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +27 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +157 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +24 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +9 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +95 -72 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +26 -32 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 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-loader.go +13 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-transform.go +11 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf.go +102 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/main.go +5 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gaction.go +59 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactiongroup.go +96 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactionmap.go +33 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gappinfo.go +244 -116 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplication.go +79 -55 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplicationcommandline.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncinitable.go +25 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncresult.go +26 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedinputstream.go +26 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedoutputstream.go +11 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbytesicon.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcancellable.go +26 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcharsetconverter.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcontenttype.go +30 -26
| @@ -4,7 +4,6 @@ package gio | |||
| 4 | 4 | import ( | |
| 5 | 5 | "unsafe" | |
| 6 | 6 | ||
| 7 | - | "github.com/bnema/purego" | |
| 8 | 7 | "github.com/bnema/puregotk/pkg/core" | |
| 9 | 8 | "github.com/bnema/puregotk/v4/glib" | |
| 10 | 9 | ) | |
| @@ -14,6 +13,8 @@ var xContentTypeCanBeExecutable func(string) bool | |||
| 14 | 13 | // Checks if a content type can be executable. Note that for instance | |
| 15 | 14 | // things like text files can be executables (i.e. scripts and batch files). | |
| 16 | 15 | func ContentTypeCanBeExecutable(TypeVar string) bool { | |
| 16 | + | core.LazyRegister(&xContentTypeCanBeExecutable, "GIO", "g_content_type_can_be_executable", false) | |
| 17 | + | ||
| 17 | 18 | cret := xContentTypeCanBeExecutable(TypeVar) | |
| 18 | 19 | return cret | |
| 19 | 20 | } | |
| @@ -22,6 +23,8 @@ var xContentTypeEquals func(string, string) bool | |||
| 22 | 23 | ||
| 23 | 24 | // Compares two content types for equality. | |
| 24 | 25 | func ContentTypeEquals(Type1Var string, Type2Var string) bool { | |
| 26 | + | core.LazyRegister(&xContentTypeEquals, "GIO", "g_content_type_equals", false) | |
| 27 | + | ||
| 25 | 28 | cret := xContentTypeEquals(Type1Var, Type2Var) | |
| 26 | 29 | return cret | |
| 27 | 30 | } | |
| @@ -30,6 +33,8 @@ var xContentTypeFromMimeType func(string) string | |||
| 30 | 33 | ||
| 31 | 34 | // Tries to find a content type based on the mime type name. | |
| 32 | 35 | func ContentTypeFromMimeType(MimeTypeVar string) string { | |
| 36 | + | core.LazyRegister(&xContentTypeFromMimeType, "GIO", "g_content_type_from_mime_type", false) | |
| 37 | + | ||
| 33 | 38 | cret := xContentTypeFromMimeType(MimeTypeVar) | |
| 34 | 39 | return cret | |
| 35 | 40 | } | |
| @@ -38,6 +43,8 @@ var xContentTypeGetDescription func(string) string | |||
| 38 | 43 | ||
| 39 | 44 | // Gets the human readable description of the content type. | |
| 40 | 45 | func ContentTypeGetDescription(TypeVar string) string { | |
| 46 | + | core.LazyRegister(&xContentTypeGetDescription, "GIO", "g_content_type_get_description", false) | |
| 47 | + | ||
| 41 | 48 | cret := xContentTypeGetDescription(TypeVar) | |
| 42 | 49 | return cret | |
| 43 | 50 | } | |
| @@ -50,6 +57,8 @@ var xContentTypeGetGenericIconName func(string) string | |||
| 50 | 57 | // [shared-mime-info](http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec) | |
| 51 | 58 | // specification for more on the generic icon name. | |
| 52 | 59 | func ContentTypeGetGenericIconName(TypeVar string) string { | |
| 60 | + | core.LazyRegister(&xContentTypeGetGenericIconName, "GIO", "g_content_type_get_generic_icon_name", false) | |
| 61 | + | ||
| 53 | 62 | cret := xContentTypeGetGenericIconName(TypeVar) | |
| 54 | 63 | return cret | |
| 55 | 64 | } | |
| @@ -58,6 +67,7 @@ var xContentTypeGetIcon func(string) uintptr | |||
| 58 | 67 | ||
| 59 | 68 | // Gets the icon for a content type. | |
| 60 | 69 | func ContentTypeGetIcon(TypeVar string) *IconBase { | |
| 70 | + | core.LazyRegister(&xContentTypeGetIcon, "GIO", "g_content_type_get_icon", false) | |
| 61 | 71 | var cls *IconBase | |
| 62 | 72 | ||
| 63 | 73 | cret := xContentTypeGetIcon(TypeVar) | |
| @@ -75,6 +85,8 @@ var xContentTypeGetMimeDirs func() []string | |||
| 75 | 85 | // Get the list of directories which MIME data is loaded from. See | |
| 76 | 86 | // g_content_type_set_mime_dirs() for details. | |
| 77 | 87 | func ContentTypeGetMimeDirs() []string { | |
| 88 | + | core.LazyRegister(&xContentTypeGetMimeDirs, "GIO", "g_content_type_get_mime_dirs", false) | |
| 89 | + | ||
| 78 | 90 | cret := xContentTypeGetMimeDirs() | |
| 79 | 91 | return cret | |
| 80 | 92 | } | |
| @@ -83,6 +95,8 @@ var xContentTypeGetMimeType func(string) string | |||
| 83 | 95 | ||
| 84 | 96 | // Gets the mime type for the content type, if one is registered. | |
| 85 | 97 | func ContentTypeGetMimeType(TypeVar string) string { | |
| 98 | + | core.LazyRegister(&xContentTypeGetMimeType, "GIO", "g_content_type_get_mime_type", false) | |
| 99 | + | ||
| 86 | 100 | cret := xContentTypeGetMimeType(TypeVar) | |
| 87 | 101 | return cret | |
| 88 | 102 | } | |
| @@ -91,6 +105,7 @@ var xContentTypeGetSymbolicIcon func(string) uintptr | |||
| 91 | 105 | ||
| 92 | 106 | // Gets the symbolic icon for a content type. | |
| 93 | 107 | func ContentTypeGetSymbolicIcon(TypeVar string) *IconBase { | |
| 108 | + | core.LazyRegister(&xContentTypeGetSymbolicIcon, "GIO", "g_content_type_get_symbolic_icon", false) | |
| 94 | 109 | var cls *IconBase | |
| 95 | 110 | ||
| 96 | 111 | cret := xContentTypeGetSymbolicIcon(TypeVar) | |
| @@ -110,6 +125,8 @@ var xContentTypeGuess func(uintptr, []byte, uint, *bool) string | |||
| 110 | 125 | // or @data may be %NULL, in which case the guess will be based solely | |
| 111 | 126 | // on the other argument. | |
| 112 | 127 | func ContentTypeGuess(FilenameVar *string, DataVar []byte, DataSizeVar uint, ResultUncertainVar *bool) string { | |
| 128 | + | core.LazyRegister(&xContentTypeGuess, "GIO", "g_content_type_guess", false) | |
| 129 | + | ||
| 113 | 130 | FilenameVarPtr := core.GStrdupNullable(FilenameVar) | |
| 114 | 131 | defer core.GFreeNullable(FilenameVarPtr) | |
| 115 | 132 | ||
| @@ -132,6 +149,8 @@ var xContentTypeGuessForTree func(uintptr) []string | |||
| 132 | 149 | // This function is useful in the implementation of | |
| 133 | 150 | // g_mount_guess_content_type(). | |
| 134 | 151 | func ContentTypeGuessForTree(RootVar File) []string { | |
| 152 | + | core.LazyRegister(&xContentTypeGuessForTree, "GIO", "g_content_type_guess_for_tree", false) | |
| 153 | + | ||
| 135 | 154 | cret := xContentTypeGuessForTree(RootVar.GoPointer()) | |
| 136 | 155 | return cret | |
| 137 | 156 | } | |
| @@ -140,6 +159,8 @@ var xContentTypeIsA func(string, string) bool | |||
| 140 | 159 | ||
| 141 | 160 | // Determines if @type is a subset of @supertype. | |
| 142 | 161 | func ContentTypeIsA(TypeVar string, SupertypeVar string) bool { | |
| 162 | + | core.LazyRegister(&xContentTypeIsA, "GIO", "g_content_type_is_a", false) | |
| 163 | + | ||
| 143 | 164 | cret := xContentTypeIsA(TypeVar, SupertypeVar) | |
| 144 | 165 | return cret | |
| 145 | 166 | } | |
| @@ -149,6 +170,8 @@ var xContentTypeIsMimeType func(string, string) bool | |||
| 149 | 170 | // Determines if @type is a subset of @mime_type. | |
| 150 | 171 | // Convenience wrapper around g_content_type_is_a(). | |
| 151 | 172 | func ContentTypeIsMimeType(TypeVar string, MimeTypeVar string) bool { | |
| 173 | + | core.LazyRegister(&xContentTypeIsMimeType, "GIO", "g_content_type_is_mime_type", false) | |
| 174 | + | ||
| 152 | 175 | cret := xContentTypeIsMimeType(TypeVar, MimeTypeVar) | |
| 153 | 176 | return cret | |
| 154 | 177 | } | |
| @@ -160,6 +183,8 @@ var xContentTypeIsUnknown func(string) bool | |||
| 160 | 183 | // while on win32 it is "*" and on OSX it is a dynamic type | |
| 161 | 184 | // or octet-stream. | |
| 162 | 185 | func ContentTypeIsUnknown(TypeVar string) bool { | |
| 186 | + | core.LazyRegister(&xContentTypeIsUnknown, "GIO", "g_content_type_is_unknown", false) | |
| 187 | + | ||
| 163 | 188 | cret := xContentTypeIsUnknown(TypeVar) | |
| 164 | 189 | return cret | |
| 165 | 190 | } | |
| @@ -192,6 +217,8 @@ var xContentTypeSetMimeDirs func([]string) | |||
| 192 | 217 | // | |
| 193 | 218 | // ]| | |
| 194 | 219 | func ContentTypeSetMimeDirs(DirsVar []string) { | |
| 220 | + | core.LazyRegister(&xContentTypeSetMimeDirs, "GIO", "g_content_type_set_mime_dirs", false) | |
| 221 | + | ||
| 195 | 222 | xContentTypeSetMimeDirs(DirsVar) | |
| 196 | 223 | } | |
| 197 | 224 | ||
| @@ -201,6 +228,8 @@ var xContentTypesGetRegistered func() uintptr | |||
| 201 | 228 | // known to the system. The list and its data should be freed using | |
| 202 | 229 | // `g_list_free_full (list, g_free)`. | |
| 203 | 230 | func ContentTypesGetRegistered() *glib.List { | |
| 231 | + | core.LazyRegister(&xContentTypesGetRegistered, "GIO", "g_content_types_get_registered", false) | |
| 232 | + | ||
| 204 | 233 | cret := xContentTypesGetRegistered() | |
| 205 | 234 | if cret == 0 { | |
| 206 | 235 | return nil | |
| @@ -211,29 +240,4 @@ func ContentTypesGetRegistered() *glib.List { | |||
| 211 | 240 | func init() { | |
| 212 | 241 | core.SetPackageName("GIO", "gio-2.0") | |
| 213 | 242 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | |
| 214 | - | var libs []uintptr | |
| 215 | - | for _, libPath := range core.GetPaths("GIO") { | |
| 216 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 217 | - | if err != nil { | |
| 218 | - | panic(err) | |
| 219 | - | } | |
| 220 | - | libs = append(libs, lib) | |
| 221 | - | } | |
| 222 | - | ||
| 223 | - | core.PuregoSafeRegister(&xContentTypeCanBeExecutable, libs, "g_content_type_can_be_executable") | |
| 224 | - | core.PuregoSafeRegister(&xContentTypeEquals, libs, "g_content_type_equals") | |
| 225 | - | core.PuregoSafeRegister(&xContentTypeFromMimeType, libs, "g_content_type_from_mime_type") | |
| 226 | - | core.PuregoSafeRegister(&xContentTypeGetDescription, libs, "g_content_type_get_description") | |
| 227 | - | core.PuregoSafeRegister(&xContentTypeGetGenericIconName, libs, "g_content_type_get_generic_icon_name") | |
| 228 | - | core.PuregoSafeRegister(&xContentTypeGetIcon, libs, "g_content_type_get_icon") | |
| 229 | - | core.PuregoSafeRegister(&xContentTypeGetMimeDirs, libs, "g_content_type_get_mime_dirs") | |
| 230 | - | core.PuregoSafeRegister(&xContentTypeGetMimeType, libs, "g_content_type_get_mime_type") | |
| 231 | - | core.PuregoSafeRegister(&xContentTypeGetSymbolicIcon, libs, "g_content_type_get_symbolic_icon") | |
| 232 | - | core.PuregoSafeRegister(&xContentTypeGuess, libs, "g_content_type_guess") | |
| 233 | - | core.PuregoSafeRegister(&xContentTypeGuessForTree, libs, "g_content_type_guess_for_tree") | |
| 234 | - | core.PuregoSafeRegister(&xContentTypeIsA, libs, "g_content_type_is_a") | |
| 235 | - | core.PuregoSafeRegister(&xContentTypeIsMimeType, libs, "g_content_type_is_mime_type") | |
| 236 | - | core.PuregoSafeRegister(&xContentTypeIsUnknown, libs, "g_content_type_is_unknown") | |
| 237 | - | core.PuregoSafeRegister(&xContentTypeSetMimeDirs, libs, "g_content_type_set_mime_dirs") | |
| 238 | - | core.PuregoSafeRegister(&xContentTypesGetRegistered, libs, "g_content_types_get_registered") | |
| 239 | 243 | } | |
| @@ -4,7 +4,6 @@ package gio | |||||
| 4 | import ( | 4 | import ( | ||
| 5 | "unsafe" | 5 | "unsafe" | ||
| 6 | 6 | ||||
| 7 | - | "github.com/bnema/purego" | |||
| 8 | "github.com/bnema/puregotk/pkg/core" | 7 | "github.com/bnema/puregotk/pkg/core" | ||
| 9 | "github.com/bnema/puregotk/v4/glib" | 8 | "github.com/bnema/puregotk/v4/glib" | ||
| 10 | ) | 9 | ) | ||
| @@ -14,6 +13,8 @@ var xContentTypeCanBeExecutable func(string) bool | |||||
| 14 | // Checks if a content type can be executable. Note that for instance | 13 | // Checks if a content type can be executable. Note that for instance | ||
| 15 | // things like text files can be executables (i.e. scripts and batch files). | 14 | // things like text files can be executables (i.e. scripts and batch files). | ||
| 16 | func ContentTypeCanBeExecutable(TypeVar string) bool { | 15 | func ContentTypeCanBeExecutable(TypeVar string) bool { | ||
| 16 | + | core.LazyRegister(&xContentTypeCanBeExecutable, "GIO", "g_content_type_can_be_executable", false) | |||
| 17 | + | ||||
| 17 | cret := xContentTypeCanBeExecutable(TypeVar) | 18 | cret := xContentTypeCanBeExecutable(TypeVar) | ||
| 18 | return cret | 19 | return cret | ||
| 19 | } | 20 | } | ||
| @@ -22,6 +23,8 @@ var xContentTypeEquals func(string, string) bool | |||||
| 22 | 23 | ||||
| 23 | // Compares two content types for equality. | 24 | // Compares two content types for equality. | ||
| 24 | func ContentTypeEquals(Type1Var string, Type2Var string) bool { | 25 | func ContentTypeEquals(Type1Var string, Type2Var string) bool { | ||
| 26 | + | core.LazyRegister(&xContentTypeEquals, "GIO", "g_content_type_equals", false) | |||
| 27 | + | ||||
| 25 | cret := xContentTypeEquals(Type1Var, Type2Var) | 28 | cret := xContentTypeEquals(Type1Var, Type2Var) | ||
| 26 | return cret | 29 | return cret | ||
| 27 | } | 30 | } | ||
| @@ -30,6 +33,8 @@ var xContentTypeFromMimeType func(string) string | |||||
| 30 | 33 | ||||
| 31 | // Tries to find a content type based on the mime type name. | 34 | // Tries to find a content type based on the mime type name. | ||
| 32 | func ContentTypeFromMimeType(MimeTypeVar string) string { | 35 | func ContentTypeFromMimeType(MimeTypeVar string) string { | ||
| 36 | + | core.LazyRegister(&xContentTypeFromMimeType, "GIO", "g_content_type_from_mime_type", false) | |||
| 37 | + | ||||
| 33 | cret := xContentTypeFromMimeType(MimeTypeVar) | 38 | cret := xContentTypeFromMimeType(MimeTypeVar) | ||
| 34 | return cret | 39 | return cret | ||
| 35 | } | 40 | } | ||
| @@ -38,6 +43,8 @@ var xContentTypeGetDescription func(string) string | |||||
| 38 | 43 | ||||
| 39 | // Gets the human readable description of the content type. | 44 | // Gets the human readable description of the content type. | ||
| 40 | func ContentTypeGetDescription(TypeVar string) string { | 45 | func ContentTypeGetDescription(TypeVar string) string { | ||
| 46 | + | core.LazyRegister(&xContentTypeGetDescription, "GIO", "g_content_type_get_description", false) | |||
| 47 | + | ||||
| 41 | cret := xContentTypeGetDescription(TypeVar) | 48 | cret := xContentTypeGetDescription(TypeVar) | ||
| 42 | return cret | 49 | return cret | ||
| 43 | } | 50 | } | ||
| @@ -50,6 +57,8 @@ var xContentTypeGetGenericIconName func(string) string | |||||
| 50 | // [shared-mime-info](http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec) | 57 | // [shared-mime-info](http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec) | ||
| 51 | // specification for more on the generic icon name. | 58 | // specification for more on the generic icon name. | ||
| 52 | func ContentTypeGetGenericIconName(TypeVar string) string { | 59 | func ContentTypeGetGenericIconName(TypeVar string) string { | ||
| 60 | + | core.LazyRegister(&xContentTypeGetGenericIconName, "GIO", "g_content_type_get_generic_icon_name", false) | |||
| 61 | + | ||||
| 53 | cret := xContentTypeGetGenericIconName(TypeVar) | 62 | cret := xContentTypeGetGenericIconName(TypeVar) | ||
| 54 | return cret | 63 | return cret | ||
| 55 | } | 64 | } | ||
| @@ -58,6 +67,7 @@ var xContentTypeGetIcon func(string) uintptr | |||||
| 58 | 67 | ||||
| 59 | // Gets the icon for a content type. | 68 | // Gets the icon for a content type. | ||
| 60 | func ContentTypeGetIcon(TypeVar string) *IconBase { | 69 | func ContentTypeGetIcon(TypeVar string) *IconBase { | ||
| 70 | + | core.LazyRegister(&xContentTypeGetIcon, "GIO", "g_content_type_get_icon", false) | |||
| 61 | var cls *IconBase | 71 | var cls *IconBase | ||
| 62 | 72 | ||||
| 63 | cret := xContentTypeGetIcon(TypeVar) | 73 | cret := xContentTypeGetIcon(TypeVar) | ||
| @@ -75,6 +85,8 @@ var xContentTypeGetMimeDirs func() []string | |||||
| 75 | // Get the list of directories which MIME data is loaded from. See | 85 | // Get the list of directories which MIME data is loaded from. See | ||
| 76 | // g_content_type_set_mime_dirs() for details. | 86 | // g_content_type_set_mime_dirs() for details. | ||
| 77 | func ContentTypeGetMimeDirs() []string { | 87 | func ContentTypeGetMimeDirs() []string { | ||
| 88 | + | core.LazyRegister(&xContentTypeGetMimeDirs, "GIO", "g_content_type_get_mime_dirs", false) | |||
| 89 | + | ||||
| 78 | cret := xContentTypeGetMimeDirs() | 90 | cret := xContentTypeGetMimeDirs() | ||
| 79 | return cret | 91 | return cret | ||
| 80 | } | 92 | } | ||
| @@ -83,6 +95,8 @@ var xContentTypeGetMimeType func(string) string | |||||
| 83 | 95 | ||||
| 84 | // Gets the mime type for the content type, if one is registered. | 96 | // Gets the mime type for the content type, if one is registered. | ||
| 85 | func ContentTypeGetMimeType(TypeVar string) string { | 97 | func ContentTypeGetMimeType(TypeVar string) string { | ||
| 98 | + | core.LazyRegister(&xContentTypeGetMimeType, "GIO", "g_content_type_get_mime_type", false) | |||
| 99 | + | ||||
| 86 | cret := xContentTypeGetMimeType(TypeVar) | 100 | cret := xContentTypeGetMimeType(TypeVar) | ||
| 87 | return cret | 101 | return cret | ||
| 88 | } | 102 | } | ||
| @@ -91,6 +105,7 @@ var xContentTypeGetSymbolicIcon func(string) uintptr | |||||
| 91 | 105 | ||||
| 92 | // Gets the symbolic icon for a content type. | 106 | // Gets the symbolic icon for a content type. | ||
| 93 | func ContentTypeGetSymbolicIcon(TypeVar string) *IconBase { | 107 | func ContentTypeGetSymbolicIcon(TypeVar string) *IconBase { | ||
| 108 | + | core.LazyRegister(&xContentTypeGetSymbolicIcon, "GIO", "g_content_type_get_symbolic_icon", false) | |||
| 94 | var cls *IconBase | 109 | var cls *IconBase | ||
| 95 | 110 | ||||
| 96 | cret := xContentTypeGetSymbolicIcon(TypeVar) | 111 | cret := xContentTypeGetSymbolicIcon(TypeVar) | ||
| @@ -110,6 +125,8 @@ var xContentTypeGuess func(uintptr, []byte, uint, *bool) string | |||||
| 110 | // or @data may be %NULL, in which case the guess will be based solely | 125 | // or @data may be %NULL, in which case the guess will be based solely | ||
| 111 | // on the other argument. | 126 | // on the other argument. | ||
| 112 | func ContentTypeGuess(FilenameVar *string, DataVar []byte, DataSizeVar uint, ResultUncertainVar *bool) string { | 127 | func ContentTypeGuess(FilenameVar *string, DataVar []byte, DataSizeVar uint, ResultUncertainVar *bool) string { | ||
| 128 | + | core.LazyRegister(&xContentTypeGuess, "GIO", "g_content_type_guess", false) | |||
| 129 | + | ||||
| 113 | FilenameVarPtr := core.GStrdupNullable(FilenameVar) | 130 | FilenameVarPtr := core.GStrdupNullable(FilenameVar) | ||
| 114 | defer core.GFreeNullable(FilenameVarPtr) | 131 | defer core.GFreeNullable(FilenameVarPtr) | ||
| 115 | 132 | ||||
| @@ -132,6 +149,8 @@ var xContentTypeGuessForTree func(uintptr) []string | |||||
| 132 | // This function is useful in the implementation of | 149 | // This function is useful in the implementation of | ||
| 133 | // g_mount_guess_content_type(). | 150 | // g_mount_guess_content_type(). | ||
| 134 | func ContentTypeGuessForTree(RootVar File) []string { | 151 | func ContentTypeGuessForTree(RootVar File) []string { | ||
| 152 | + | core.LazyRegister(&xContentTypeGuessForTree, "GIO", "g_content_type_guess_for_tree", false) | |||
| 153 | + | ||||
| 135 | cret := xContentTypeGuessForTree(RootVar.GoPointer()) | 154 | cret := xContentTypeGuessForTree(RootVar.GoPointer()) | ||
| 136 | return cret | 155 | return cret | ||
| 137 | } | 156 | } | ||
| @@ -140,6 +159,8 @@ var xContentTypeIsA func(string, string) bool | |||||
| 140 | 159 | ||||
| 141 | // Determines if @type is a subset of @supertype. | 160 | // Determines if @type is a subset of @supertype. | ||
| 142 | func ContentTypeIsA(TypeVar string, SupertypeVar string) bool { | 161 | func ContentTypeIsA(TypeVar string, SupertypeVar string) bool { | ||
| 162 | + | core.LazyRegister(&xContentTypeIsA, "GIO", "g_content_type_is_a", false) | |||
| 163 | + | ||||
| 143 | cret := xContentTypeIsA(TypeVar, SupertypeVar) | 164 | cret := xContentTypeIsA(TypeVar, SupertypeVar) | ||
| 144 | return cret | 165 | return cret | ||
| 145 | } | 166 | } | ||
| @@ -149,6 +170,8 @@ var xContentTypeIsMimeType func(string, string) bool | |||||
| 149 | // Determines if @type is a subset of @mime_type. | 170 | // Determines if @type is a subset of @mime_type. | ||
| 150 | // Convenience wrapper around g_content_type_is_a(). | 171 | // Convenience wrapper around g_content_type_is_a(). | ||
| 151 | func ContentTypeIsMimeType(TypeVar string, MimeTypeVar string) bool { | 172 | func ContentTypeIsMimeType(TypeVar string, MimeTypeVar string) bool { | ||
| 173 | + | core.LazyRegister(&xContentTypeIsMimeType, "GIO", "g_content_type_is_mime_type", false) | |||
| 174 | + | ||||
| 152 | cret := xContentTypeIsMimeType(TypeVar, MimeTypeVar) | 175 | cret := xContentTypeIsMimeType(TypeVar, MimeTypeVar) | ||
| 153 | return cret | 176 | return cret | ||
| 154 | } | 177 | } | ||
| @@ -160,6 +183,8 @@ var xContentTypeIsUnknown func(string) bool | |||||
| 160 | // while on win32 it is "*" and on OSX it is a dynamic type | 183 | // while on win32 it is "*" and on OSX it is a dynamic type | ||
| 161 | // or octet-stream. | 184 | // or octet-stream. | ||
| 162 | func ContentTypeIsUnknown(TypeVar string) bool { | 185 | func ContentTypeIsUnknown(TypeVar string) bool { | ||
| 186 | + | core.LazyRegister(&xContentTypeIsUnknown, "GIO", "g_content_type_is_unknown", false) | |||
| 187 | + | ||||
| 163 | cret := xContentTypeIsUnknown(TypeVar) | 188 | cret := xContentTypeIsUnknown(TypeVar) | ||
| 164 | return cret | 189 | return cret | ||
| 165 | } | 190 | } | ||
| @@ -192,6 +217,8 @@ var xContentTypeSetMimeDirs func([]string) | |||||
| 192 | // | 217 | // | ||
| 193 | // ]| | 218 | // ]| | ||
| 194 | func ContentTypeSetMimeDirs(DirsVar []string) { | 219 | func ContentTypeSetMimeDirs(DirsVar []string) { | ||
| 220 | + | core.LazyRegister(&xContentTypeSetMimeDirs, "GIO", "g_content_type_set_mime_dirs", false) | |||
| 221 | + | ||||
| 195 | xContentTypeSetMimeDirs(DirsVar) | 222 | xContentTypeSetMimeDirs(DirsVar) | ||
| 196 | } | 223 | } | ||
| 197 | 224 | ||||
| @@ -201,6 +228,8 @@ var xContentTypesGetRegistered func() uintptr | |||||
| 201 | // known to the system. The list and its data should be freed using | 228 | // known to the system. The list and its data should be freed using | ||
| 202 | // `g_list_free_full (list, g_free)`. | 229 | // `g_list_free_full (list, g_free)`. | ||
| 203 | func ContentTypesGetRegistered() *glib.List { | 230 | func ContentTypesGetRegistered() *glib.List { | ||
| 231 | + | core.LazyRegister(&xContentTypesGetRegistered, "GIO", "g_content_types_get_registered", false) | |||
| 232 | + | ||||
| 204 | cret := xContentTypesGetRegistered() | 233 | cret := xContentTypesGetRegistered() | ||
| 205 | if cret == 0 { | 234 | if cret == 0 { | ||
| 206 | return nil | 235 | return nil | ||
| @@ -211,29 +240,4 @@ func ContentTypesGetRegistered() *glib.List { | |||||
| 211 | func init() { | 240 | func init() { | ||
| 212 | core.SetPackageName("GIO", "gio-2.0") | 241 | core.SetPackageName("GIO", "gio-2.0") | ||
| 213 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | 242 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | ||
| 214 | - | var libs []uintptr | |||
| 215 | - | for _, libPath := range core.GetPaths("GIO") { | |||
| 216 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 217 | - | if err != nil { | |||
| 218 | - | panic(err) | |||
| 219 | - | } | |||
| 220 | - | libs = append(libs, lib) | |||
| 221 | - | } | |||
| 222 | - | ||||
| 223 | - | core.PuregoSafeRegister(&xContentTypeCanBeExecutable, libs, "g_content_type_can_be_executable") | |||
| 224 | - | core.PuregoSafeRegister(&xContentTypeEquals, libs, "g_content_type_equals") | |||
| 225 | - | core.PuregoSafeRegister(&xContentTypeFromMimeType, libs, "g_content_type_from_mime_type") | |||
| 226 | - | core.PuregoSafeRegister(&xContentTypeGetDescription, libs, "g_content_type_get_description") | |||
| 227 | - | core.PuregoSafeRegister(&xContentTypeGetGenericIconName, libs, "g_content_type_get_generic_icon_name") | |||
| 228 | - | core.PuregoSafeRegister(&xContentTypeGetIcon, libs, "g_content_type_get_icon") | |||
| 229 | - | core.PuregoSafeRegister(&xContentTypeGetMimeDirs, libs, "g_content_type_get_mime_dirs") | |||
| 230 | - | core.PuregoSafeRegister(&xContentTypeGetMimeType, libs, "g_content_type_get_mime_type") | |||
| 231 | - | core.PuregoSafeRegister(&xContentTypeGetSymbolicIcon, libs, "g_content_type_get_symbolic_icon") | |||
| 232 | - | core.PuregoSafeRegister(&xContentTypeGuess, libs, "g_content_type_guess") | |||
| 233 | - | core.PuregoSafeRegister(&xContentTypeGuessForTree, libs, "g_content_type_guess_for_tree") | |||
| 234 | - | core.PuregoSafeRegister(&xContentTypeIsA, libs, "g_content_type_is_a") | |||
| 235 | - | core.PuregoSafeRegister(&xContentTypeIsMimeType, libs, "g_content_type_is_mime_type") | |||
| 236 | - | core.PuregoSafeRegister(&xContentTypeIsUnknown, libs, "g_content_type_is_unknown") | |||
| 237 | - | core.PuregoSafeRegister(&xContentTypeSetMimeDirs, libs, "g_content_type_set_mime_dirs") | |||
| 238 | - | core.PuregoSafeRegister(&xContentTypesGetRegistered, libs, "g_content_types_get_registered") | |||
| 239 | } | 243 | } | ||