Merge pull request #350 from bnema/fix/repin-fixed-puregotk
fix(deps): validate puregotk lazy registration fix
907 files · +27874 -25296
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.20260714200603-7370c78950ef | |
| 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.20260714200603-7370c78950ef |
| 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 -18 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 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverter.go +23 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverterinputstream.go +3 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverteroutputstream.go +3 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcredentials.go +12 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatagrambased.go +45 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatainputstream.go +31 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdataoutputstream.go +14 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusactiongroup.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusaddress.go +10 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusauthobserver.go +6 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusconnection.go +77 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbuserror.go +16 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterface.go +26 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterfaceskeleton.go +25 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusintrospection.go +54 -56 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmenumodel.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmessage.go +88 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmethodinvocation.go +35 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnameowning.go +10 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnamewatching.go +10 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobject.go +19 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanager.go +26 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerclient.go +16 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerserver.go +13 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectproxy.go +3 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectskeleton.go +12 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusproxy.go +42 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusserver.go +14 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusutils.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontroller.go +12 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontrollerdbus.go +4 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdrive.go +214 -82 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsclientconnection.go +34 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsconnection.go +207 -80 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsserverconnection.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblem.go +6 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblemedicon.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfile.go +1148 -450 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileattribute.go +13 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileenumerator.go +34 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileicon.go +3 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinfo.go +138 -84 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinputstream.go +17 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileiostream.go +23 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilemonitor.go +9 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilenamecompleter.go +8 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileoutputstream.go +23 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilterinputstream.go +6 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilteroutputstream.go +6 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gicon.go +32 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddress.go +40 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddressmask.go +14 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetsocketaddress.go +10 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginitable.go +11 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginputstream.go +52 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioenums.go +90 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioerror.go +6 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giomodule.go +26 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioscheduler.go +4 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giostream.go +25 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giotypes.go +70 -60 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giptosmessage.go +6 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gipv6tclassmessage.go +6 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/glistmodel.go +33 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gliststore.go +22 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gloadableicon.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryinputstream.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemorymonitor.go +2 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryoutputstream.go +13 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenu.go +62 -50 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenumodel.go +31 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmount.go +215 -86 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmountoperation.go +40 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativesocketaddress.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativevolumemonitor.go +7 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkaddress.go +11 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworking.go +3 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkmonitor.go +49 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkservice.go +12 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnotification.go +26 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/goutputstream.go +86 -72 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpermission.go +33 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableinputstream.go +30 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableoutputstream.go +41 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableutils.go +7 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpowerprofilemonitor.go +7 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpropertyaction.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxy.go +35 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddress.go +16 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddressenumerator.go +7 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyresolver.go +35 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gremoteactiongroup.go +12 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresolver.go +75 -67 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresource.go +19 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gseekable.go +41 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettings.go +99 -67 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsbackend.go +19 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsschema.go +48 -43
| @@ -5,7 +5,6 @@ import ( | |||
| 5 | 5 | "structs" | |
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | - | "github.com/bnema/purego" | |
| 9 | 8 | "github.com/bnema/puregotk/pkg/core" | |
| 10 | 9 | "github.com/bnema/puregotk/v4/glib" | |
| 11 | 10 | "github.com/bnema/puregotk/v4/gobject/types" | |
| @@ -115,6 +114,7 @@ type SettingsSchema struct { | |||
| 115 | 114 | var xSettingsSchemaGLibType func() types.GType | |
| 116 | 115 | ||
| 117 | 116 | func SettingsSchemaGLibType() types.GType { | |
| 117 | + | core.LazyRegister(&xSettingsSchemaGLibType, "GIO", "g_settings_schema_get_type", false) | |
| 118 | 118 | return xSettingsSchemaGLibType() | |
| 119 | 119 | } | |
| 120 | 120 | ||
| @@ -134,6 +134,8 @@ var xSettingsSchemaGetId func(uintptr) string | |||
| 134 | 134 | ||
| 135 | 135 | // Get the ID of @schema. | |
| 136 | 136 | func (x *SettingsSchema) GetId() string { | |
| 137 | + | core.LazyRegister(&xSettingsSchemaGetId, "GIO", "g_settings_schema_get_id", false) | |
| 138 | + | ||
| 137 | 139 | cret := xSettingsSchemaGetId(x.GoPointer()) | |
| 138 | 140 | return cret | |
| 139 | 141 | } | |
| @@ -145,6 +147,8 @@ var xSettingsSchemaGetKey func(uintptr, string) uintptr | |||
| 145 | 147 | // It is a programmer error to request a key that does not exist. See | |
| 146 | 148 | // g_settings_schema_list_keys(). | |
| 147 | 149 | func (x *SettingsSchema) GetKey(NameVar string) *SettingsSchemaKey { | |
| 150 | + | core.LazyRegister(&xSettingsSchemaGetKey, "GIO", "g_settings_schema_get_key", false) | |
| 151 | + | ||
| 148 | 152 | cret := xSettingsSchemaGetKey(x.GoPointer(), NameVar) | |
| 149 | 153 | if cret == 0 { | |
| 150 | 154 | return nil | |
| @@ -164,6 +168,8 @@ var xSettingsSchemaGetPath func(uintptr) string | |||
| 164 | 168 | // therefore describe multiple sets of keys at different locations. For | |
| 165 | 169 | // relocatable schemas, this function will return %NULL. | |
| 166 | 170 | func (x *SettingsSchema) GetPath() string { | |
| 171 | + | core.LazyRegister(&xSettingsSchemaGetPath, "GIO", "g_settings_schema_get_path", false) | |
| 172 | + | ||
| 167 | 173 | cret := xSettingsSchemaGetPath(x.GoPointer()) | |
| 168 | 174 | return cret | |
| 169 | 175 | } | |
| @@ -172,6 +178,8 @@ var xSettingsSchemaHasKey func(uintptr, string) bool | |||
| 172 | 178 | ||
| 173 | 179 | // Checks if @schema has a key named @name. | |
| 174 | 180 | func (x *SettingsSchema) HasKey(NameVar string) bool { | |
| 181 | + | core.LazyRegister(&xSettingsSchemaHasKey, "GIO", "g_settings_schema_has_key", false) | |
| 182 | + | ||
| 175 | 183 | cret := xSettingsSchemaHasKey(x.GoPointer(), NameVar) | |
| 176 | 184 | return cret | |
| 177 | 185 | } | |
| @@ -183,6 +191,8 @@ var xSettingsSchemaListChildren func(uintptr) []string | |||
| 183 | 191 | // You should free the return value with g_strfreev() when you are done | |
| 184 | 192 | // with it. | |
| 185 | 193 | func (x *SettingsSchema) ListChildren() []string { | |
| 194 | + | core.LazyRegister(&xSettingsSchemaListChildren, "GIO", "g_settings_schema_list_children", false) | |
| 195 | + | ||
| 186 | 196 | cret := xSettingsSchemaListChildren(x.GoPointer()) | |
| 187 | 197 | return cret | |
| 188 | 198 | } | |
| @@ -195,6 +205,8 @@ var xSettingsSchemaListKeys func(uintptr) []string | |||
| 195 | 205 | // (since you should already know what keys are in your schema). This | |
| 196 | 206 | // function is intended for introspection reasons. | |
| 197 | 207 | func (x *SettingsSchema) ListKeys() []string { | |
| 208 | + | core.LazyRegister(&xSettingsSchemaListKeys, "GIO", "g_settings_schema_list_keys", false) | |
| 209 | + | ||
| 198 | 210 | cret := xSettingsSchemaListKeys(x.GoPointer()) | |
| 199 | 211 | return cret | |
| 200 | 212 | } | |
| @@ -203,6 +215,8 @@ var xSettingsSchemaRef func(uintptr) uintptr | |||
| 203 | 215 | ||
| 204 | 216 | // Increase the reference count of @schema, returning a new reference. | |
| 205 | 217 | func (x *SettingsSchema) Ref() *SettingsSchema { | |
| 218 | + | core.LazyRegister(&xSettingsSchemaRef, "GIO", "g_settings_schema_ref", false) | |
| 219 | + | ||
| 206 | 220 | cret := xSettingsSchemaRef(x.GoPointer()) | |
| 207 | 221 | if cret == 0 { | |
| 208 | 222 | return nil | |
| @@ -214,6 +228,8 @@ var xSettingsSchemaUnref func(uintptr) | |||
| 214 | 228 | ||
| 215 | 229 | // Decrease the reference count of @schema, possibly freeing it. | |
| 216 | 230 | func (x *SettingsSchema) Unref() { | |
| 231 | + | core.LazyRegister(&xSettingsSchemaUnref, "GIO", "g_settings_schema_unref", false) | |
| 232 | + | ||
| 217 | 233 | xSettingsSchemaUnref(x.GoPointer()) | |
| 218 | 234 | } | |
| 219 | 235 | ||
| @@ -226,6 +242,7 @@ type SettingsSchemaKey struct { | |||
| 226 | 242 | var xSettingsSchemaKeyGLibType func() types.GType | |
| 227 | 243 | ||
| 228 | 244 | func SettingsSchemaKeyGLibType() types.GType { | |
| 245 | + | core.LazyRegister(&xSettingsSchemaKeyGLibType, "GIO", "g_settings_schema_key_get_type", false) | |
| 229 | 246 | return xSettingsSchemaKeyGLibType() | |
| 230 | 247 | } | |
| 231 | 248 | ||
| @@ -248,6 +265,8 @@ var xSettingsSchemaKeyGetDefaultValue func(uintptr) uintptr | |||
| 248 | 265 | // Note that this is the default value according to the schema. System | |
| 249 | 266 | // administrator defaults and lockdown are not visible via this API. | |
| 250 | 267 | func (x *SettingsSchemaKey) GetDefaultValue() *glib.Variant { | |
| 268 | + | core.LazyRegister(&xSettingsSchemaKeyGetDefaultValue, "GIO", "g_settings_schema_key_get_default_value", false) | |
| 269 | + | ||
| 251 | 270 | cret := xSettingsSchemaKeyGetDefaultValue(x.GoPointer()) | |
| 252 | 271 | if cret == 0 { | |
| 253 | 272 | return nil | |
| @@ -272,6 +291,8 @@ var xSettingsSchemaKeyGetDescription func(uintptr) string | |||
| 272 | 291 | // function has to parse all of the source XML files in the schema | |
| 273 | 292 | // directory. | |
| 274 | 293 | func (x *SettingsSchemaKey) GetDescription() string { | |
| 294 | + | core.LazyRegister(&xSettingsSchemaKeyGetDescription, "GIO", "g_settings_schema_key_get_description", false) | |
| 295 | + | ||
| 275 | 296 | cret := xSettingsSchemaKeyGetDescription(x.GoPointer()) | |
| 276 | 297 | return cret | |
| 277 | 298 | } | |
| @@ -280,6 +301,8 @@ var xSettingsSchemaKeyGetName func(uintptr) string | |||
| 280 | 301 | ||
| 281 | 302 | // Gets the name of @key. | |
| 282 | 303 | func (x *SettingsSchemaKey) GetName() string { | |
| 304 | + | core.LazyRegister(&xSettingsSchemaKeyGetName, "GIO", "g_settings_schema_key_get_name", false) | |
| 305 | + | ||
| 283 | 306 | cret := xSettingsSchemaKeyGetName(x.GoPointer()) | |
| 284 | 307 | return cret | |
| 285 | 308 | } | |
| @@ -323,6 +346,8 @@ var xSettingsSchemaKeyGetRange func(uintptr) uintptr | |||
| 323 | 346 | // You should free the returned value with g_variant_unref() when it is | |
| 324 | 347 | // no longer needed. | |
| 325 | 348 | func (x *SettingsSchemaKey) GetRange() *glib.Variant { | |
| 349 | + | core.LazyRegister(&xSettingsSchemaKeyGetRange, "GIO", "g_settings_schema_key_get_range", false) | |
| 350 | + | ||
| 326 | 351 | cret := xSettingsSchemaKeyGetRange(x.GoPointer()) | |
| 327 | 352 | if cret == 0 { | |
| 328 | 353 | return nil | |
| @@ -346,6 +371,8 @@ var xSettingsSchemaKeyGetSummary func(uintptr) string | |||
| 346 | 371 | // function has to parse all of the source XML files in the schema | |
| 347 | 372 | // directory. | |
| 348 | 373 | func (x *SettingsSchemaKey) GetSummary() string { | |
| 374 | + | core.LazyRegister(&xSettingsSchemaKeyGetSummary, "GIO", "g_settings_schema_key_get_summary", false) | |
| 375 | + | ||
| 349 | 376 | cret := xSettingsSchemaKeyGetSummary(x.GoPointer()) | |
| 350 | 377 | return cret | |
| 351 | 378 | } | |
| @@ -354,6 +381,8 @@ var xSettingsSchemaKeyGetValueType func(uintptr) uintptr | |||
| 354 | 381 | ||
| 355 | 382 | // Gets the #GVariantType of @key. | |
| 356 | 383 | func (x *SettingsSchemaKey) GetValueType() *glib.VariantType { | |
| 384 | + | core.LazyRegister(&xSettingsSchemaKeyGetValueType, "GIO", "g_settings_schema_key_get_value_type", false) | |
| 385 | + | ||
| 357 | 386 | cret := xSettingsSchemaKeyGetValueType(x.GoPointer()) | |
| 358 | 387 | if cret == 0 { | |
| 359 | 388 | return nil | |
| @@ -369,6 +398,8 @@ var xSettingsSchemaKeyRangeCheck func(uintptr, *glib.Variant) bool | |||
| 369 | 398 | // It is a programmer error if @value is not of the correct type — you | |
| 370 | 399 | // must check for this first. | |
| 371 | 400 | func (x *SettingsSchemaKey) RangeCheck(ValueVar *glib.Variant) bool { | |
| 401 | + | core.LazyRegister(&xSettingsSchemaKeyRangeCheck, "GIO", "g_settings_schema_key_range_check", false) | |
| 402 | + | ||
| 372 | 403 | cret := xSettingsSchemaKeyRangeCheck(x.GoPointer(), ValueVar) | |
| 373 | 404 | return cret | |
| 374 | 405 | } | |
| @@ -377,6 +408,8 @@ var xSettingsSchemaKeyRef func(uintptr) uintptr | |||
| 377 | 408 | ||
| 378 | 409 | // Increase the reference count of @key, returning a new reference. | |
| 379 | 410 | func (x *SettingsSchemaKey) Ref() *SettingsSchemaKey { | |
| 411 | + | core.LazyRegister(&xSettingsSchemaKeyRef, "GIO", "g_settings_schema_key_ref", false) | |
| 412 | + | ||
| 380 | 413 | cret := xSettingsSchemaKeyRef(x.GoPointer()) | |
| 381 | 414 | if cret == 0 { | |
| 382 | 415 | return nil | |
| @@ -388,6 +421,8 @@ var xSettingsSchemaKeyUnref func(uintptr) | |||
| 388 | 421 | ||
| 389 | 422 | // Decrease the reference count of @key, possibly freeing it. | |
| 390 | 423 | func (x *SettingsSchemaKey) Unref() { | |
| 424 | + | core.LazyRegister(&xSettingsSchemaKeyUnref, "GIO", "g_settings_schema_key_unref", false) | |
| 425 | + | ||
| 391 | 426 | xSettingsSchemaKeyUnref(x.GoPointer()) | |
| 392 | 427 | } | |
| 393 | 428 | ||
| @@ -399,6 +434,7 @@ type SettingsSchemaSource struct { | |||
| 399 | 434 | var xSettingsSchemaSourceGLibType func() types.GType | |
| 400 | 435 | ||
| 401 | 436 | func SettingsSchemaSourceGLibType() types.GType { | |
| 437 | + | core.LazyRegister(&xSettingsSchemaSourceGLibType, "GIO", "g_settings_schema_source_get_type", false) | |
| 402 | 438 | return xSettingsSchemaSourceGLibType() | |
| 403 | 439 | } | |
| 404 | 440 | ||
| @@ -448,6 +484,7 @@ var xNewSettingsSchemaSourceFromDirectory func(string, *SettingsSchemaSource, bo | |||
| 448 | 484 | // @parent should probably be given as the default schema source, as | |
| 449 | 485 | // returned by g_settings_schema_source_get_default(). | |
| 450 | 486 | func NewSettingsSchemaSourceFromDirectory(DirectoryVar string, ParentVar *SettingsSchemaSource, TrustedVar bool) (*SettingsSchemaSource, error) { | |
| 487 | + | core.LazyRegister(&xNewSettingsSchemaSourceFromDirectory, "GIO", "g_settings_schema_source_new_from_directory", false) | |
| 451 | 488 | var cerr *glib.Error | |
| 452 | 489 | ||
| 453 | 490 | cret := xNewSettingsSchemaSourceFromDirectory(DirectoryVar, ParentVar, TrustedVar, &cerr) | |
| @@ -475,6 +512,8 @@ var xSettingsSchemaSourceListSchemas func(uintptr, bool, *[]string, *[]string) | |||
| 475 | 512 | // Do not call this function from normal programs. This is designed for | |
| 476 | 513 | // use by database editors, commandline tools, etc. | |
| 477 | 514 | func (x *SettingsSchemaSource) ListSchemas(RecursiveVar bool, NonRelocatableVar *[]string, RelocatableVar *[]string) { | |
| 515 | + | core.LazyRegister(&xSettingsSchemaSourceListSchemas, "GIO", "g_settings_schema_source_list_schemas", false) | |
| 516 | + | ||
| 478 | 517 | xSettingsSchemaSourceListSchemas(x.GoPointer(), RecursiveVar, NonRelocatableVar, RelocatableVar) | |
| 479 | 518 | } | |
| 480 | 519 | ||
| @@ -491,6 +530,8 @@ var xSettingsSchemaSourceLookup func(uintptr, string, bool) uintptr | |||
| 491 | 530 | // | |
| 492 | 531 | // If the schema isn't found, %NULL is returned. | |
| 493 | 532 | func (x *SettingsSchemaSource) Lookup(SchemaIdVar string, RecursiveVar bool) *SettingsSchema { | |
| 533 | + | core.LazyRegister(&xSettingsSchemaSourceLookup, "GIO", "g_settings_schema_source_lookup", false) | |
| 534 | + | ||
| 494 | 535 | cret := xSettingsSchemaSourceLookup(x.GoPointer(), SchemaIdVar, RecursiveVar) | |
| 495 | 536 | if cret == 0 { | |
| 496 | 537 | return nil | |
| @@ -502,6 +543,8 @@ var xSettingsSchemaSourceRef func(uintptr) uintptr | |||
| 502 | 543 | ||
| 503 | 544 | // Increase the reference count of @source, returning a new reference. | |
| 504 | 545 | func (x *SettingsSchemaSource) Ref() *SettingsSchemaSource { | |
| 546 | + | core.LazyRegister(&xSettingsSchemaSourceRef, "GIO", "g_settings_schema_source_ref", false) | |
| 547 | + | ||
| 505 | 548 | cret := xSettingsSchemaSourceRef(x.GoPointer()) | |
| 506 | 549 | if cret == 0 { | |
| 507 | 550 | return nil | |
| @@ -513,6 +556,8 @@ var xSettingsSchemaSourceUnref func(uintptr) | |||
| 513 | 556 | ||
| 514 | 557 | // Decrease the reference count of @source, possibly freeing it. | |
| 515 | 558 | func (x *SettingsSchemaSource) Unref() { | |
| 559 | + | core.LazyRegister(&xSettingsSchemaSourceUnref, "GIO", "g_settings_schema_source_unref", false) | |
| 560 | + | ||
| 516 | 561 | xSettingsSchemaSourceUnref(x.GoPointer()) | |
| 517 | 562 | } | |
| 518 | 563 | ||
| @@ -532,6 +577,8 @@ var xSettingsSchemaSourceGetDefault func() uintptr | |||
| 532 | 577 | // lookups performed against the default source should probably be done | |
| 533 | 578 | // recursively. | |
| 534 | 579 | func SettingsSchemaSourceGetDefault() *SettingsSchemaSource { | |
| 580 | + | core.LazyRegister(&xSettingsSchemaSourceGetDefault, "GIO", "g_settings_schema_source_get_default", false) | |
| 581 | + | ||
| 535 | 582 | cret := xSettingsSchemaSourceGetDefault() | |
| 536 | 583 | if cret == 0 { | |
| 537 | 584 | return nil | |
| @@ -542,46 +589,4 @@ func SettingsSchemaSourceGetDefault() *SettingsSchemaSource { | |||
| 542 | 589 | func init() { | |
| 543 | 590 | core.SetPackageName("GIO", "gio-2.0") | |
| 544 | 591 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | |
| 545 | - | var libs []uintptr | |
| 546 | - | for _, libPath := range core.GetPaths("GIO") { | |
| 547 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 548 | - | if err != nil { | |
| 549 | - | panic(err) | |
| 550 | - | } | |
| 551 | - | libs = append(libs, lib) | |
| 552 | - | } | |
| 553 | - | ||
| 554 | - | core.PuregoSafeRegister(&xSettingsSchemaSourceGetDefault, libs, "g_settings_schema_source_get_default") | |
| 555 | - | ||
| 556 | - | core.PuregoSafeRegister(&xSettingsSchemaGLibType, libs, "g_settings_schema_get_type") | |
| 557 | - | ||
| 558 | - | core.PuregoSafeRegister(&xSettingsSchemaGetId, libs, "g_settings_schema_get_id") | |
| 559 | - | core.PuregoSafeRegister(&xSettingsSchemaGetKey, libs, "g_settings_schema_get_key") | |
| 560 | - | core.PuregoSafeRegister(&xSettingsSchemaGetPath, libs, "g_settings_schema_get_path") | |
| 561 | - | core.PuregoSafeRegister(&xSettingsSchemaHasKey, libs, "g_settings_schema_has_key") | |
| 562 | - | core.PuregoSafeRegister(&xSettingsSchemaListChildren, libs, "g_settings_schema_list_children") | |
| 563 | - | core.PuregoSafeRegister(&xSettingsSchemaListKeys, libs, "g_settings_schema_list_keys") | |
| 564 | - | core.PuregoSafeRegister(&xSettingsSchemaRef, libs, "g_settings_schema_ref") | |
| 565 | - | core.PuregoSafeRegister(&xSettingsSchemaUnref, libs, "g_settings_schema_unref") | |
| 566 | - | ||
| 567 | - | core.PuregoSafeRegister(&xSettingsSchemaKeyGLibType, libs, "g_settings_schema_key_get_type") | |
| 568 | - | ||
| 569 | - | core.PuregoSafeRegister(&xSettingsSchemaKeyGetDefaultValue, libs, "g_settings_schema_key_get_default_value") | |
| 570 | - | core.PuregoSafeRegister(&xSettingsSchemaKeyGetDescription, libs, "g_settings_schema_key_get_description") | |
| 571 | - | core.PuregoSafeRegister(&xSettingsSchemaKeyGetName, libs, "g_settings_schema_key_get_name") | |
| 572 | - | core.PuregoSafeRegister(&xSettingsSchemaKeyGetRange, libs, "g_settings_schema_key_get_range") | |
| 573 | - | core.PuregoSafeRegister(&xSettingsSchemaKeyGetSummary, libs, "g_settings_schema_key_get_summary") | |
| 574 | - | core.PuregoSafeRegister(&xSettingsSchemaKeyGetValueType, libs, "g_settings_schema_key_get_value_type") | |
| 575 | - | core.PuregoSafeRegister(&xSettingsSchemaKeyRangeCheck, libs, "g_settings_schema_key_range_check") | |
| 576 | - | core.PuregoSafeRegister(&xSettingsSchemaKeyRef, libs, "g_settings_schema_key_ref") | |
| 577 | - | core.PuregoSafeRegister(&xSettingsSchemaKeyUnref, libs, "g_settings_schema_key_unref") | |
| 578 | - | ||
| 579 | - | core.PuregoSafeRegister(&xSettingsSchemaSourceGLibType, libs, "g_settings_schema_source_get_type") | |
| 580 | - | ||
| 581 | - | core.PuregoSafeRegister(&xNewSettingsSchemaSourceFromDirectory, libs, "g_settings_schema_source_new_from_directory") | |
| 582 | - | ||
| 583 | - | core.PuregoSafeRegister(&xSettingsSchemaSourceListSchemas, libs, "g_settings_schema_source_list_schemas") | |
| 584 | - | core.PuregoSafeRegister(&xSettingsSchemaSourceLookup, libs, "g_settings_schema_source_lookup") | |
| 585 | - | core.PuregoSafeRegister(&xSettingsSchemaSourceRef, libs, "g_settings_schema_source_ref") | |
| 586 | - | core.PuregoSafeRegister(&xSettingsSchemaSourceUnref, libs, "g_settings_schema_source_unref") | |
| 587 | 592 | } | |
| @@ -5,7 +5,6 @@ import ( | |||||
| 5 | "structs" | 5 | "structs" | ||
| 6 | "unsafe" | 6 | "unsafe" | ||
| 7 | 7 | ||||
| 8 | - | "github.com/bnema/purego" | |||
| 9 | "github.com/bnema/puregotk/pkg/core" | 8 | "github.com/bnema/puregotk/pkg/core" | ||
| 10 | "github.com/bnema/puregotk/v4/glib" | 9 | "github.com/bnema/puregotk/v4/glib" | ||
| 11 | "github.com/bnema/puregotk/v4/gobject/types" | 10 | "github.com/bnema/puregotk/v4/gobject/types" | ||
| @@ -115,6 +114,7 @@ type SettingsSchema struct { | |||||
| 115 | var xSettingsSchemaGLibType func() types.GType | 114 | var xSettingsSchemaGLibType func() types.GType | ||
| 116 | 115 | ||||
| 117 | func SettingsSchemaGLibType() types.GType { | 116 | func SettingsSchemaGLibType() types.GType { | ||
| 117 | + | core.LazyRegister(&xSettingsSchemaGLibType, "GIO", "g_settings_schema_get_type", false) | |||
| 118 | return xSettingsSchemaGLibType() | 118 | return xSettingsSchemaGLibType() | ||
| 119 | } | 119 | } | ||
| 120 | 120 | ||||
| @@ -134,6 +134,8 @@ var xSettingsSchemaGetId func(uintptr) string | |||||
| 134 | 134 | ||||
| 135 | // Get the ID of @schema. | 135 | // Get the ID of @schema. | ||
| 136 | func (x *SettingsSchema) GetId() string { | 136 | func (x *SettingsSchema) GetId() string { | ||
| 137 | + | core.LazyRegister(&xSettingsSchemaGetId, "GIO", "g_settings_schema_get_id", false) | |||
| 138 | + | ||||
| 137 | cret := xSettingsSchemaGetId(x.GoPointer()) | 139 | cret := xSettingsSchemaGetId(x.GoPointer()) | ||
| 138 | return cret | 140 | return cret | ||
| 139 | } | 141 | } | ||
| @@ -145,6 +147,8 @@ var xSettingsSchemaGetKey func(uintptr, string) uintptr | |||||
| 145 | // It is a programmer error to request a key that does not exist. See | 147 | // It is a programmer error to request a key that does not exist. See | ||
| 146 | // g_settings_schema_list_keys(). | 148 | // g_settings_schema_list_keys(). | ||
| 147 | func (x *SettingsSchema) GetKey(NameVar string) *SettingsSchemaKey { | 149 | func (x *SettingsSchema) GetKey(NameVar string) *SettingsSchemaKey { | ||
| 150 | + | core.LazyRegister(&xSettingsSchemaGetKey, "GIO", "g_settings_schema_get_key", false) | |||
| 151 | + | ||||
| 148 | cret := xSettingsSchemaGetKey(x.GoPointer(), NameVar) | 152 | cret := xSettingsSchemaGetKey(x.GoPointer(), NameVar) | ||
| 149 | if cret == 0 { | 153 | if cret == 0 { | ||
| 150 | return nil | 154 | return nil | ||
| @@ -164,6 +168,8 @@ var xSettingsSchemaGetPath func(uintptr) string | |||||
| 164 | // therefore describe multiple sets of keys at different locations. For | 168 | // therefore describe multiple sets of keys at different locations. For | ||
| 165 | // relocatable schemas, this function will return %NULL. | 169 | // relocatable schemas, this function will return %NULL. | ||
| 166 | func (x *SettingsSchema) GetPath() string { | 170 | func (x *SettingsSchema) GetPath() string { | ||
| 171 | + | core.LazyRegister(&xSettingsSchemaGetPath, "GIO", "g_settings_schema_get_path", false) | |||
| 172 | + | ||||
| 167 | cret := xSettingsSchemaGetPath(x.GoPointer()) | 173 | cret := xSettingsSchemaGetPath(x.GoPointer()) | ||
| 168 | return cret | 174 | return cret | ||
| 169 | } | 175 | } | ||
| @@ -172,6 +178,8 @@ var xSettingsSchemaHasKey func(uintptr, string) bool | |||||
| 172 | 178 | ||||
| 173 | // Checks if @schema has a key named @name. | 179 | // Checks if @schema has a key named @name. | ||
| 174 | func (x *SettingsSchema) HasKey(NameVar string) bool { | 180 | func (x *SettingsSchema) HasKey(NameVar string) bool { | ||
| 181 | + | core.LazyRegister(&xSettingsSchemaHasKey, "GIO", "g_settings_schema_has_key", false) | |||
| 182 | + | ||||
| 175 | cret := xSettingsSchemaHasKey(x.GoPointer(), NameVar) | 183 | cret := xSettingsSchemaHasKey(x.GoPointer(), NameVar) | ||
| 176 | return cret | 184 | return cret | ||
| 177 | } | 185 | } | ||
| @@ -183,6 +191,8 @@ var xSettingsSchemaListChildren func(uintptr) []string | |||||
| 183 | // You should free the return value with g_strfreev() when you are done | 191 | // You should free the return value with g_strfreev() when you are done | ||
| 184 | // with it. | 192 | // with it. | ||
| 185 | func (x *SettingsSchema) ListChildren() []string { | 193 | func (x *SettingsSchema) ListChildren() []string { | ||
| 194 | + | core.LazyRegister(&xSettingsSchemaListChildren, "GIO", "g_settings_schema_list_children", false) | |||
| 195 | + | ||||
| 186 | cret := xSettingsSchemaListChildren(x.GoPointer()) | 196 | cret := xSettingsSchemaListChildren(x.GoPointer()) | ||
| 187 | return cret | 197 | return cret | ||
| 188 | } | 198 | } | ||
| @@ -195,6 +205,8 @@ var xSettingsSchemaListKeys func(uintptr) []string | |||||
| 195 | // (since you should already know what keys are in your schema). This | 205 | // (since you should already know what keys are in your schema). This | ||
| 196 | // function is intended for introspection reasons. | 206 | // function is intended for introspection reasons. | ||
| 197 | func (x *SettingsSchema) ListKeys() []string { | 207 | func (x *SettingsSchema) ListKeys() []string { | ||
| 208 | + | core.LazyRegister(&xSettingsSchemaListKeys, "GIO", "g_settings_schema_list_keys", false) | |||
| 209 | + | ||||
| 198 | cret := xSettingsSchemaListKeys(x.GoPointer()) | 210 | cret := xSettingsSchemaListKeys(x.GoPointer()) | ||
| 199 | return cret | 211 | return cret | ||
| 200 | } | 212 | } | ||
| @@ -203,6 +215,8 @@ var xSettingsSchemaRef func(uintptr) uintptr | |||||
| 203 | 215 | ||||
| 204 | // Increase the reference count of @schema, returning a new reference. | 216 | // Increase the reference count of @schema, returning a new reference. | ||
| 205 | func (x *SettingsSchema) Ref() *SettingsSchema { | 217 | func (x *SettingsSchema) Ref() *SettingsSchema { | ||
| 218 | + | core.LazyRegister(&xSettingsSchemaRef, "GIO", "g_settings_schema_ref", false) | |||
| 219 | + | ||||
| 206 | cret := xSettingsSchemaRef(x.GoPointer()) | 220 | cret := xSettingsSchemaRef(x.GoPointer()) | ||
| 207 | if cret == 0 { | 221 | if cret == 0 { | ||
| 208 | return nil | 222 | return nil | ||
| @@ -214,6 +228,8 @@ var xSettingsSchemaUnref func(uintptr) | |||||
| 214 | 228 | ||||
| 215 | // Decrease the reference count of @schema, possibly freeing it. | 229 | // Decrease the reference count of @schema, possibly freeing it. | ||
| 216 | func (x *SettingsSchema) Unref() { | 230 | func (x *SettingsSchema) Unref() { | ||
| 231 | + | core.LazyRegister(&xSettingsSchemaUnref, "GIO", "g_settings_schema_unref", false) | |||
| 232 | + | ||||
| 217 | xSettingsSchemaUnref(x.GoPointer()) | 233 | xSettingsSchemaUnref(x.GoPointer()) | ||
| 218 | } | 234 | } | ||
| 219 | 235 | ||||
| @@ -226,6 +242,7 @@ type SettingsSchemaKey struct { | |||||
| 226 | var xSettingsSchemaKeyGLibType func() types.GType | 242 | var xSettingsSchemaKeyGLibType func() types.GType | ||
| 227 | 243 | ||||
| 228 | func SettingsSchemaKeyGLibType() types.GType { | 244 | func SettingsSchemaKeyGLibType() types.GType { | ||
| 245 | + | core.LazyRegister(&xSettingsSchemaKeyGLibType, "GIO", "g_settings_schema_key_get_type", false) | |||
| 229 | return xSettingsSchemaKeyGLibType() | 246 | return xSettingsSchemaKeyGLibType() | ||
| 230 | } | 247 | } | ||
| 231 | 248 | ||||
| @@ -248,6 +265,8 @@ var xSettingsSchemaKeyGetDefaultValue func(uintptr) uintptr | |||||
| 248 | // Note that this is the default value according to the schema. System | 265 | // Note that this is the default value according to the schema. System | ||
| 249 | // administrator defaults and lockdown are not visible via this API. | 266 | // administrator defaults and lockdown are not visible via this API. | ||
| 250 | func (x *SettingsSchemaKey) GetDefaultValue() *glib.Variant { | 267 | func (x *SettingsSchemaKey) GetDefaultValue() *glib.Variant { | ||
| 268 | + | core.LazyRegister(&xSettingsSchemaKeyGetDefaultValue, "GIO", "g_settings_schema_key_get_default_value", false) | |||
| 269 | + | ||||
| 251 | cret := xSettingsSchemaKeyGetDefaultValue(x.GoPointer()) | 270 | cret := xSettingsSchemaKeyGetDefaultValue(x.GoPointer()) | ||
| 252 | if cret == 0 { | 271 | if cret == 0 { | ||
| 253 | return nil | 272 | return nil | ||
| @@ -272,6 +291,8 @@ var xSettingsSchemaKeyGetDescription func(uintptr) string | |||||
| 272 | // function has to parse all of the source XML files in the schema | 291 | // function has to parse all of the source XML files in the schema | ||
| 273 | // directory. | 292 | // directory. | ||
| 274 | func (x *SettingsSchemaKey) GetDescription() string { | 293 | func (x *SettingsSchemaKey) GetDescription() string { | ||
| 294 | + | core.LazyRegister(&xSettingsSchemaKeyGetDescription, "GIO", "g_settings_schema_key_get_description", false) | |||
| 295 | + | ||||
| 275 | cret := xSettingsSchemaKeyGetDescription(x.GoPointer()) | 296 | cret := xSettingsSchemaKeyGetDescription(x.GoPointer()) | ||
| 276 | return cret | 297 | return cret | ||
| 277 | } | 298 | } | ||
| @@ -280,6 +301,8 @@ var xSettingsSchemaKeyGetName func(uintptr) string | |||||
| 280 | 301 | ||||
| 281 | // Gets the name of @key. | 302 | // Gets the name of @key. | ||
| 282 | func (x *SettingsSchemaKey) GetName() string { | 303 | func (x *SettingsSchemaKey) GetName() string { | ||
| 304 | + | core.LazyRegister(&xSettingsSchemaKeyGetName, "GIO", "g_settings_schema_key_get_name", false) | |||
| 305 | + | ||||
| 283 | cret := xSettingsSchemaKeyGetName(x.GoPointer()) | 306 | cret := xSettingsSchemaKeyGetName(x.GoPointer()) | ||
| 284 | return cret | 307 | return cret | ||
| 285 | } | 308 | } | ||
| @@ -323,6 +346,8 @@ var xSettingsSchemaKeyGetRange func(uintptr) uintptr | |||||
| 323 | // You should free the returned value with g_variant_unref() when it is | 346 | // You should free the returned value with g_variant_unref() when it is | ||
| 324 | // no longer needed. | 347 | // no longer needed. | ||
| 325 | func (x *SettingsSchemaKey) GetRange() *glib.Variant { | 348 | func (x *SettingsSchemaKey) GetRange() *glib.Variant { | ||
| 349 | + | core.LazyRegister(&xSettingsSchemaKeyGetRange, "GIO", "g_settings_schema_key_get_range", false) | |||
| 350 | + | ||||
| 326 | cret := xSettingsSchemaKeyGetRange(x.GoPointer()) | 351 | cret := xSettingsSchemaKeyGetRange(x.GoPointer()) | ||
| 327 | if cret == 0 { | 352 | if cret == 0 { | ||
| 328 | return nil | 353 | return nil | ||
| @@ -346,6 +371,8 @@ var xSettingsSchemaKeyGetSummary func(uintptr) string | |||||
| 346 | // function has to parse all of the source XML files in the schema | 371 | // function has to parse all of the source XML files in the schema | ||
| 347 | // directory. | 372 | // directory. | ||
| 348 | func (x *SettingsSchemaKey) GetSummary() string { | 373 | func (x *SettingsSchemaKey) GetSummary() string { | ||
| 374 | + | core.LazyRegister(&xSettingsSchemaKeyGetSummary, "GIO", "g_settings_schema_key_get_summary", false) | |||
| 375 | + | ||||
| 349 | cret := xSettingsSchemaKeyGetSummary(x.GoPointer()) | 376 | cret := xSettingsSchemaKeyGetSummary(x.GoPointer()) | ||
| 350 | return cret | 377 | return cret | ||
| 351 | } | 378 | } | ||
| @@ -354,6 +381,8 @@ var xSettingsSchemaKeyGetValueType func(uintptr) uintptr | |||||
| 354 | 381 | ||||
| 355 | // Gets the #GVariantType of @key. | 382 | // Gets the #GVariantType of @key. | ||
| 356 | func (x *SettingsSchemaKey) GetValueType() *glib.VariantType { | 383 | func (x *SettingsSchemaKey) GetValueType() *glib.VariantType { | ||
| 384 | + | core.LazyRegister(&xSettingsSchemaKeyGetValueType, "GIO", "g_settings_schema_key_get_value_type", false) | |||
| 385 | + | ||||
| 357 | cret := xSettingsSchemaKeyGetValueType(x.GoPointer()) | 386 | cret := xSettingsSchemaKeyGetValueType(x.GoPointer()) | ||
| 358 | if cret == 0 { | 387 | if cret == 0 { | ||
| 359 | return nil | 388 | return nil | ||
| @@ -369,6 +398,8 @@ var xSettingsSchemaKeyRangeCheck func(uintptr, *glib.Variant) bool | |||||
| 369 | // It is a programmer error if @value is not of the correct type — you | 398 | // It is a programmer error if @value is not of the correct type — you | ||
| 370 | // must check for this first. | 399 | // must check for this first. | ||
| 371 | func (x *SettingsSchemaKey) RangeCheck(ValueVar *glib.Variant) bool { | 400 | func (x *SettingsSchemaKey) RangeCheck(ValueVar *glib.Variant) bool { | ||
| 401 | + | core.LazyRegister(&xSettingsSchemaKeyRangeCheck, "GIO", "g_settings_schema_key_range_check", false) | |||
| 402 | + | ||||
| 372 | cret := xSettingsSchemaKeyRangeCheck(x.GoPointer(), ValueVar) | 403 | cret := xSettingsSchemaKeyRangeCheck(x.GoPointer(), ValueVar) | ||
| 373 | return cret | 404 | return cret | ||
| 374 | } | 405 | } | ||
| @@ -377,6 +408,8 @@ var xSettingsSchemaKeyRef func(uintptr) uintptr | |||||
| 377 | 408 | ||||
| 378 | // Increase the reference count of @key, returning a new reference. | 409 | // Increase the reference count of @key, returning a new reference. | ||
| 379 | func (x *SettingsSchemaKey) Ref() *SettingsSchemaKey { | 410 | func (x *SettingsSchemaKey) Ref() *SettingsSchemaKey { | ||
| 411 | + | core.LazyRegister(&xSettingsSchemaKeyRef, "GIO", "g_settings_schema_key_ref", false) | |||
| 412 | + | ||||
| 380 | cret := xSettingsSchemaKeyRef(x.GoPointer()) | 413 | cret := xSettingsSchemaKeyRef(x.GoPointer()) | ||
| 381 | if cret == 0 { | 414 | if cret == 0 { | ||
| 382 | return nil | 415 | return nil | ||
| @@ -388,6 +421,8 @@ var xSettingsSchemaKeyUnref func(uintptr) | |||||
| 388 | 421 | ||||
| 389 | // Decrease the reference count of @key, possibly freeing it. | 422 | // Decrease the reference count of @key, possibly freeing it. | ||
| 390 | func (x *SettingsSchemaKey) Unref() { | 423 | func (x *SettingsSchemaKey) Unref() { | ||
| 424 | + | core.LazyRegister(&xSettingsSchemaKeyUnref, "GIO", "g_settings_schema_key_unref", false) | |||
| 425 | + | ||||
| 391 | xSettingsSchemaKeyUnref(x.GoPointer()) | 426 | xSettingsSchemaKeyUnref(x.GoPointer()) | ||
| 392 | } | 427 | } | ||
| 393 | 428 | ||||
| @@ -399,6 +434,7 @@ type SettingsSchemaSource struct { | |||||
| 399 | var xSettingsSchemaSourceGLibType func() types.GType | 434 | var xSettingsSchemaSourceGLibType func() types.GType | ||
| 400 | 435 | ||||
| 401 | func SettingsSchemaSourceGLibType() types.GType { | 436 | func SettingsSchemaSourceGLibType() types.GType { | ||
| 437 | + | core.LazyRegister(&xSettingsSchemaSourceGLibType, "GIO", "g_settings_schema_source_get_type", false) | |||
| 402 | return xSettingsSchemaSourceGLibType() | 438 | return xSettingsSchemaSourceGLibType() | ||
| 403 | } | 439 | } | ||
| 404 | 440 | ||||
| @@ -448,6 +484,7 @@ var xNewSettingsSchemaSourceFromDirectory func(string, *SettingsSchemaSource, bo | |||||
| 448 | // @parent should probably be given as the default schema source, as | 484 | // @parent should probably be given as the default schema source, as | ||
| 449 | // returned by g_settings_schema_source_get_default(). | 485 | // returned by g_settings_schema_source_get_default(). | ||
| 450 | func NewSettingsSchemaSourceFromDirectory(DirectoryVar string, ParentVar *SettingsSchemaSource, TrustedVar bool) (*SettingsSchemaSource, error) { | 486 | func NewSettingsSchemaSourceFromDirectory(DirectoryVar string, ParentVar *SettingsSchemaSource, TrustedVar bool) (*SettingsSchemaSource, error) { | ||
| 487 | + | core.LazyRegister(&xNewSettingsSchemaSourceFromDirectory, "GIO", "g_settings_schema_source_new_from_directory", false) | |||
| 451 | var cerr *glib.Error | 488 | var cerr *glib.Error | ||
| 452 | 489 | ||||
| 453 | cret := xNewSettingsSchemaSourceFromDirectory(DirectoryVar, ParentVar, TrustedVar, &cerr) | 490 | cret := xNewSettingsSchemaSourceFromDirectory(DirectoryVar, ParentVar, TrustedVar, &cerr) | ||
| @@ -475,6 +512,8 @@ var xSettingsSchemaSourceListSchemas func(uintptr, bool, *[]string, *[]string) | |||||
| 475 | // Do not call this function from normal programs. This is designed for | 512 | // Do not call this function from normal programs. This is designed for | ||
| 476 | // use by database editors, commandline tools, etc. | 513 | // use by database editors, commandline tools, etc. | ||
| 477 | func (x *SettingsSchemaSource) ListSchemas(RecursiveVar bool, NonRelocatableVar *[]string, RelocatableVar *[]string) { | 514 | func (x *SettingsSchemaSource) ListSchemas(RecursiveVar bool, NonRelocatableVar *[]string, RelocatableVar *[]string) { | ||
| 515 | + | core.LazyRegister(&xSettingsSchemaSourceListSchemas, "GIO", "g_settings_schema_source_list_schemas", false) | |||
| 516 | + | ||||
| 478 | xSettingsSchemaSourceListSchemas(x.GoPointer(), RecursiveVar, NonRelocatableVar, RelocatableVar) | 517 | xSettingsSchemaSourceListSchemas(x.GoPointer(), RecursiveVar, NonRelocatableVar, RelocatableVar) | ||
| 479 | } | 518 | } | ||
| 480 | 519 | ||||
| @@ -491,6 +530,8 @@ var xSettingsSchemaSourceLookup func(uintptr, string, bool) uintptr | |||||
| 491 | // | 530 | // | ||
| 492 | // If the schema isn't found, %NULL is returned. | 531 | // If the schema isn't found, %NULL is returned. | ||
| 493 | func (x *SettingsSchemaSource) Lookup(SchemaIdVar string, RecursiveVar bool) *SettingsSchema { | 532 | func (x *SettingsSchemaSource) Lookup(SchemaIdVar string, RecursiveVar bool) *SettingsSchema { | ||
| 533 | + | core.LazyRegister(&xSettingsSchemaSourceLookup, "GIO", "g_settings_schema_source_lookup", false) | |||
| 534 | + | ||||
| 494 | cret := xSettingsSchemaSourceLookup(x.GoPointer(), SchemaIdVar, RecursiveVar) | 535 | cret := xSettingsSchemaSourceLookup(x.GoPointer(), SchemaIdVar, RecursiveVar) | ||
| 495 | if cret == 0 { | 536 | if cret == 0 { | ||
| 496 | return nil | 537 | return nil | ||
| @@ -502,6 +543,8 @@ var xSettingsSchemaSourceRef func(uintptr) uintptr | |||||
| 502 | 543 | ||||
| 503 | // Increase the reference count of @source, returning a new reference. | 544 | // Increase the reference count of @source, returning a new reference. | ||
| 504 | func (x *SettingsSchemaSource) Ref() *SettingsSchemaSource { | 545 | func (x *SettingsSchemaSource) Ref() *SettingsSchemaSource { | ||
| 546 | + | core.LazyRegister(&xSettingsSchemaSourceRef, "GIO", "g_settings_schema_source_ref", false) | |||
| 547 | + | ||||
| 505 | cret := xSettingsSchemaSourceRef(x.GoPointer()) | 548 | cret := xSettingsSchemaSourceRef(x.GoPointer()) | ||
| 506 | if cret == 0 { | 549 | if cret == 0 { | ||
| 507 | return nil | 550 | return nil | ||
| @@ -513,6 +556,8 @@ var xSettingsSchemaSourceUnref func(uintptr) | |||||
| 513 | 556 | ||||
| 514 | // Decrease the reference count of @source, possibly freeing it. | 557 | // Decrease the reference count of @source, possibly freeing it. | ||
| 515 | func (x *SettingsSchemaSource) Unref() { | 558 | func (x *SettingsSchemaSource) Unref() { | ||
| 559 | + | core.LazyRegister(&xSettingsSchemaSourceUnref, "GIO", "g_settings_schema_source_unref", false) | |||
| 560 | + | ||||
| 516 | xSettingsSchemaSourceUnref(x.GoPointer()) | 561 | xSettingsSchemaSourceUnref(x.GoPointer()) | ||
| 517 | } | 562 | } | ||
| 518 | 563 | ||||
| @@ -532,6 +577,8 @@ var xSettingsSchemaSourceGetDefault func() uintptr | |||||
| 532 | // lookups performed against the default source should probably be done | 577 | // lookups performed against the default source should probably be done | ||
| 533 | // recursively. | 578 | // recursively. | ||
| 534 | func SettingsSchemaSourceGetDefault() *SettingsSchemaSource { | 579 | func SettingsSchemaSourceGetDefault() *SettingsSchemaSource { | ||
| 580 | + | core.LazyRegister(&xSettingsSchemaSourceGetDefault, "GIO", "g_settings_schema_source_get_default", false) | |||
| 581 | + | ||||
| 535 | cret := xSettingsSchemaSourceGetDefault() | 582 | cret := xSettingsSchemaSourceGetDefault() | ||
| 536 | if cret == 0 { | 583 | if cret == 0 { | ||
| 537 | return nil | 584 | return nil | ||
| @@ -542,46 +589,4 @@ func SettingsSchemaSourceGetDefault() *SettingsSchemaSource { | |||||
| 542 | func init() { | 589 | func init() { | ||
| 543 | core.SetPackageName("GIO", "gio-2.0") | 590 | core.SetPackageName("GIO", "gio-2.0") | ||
| 544 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | 591 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | ||
| 545 | - | var libs []uintptr | |||
| 546 | - | for _, libPath := range core.GetPaths("GIO") { | |||
| 547 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 548 | - | if err != nil { | |||
| 549 | - | panic(err) | |||
| 550 | - | } | |||
| 551 | - | libs = append(libs, lib) | |||
| 552 | - | } | |||
| 553 | - | ||||
| 554 | - | core.PuregoSafeRegister(&xSettingsSchemaSourceGetDefault, libs, "g_settings_schema_source_get_default") | |||
| 555 | - | ||||
| 556 | - | core.PuregoSafeRegister(&xSettingsSchemaGLibType, libs, "g_settings_schema_get_type") | |||
| 557 | - | ||||
| 558 | - | core.PuregoSafeRegister(&xSettingsSchemaGetId, libs, "g_settings_schema_get_id") | |||
| 559 | - | core.PuregoSafeRegister(&xSettingsSchemaGetKey, libs, "g_settings_schema_get_key") | |||
| 560 | - | core.PuregoSafeRegister(&xSettingsSchemaGetPath, libs, "g_settings_schema_get_path") | |||
| 561 | - | core.PuregoSafeRegister(&xSettingsSchemaHasKey, libs, "g_settings_schema_has_key") | |||
| 562 | - | core.PuregoSafeRegister(&xSettingsSchemaListChildren, libs, "g_settings_schema_list_children") | |||
| 563 | - | core.PuregoSafeRegister(&xSettingsSchemaListKeys, libs, "g_settings_schema_list_keys") | |||
| 564 | - | core.PuregoSafeRegister(&xSettingsSchemaRef, libs, "g_settings_schema_ref") | |||
| 565 | - | core.PuregoSafeRegister(&xSettingsSchemaUnref, libs, "g_settings_schema_unref") | |||
| 566 | - | ||||
| 567 | - | core.PuregoSafeRegister(&xSettingsSchemaKeyGLibType, libs, "g_settings_schema_key_get_type") | |||
| 568 | - | ||||
| 569 | - | core.PuregoSafeRegister(&xSettingsSchemaKeyGetDefaultValue, libs, "g_settings_schema_key_get_default_value") | |||
| 570 | - | core.PuregoSafeRegister(&xSettingsSchemaKeyGetDescription, libs, "g_settings_schema_key_get_description") | |||
| 571 | - | core.PuregoSafeRegister(&xSettingsSchemaKeyGetName, libs, "g_settings_schema_key_get_name") | |||
| 572 | - | core.PuregoSafeRegister(&xSettingsSchemaKeyGetRange, libs, "g_settings_schema_key_get_range") | |||
| 573 | - | core.PuregoSafeRegister(&xSettingsSchemaKeyGetSummary, libs, "g_settings_schema_key_get_summary") | |||
| 574 | - | core.PuregoSafeRegister(&xSettingsSchemaKeyGetValueType, libs, "g_settings_schema_key_get_value_type") | |||
| 575 | - | core.PuregoSafeRegister(&xSettingsSchemaKeyRangeCheck, libs, "g_settings_schema_key_range_check") | |||
| 576 | - | core.PuregoSafeRegister(&xSettingsSchemaKeyRef, libs, "g_settings_schema_key_ref") | |||
| 577 | - | core.PuregoSafeRegister(&xSettingsSchemaKeyUnref, libs, "g_settings_schema_key_unref") | |||
| 578 | - | ||||
| 579 | - | core.PuregoSafeRegister(&xSettingsSchemaSourceGLibType, libs, "g_settings_schema_source_get_type") | |||
| 580 | - | ||||
| 581 | - | core.PuregoSafeRegister(&xNewSettingsSchemaSourceFromDirectory, libs, "g_settings_schema_source_new_from_directory") | |||
| 582 | - | ||||
| 583 | - | core.PuregoSafeRegister(&xSettingsSchemaSourceListSchemas, libs, "g_settings_schema_source_list_schemas") | |||
| 584 | - | core.PuregoSafeRegister(&xSettingsSchemaSourceLookup, libs, "g_settings_schema_source_lookup") | |||
| 585 | - | core.PuregoSafeRegister(&xSettingsSchemaSourceRef, libs, "g_settings_schema_source_ref") | |||
| 586 | - | core.PuregoSafeRegister(&xSettingsSchemaSourceUnref, libs, "g_settings_schema_source_unref") | |||
| 587 | } | 592 | } | ||