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
| @@ -346,6 +346,7 @@ type ApplicationCommandLine struct { | |||
| 346 | 346 | var xApplicationCommandLineGLibType func() types.GType | |
| 347 | 347 | ||
| 348 | 348 | func ApplicationCommandLineGLibType() types.GType { | |
| 349 | + | core.LazyRegister(&xApplicationCommandLineGLibType, "GIO", "g_application_command_line_get_type", false) | |
| 349 | 350 | return xApplicationCommandLineGLibType() | |
| 350 | 351 | } | |
| 351 | 352 | ||
| @@ -364,6 +365,7 @@ var xApplicationCommandLineCreateFileForArg func(uintptr, string) uintptr | |||
| 364 | 365 | // resolves relative pathnames using the current working directory of | |
| 365 | 366 | // the invoking process rather than the local process. | |
| 366 | 367 | func (x *ApplicationCommandLine) CreateFileForArg(ArgVar string) *FileBase { | |
| 368 | + | core.LazyRegister(&xApplicationCommandLineCreateFileForArg, "GIO", "g_application_command_line_create_file_for_arg", false) | |
| 367 | 369 | var cls *FileBase | |
| 368 | 370 | ||
| 369 | 371 | cret := xApplicationCommandLineCreateFileForArg(x.GoPointer(), ArgVar) | |
| @@ -394,6 +396,8 @@ var xApplicationCommandLineDone func(uintptr) | |||
| 394 | 396 | // object is disposed — so you can omit the call in non-garbage collected | |
| 395 | 397 | // languages. | |
| 396 | 398 | func (x *ApplicationCommandLine) Done() { | |
| 399 | + | core.LazyRegister(&xApplicationCommandLineDone, "GIO", "g_application_command_line_done", false) | |
| 400 | + | ||
| 397 | 401 | xApplicationCommandLineDone(x.GoPointer()) | |
| 398 | 402 | } | |
| 399 | 403 | ||
| @@ -411,6 +415,8 @@ var xApplicationCommandLineGetArguments func(uintptr, *int) []string | |||
| 411 | 415 | // The return value is %NULL-terminated and should be freed using | |
| 412 | 416 | // g_strfreev(). | |
| 413 | 417 | func (x *ApplicationCommandLine) GetArguments(ArgcVar *int) []string { | |
| 418 | + | core.LazyRegister(&xApplicationCommandLineGetArguments, "GIO", "g_application_command_line_get_arguments", false) | |
| 419 | + | ||
| 414 | 420 | cret := xApplicationCommandLineGetArguments(x.GoPointer(), ArgcVar) | |
| 415 | 421 | return cret | |
| 416 | 422 | } | |
| @@ -426,6 +432,8 @@ var xApplicationCommandLineGetCwd func(uintptr) string | |||
| 426 | 432 | // The return value should not be modified or freed and is valid for as | |
| 427 | 433 | // long as @cmdline exists. | |
| 428 | 434 | func (x *ApplicationCommandLine) GetCwd() string { | |
| 435 | + | core.LazyRegister(&xApplicationCommandLineGetCwd, "GIO", "g_application_command_line_get_cwd", false) | |
| 436 | + | ||
| 429 | 437 | cret := xApplicationCommandLineGetCwd(x.GoPointer()) | |
| 430 | 438 | return cret | |
| 431 | 439 | } | |
| @@ -448,6 +456,8 @@ var xApplicationCommandLineGetEnviron func(uintptr) []string | |||
| 448 | 456 | // See g_application_command_line_getenv() if you are only interested | |
| 449 | 457 | // in the value of a single environment variable. | |
| 450 | 458 | func (x *ApplicationCommandLine) GetEnviron() []string { | |
| 459 | + | core.LazyRegister(&xApplicationCommandLineGetEnviron, "GIO", "g_application_command_line_get_environ", false) | |
| 460 | + | ||
| 451 | 461 | cret := xApplicationCommandLineGetEnviron(x.GoPointer()) | |
| 452 | 462 | return cret | |
| 453 | 463 | } | |
| @@ -457,6 +467,8 @@ var xApplicationCommandLineGetExitStatus func(uintptr) int | |||
| 457 | 467 | // Gets the exit status of @cmdline. See | |
| 458 | 468 | // g_application_command_line_set_exit_status() for more information. | |
| 459 | 469 | func (x *ApplicationCommandLine) GetExitStatus() int { | |
| 470 | + | core.LazyRegister(&xApplicationCommandLineGetExitStatus, "GIO", "g_application_command_line_get_exit_status", false) | |
| 471 | + | ||
| 460 | 472 | cret := xApplicationCommandLineGetExitStatus(x.GoPointer()) | |
| 461 | 473 | return cret | |
| 462 | 474 | } | |
| @@ -465,6 +477,8 @@ var xApplicationCommandLineGetIsRemote func(uintptr) bool | |||
| 465 | 477 | ||
| 466 | 478 | // Determines if @cmdline represents a remote invocation. | |
| 467 | 479 | func (x *ApplicationCommandLine) GetIsRemote() bool { | |
| 480 | + | core.LazyRegister(&xApplicationCommandLineGetIsRemote, "GIO", "g_application_command_line_get_is_remote", false) | |
| 481 | + | ||
| 468 | 482 | cret := xApplicationCommandLineGetIsRemote(x.GoPointer()) | |
| 469 | 483 | return cret | |
| 470 | 484 | } | |
| @@ -484,6 +498,8 @@ var xApplicationCommandLineGetOptionsDict func(uintptr) uintptr | |||
| 484 | 498 | // The data has been passed via an untrusted external process, so the types of | |
| 485 | 499 | // all values must be checked before being used. | |
| 486 | 500 | func (x *ApplicationCommandLine) GetOptionsDict() *glib.VariantDict { | |
| 501 | + | core.LazyRegister(&xApplicationCommandLineGetOptionsDict, "GIO", "g_application_command_line_get_options_dict", false) | |
| 502 | + | ||
| 487 | 503 | cret := xApplicationCommandLineGetOptionsDict(x.GoPointer()) | |
| 488 | 504 | if cret == 0 { | |
| 489 | 505 | return nil | |
| @@ -505,6 +521,8 @@ var xApplicationCommandLineGetPlatformData func(uintptr) uintptr | |||
| 505 | 521 | // | |
| 506 | 522 | // For local invocation, it will be %NULL. | |
| 507 | 523 | func (x *ApplicationCommandLine) GetPlatformData() *glib.Variant { | |
| 524 | + | core.LazyRegister(&xApplicationCommandLineGetPlatformData, "GIO", "g_application_command_line_get_platform_data", false) | |
| 525 | + | ||
| 508 | 526 | cret := xApplicationCommandLineGetPlatformData(x.GoPointer()) | |
| 509 | 527 | if cret == 0 { | |
| 510 | 528 | return nil | |
| @@ -525,6 +543,7 @@ var xApplicationCommandLineGetStdin func(uintptr) uintptr | |||
| 525 | 543 | // | |
| 526 | 544 | // You must only call this function once per commandline invocation. | |
| 527 | 545 | func (x *ApplicationCommandLine) GetStdin() *InputStream { | |
| 546 | + | core.LazyRegister(&xApplicationCommandLineGetStdin, "GIO", "g_application_command_line_get_stdin", false) | |
| 528 | 547 | var cls *InputStream | |
| 529 | 548 | ||
| 530 | 549 | cret := xApplicationCommandLineGetStdin(x.GoPointer()) | |
| @@ -551,6 +570,8 @@ var xApplicationCommandLineGetenv func(uintptr, string) string | |||
| 551 | 570 | // The return value should not be modified or freed and is valid for as | |
| 552 | 571 | // long as @cmdline exists. | |
| 553 | 572 | func (x *ApplicationCommandLine) Getenv(NameVar string) string { | |
| 573 | + | core.LazyRegister(&xApplicationCommandLineGetenv, "GIO", "g_application_command_line_getenv", false) | |
| 574 | + | ||
| 554 | 575 | cret := xApplicationCommandLineGetenv(x.GoPointer(), NameVar) | |
| 555 | 576 | return cret | |
| 556 | 577 | } | |
| @@ -564,6 +585,8 @@ var xApplicationCommandLinePrint func(uintptr, string, ...interface{}) | |||
| 564 | 585 | // g_print(). If @cmdline is remote then this is equivalent to calling | |
| 565 | 586 | // g_print() in the invoking process. | |
| 566 | 587 | func (x *ApplicationCommandLine) Print(FormatVar string, varArgs ...interface{}) { | |
| 588 | + | core.LazyRegister(&xApplicationCommandLinePrint, "GIO", "g_application_command_line_print", false) | |
| 589 | + | ||
| 567 | 590 | xApplicationCommandLinePrint(x.GoPointer(), FormatVar, varArgs...) | |
| 568 | 591 | } | |
| 569 | 592 | ||
| @@ -575,6 +598,8 @@ var xApplicationCommandLinePrintLiteral func(uintptr, string) | |||
| 575 | 598 | // format string. Use this function if @message contains text you don't have | |
| 576 | 599 | // control over, that could include `printf()` escape sequences. | |
| 577 | 600 | func (x *ApplicationCommandLine) PrintLiteral(MessageVar string) { | |
| 601 | + | core.LazyRegister(&xApplicationCommandLinePrintLiteral, "GIO", "g_application_command_line_print_literal", false) | |
| 602 | + | ||
| 578 | 603 | xApplicationCommandLinePrintLiteral(x.GoPointer(), MessageVar) | |
| 579 | 604 | } | |
| 580 | 605 | ||
| @@ -587,6 +612,8 @@ var xApplicationCommandLinePrinterr func(uintptr, string, ...interface{}) | |||
| 587 | 612 | // g_printerr(). If @cmdline is remote then this is equivalent to | |
| 588 | 613 | // calling g_printerr() in the invoking process. | |
| 589 | 614 | func (x *ApplicationCommandLine) Printerr(FormatVar string, varArgs ...interface{}) { | |
| 615 | + | core.LazyRegister(&xApplicationCommandLinePrinterr, "GIO", "g_application_command_line_printerr", false) | |
| 616 | + | ||
| 590 | 617 | xApplicationCommandLinePrinterr(x.GoPointer(), FormatVar, varArgs...) | |
| 591 | 618 | } | |
| 592 | 619 | ||
| @@ -598,6 +625,8 @@ var xApplicationCommandLinePrinterrLiteral func(uintptr, string) | |||
| 598 | 625 | // a `printf()`-style format string. Use this function if @message contains text | |
| 599 | 626 | // you don't have control over, that could include `printf()` escape sequences. | |
| 600 | 627 | func (x *ApplicationCommandLine) PrinterrLiteral(MessageVar string) { | |
| 628 | + | core.LazyRegister(&xApplicationCommandLinePrinterrLiteral, "GIO", "g_application_command_line_printerr_literal", false) | |
| 629 | + | ||
| 601 | 630 | xApplicationCommandLinePrinterrLiteral(x.GoPointer(), MessageVar) | |
| 602 | 631 | } | |
| 603 | 632 | ||
| @@ -628,6 +657,8 @@ var xApplicationCommandLineSetExitStatus func(uintptr, int) | |||
| 628 | 657 | // This method is a no-op if g_application_command_line_done() has | |
| 629 | 658 | // been called. | |
| 630 | 659 | func (x *ApplicationCommandLine) SetExitStatus(ExitStatusVar int) { | |
| 660 | + | core.LazyRegister(&xApplicationCommandLineSetExitStatus, "GIO", "g_application_command_line_set_exit_status", false) | |
| 661 | + | ||
| 631 | 662 | xApplicationCommandLineSetExitStatus(x.GoPointer(), ExitStatusVar) | |
| 632 | 663 | } | |
| 633 | 664 | ||
| @@ -681,31 +712,4 @@ func (x *ApplicationCommandLine) SetPropertyPlatformData(value uintptr) { | |||
| 681 | 712 | func init() { | |
| 682 | 713 | core.SetPackageName("GIO", "gio-2.0") | |
| 683 | 714 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | |
| 684 | - | var libs []uintptr | |
| 685 | - | for _, libPath := range core.GetPaths("GIO") { | |
| 686 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 687 | - | if err != nil { | |
| 688 | - | panic(err) | |
| 689 | - | } | |
| 690 | - | libs = append(libs, lib) | |
| 691 | - | } | |
| 692 | - | ||
| 693 | - | core.PuregoSafeRegister(&xApplicationCommandLineGLibType, libs, "g_application_command_line_get_type") | |
| 694 | - | ||
| 695 | - | core.PuregoSafeRegister(&xApplicationCommandLineCreateFileForArg, libs, "g_application_command_line_create_file_for_arg") | |
| 696 | - | core.PuregoSafeRegister(&xApplicationCommandLineDone, libs, "g_application_command_line_done") | |
| 697 | - | core.PuregoSafeRegister(&xApplicationCommandLineGetArguments, libs, "g_application_command_line_get_arguments") | |
| 698 | - | core.PuregoSafeRegister(&xApplicationCommandLineGetCwd, libs, "g_application_command_line_get_cwd") | |
| 699 | - | core.PuregoSafeRegister(&xApplicationCommandLineGetEnviron, libs, "g_application_command_line_get_environ") | |
| 700 | - | core.PuregoSafeRegister(&xApplicationCommandLineGetExitStatus, libs, "g_application_command_line_get_exit_status") | |
| 701 | - | core.PuregoSafeRegister(&xApplicationCommandLineGetIsRemote, libs, "g_application_command_line_get_is_remote") | |
| 702 | - | core.PuregoSafeRegister(&xApplicationCommandLineGetOptionsDict, libs, "g_application_command_line_get_options_dict") | |
| 703 | - | core.PuregoSafeRegister(&xApplicationCommandLineGetPlatformData, libs, "g_application_command_line_get_platform_data") | |
| 704 | - | core.PuregoSafeRegister(&xApplicationCommandLineGetStdin, libs, "g_application_command_line_get_stdin") | |
| 705 | - | core.PuregoSafeRegister(&xApplicationCommandLineGetenv, libs, "g_application_command_line_getenv") | |
| 706 | - | core.PuregoSafeRegister(&xApplicationCommandLinePrint, libs, "g_application_command_line_print") | |
| 707 | - | core.PuregoSafeRegister(&xApplicationCommandLinePrintLiteral, libs, "g_application_command_line_print_literal") | |
| 708 | - | core.PuregoSafeRegister(&xApplicationCommandLinePrinterr, libs, "g_application_command_line_printerr") | |
| 709 | - | core.PuregoSafeRegister(&xApplicationCommandLinePrinterrLiteral, libs, "g_application_command_line_printerr_literal") | |
| 710 | - | core.PuregoSafeRegister(&xApplicationCommandLineSetExitStatus, libs, "g_application_command_line_set_exit_status") | |
| 711 | 715 | } | |
| @@ -346,6 +346,7 @@ type ApplicationCommandLine struct { | |||||
| 346 | var xApplicationCommandLineGLibType func() types.GType | 346 | var xApplicationCommandLineGLibType func() types.GType | ||
| 347 | 347 | ||||
| 348 | func ApplicationCommandLineGLibType() types.GType { | 348 | func ApplicationCommandLineGLibType() types.GType { | ||
| 349 | + | core.LazyRegister(&xApplicationCommandLineGLibType, "GIO", "g_application_command_line_get_type", false) | |||
| 349 | return xApplicationCommandLineGLibType() | 350 | return xApplicationCommandLineGLibType() | ||
| 350 | } | 351 | } | ||
| 351 | 352 | ||||
| @@ -364,6 +365,7 @@ var xApplicationCommandLineCreateFileForArg func(uintptr, string) uintptr | |||||
| 364 | // resolves relative pathnames using the current working directory of | 365 | // resolves relative pathnames using the current working directory of | ||
| 365 | // the invoking process rather than the local process. | 366 | // the invoking process rather than the local process. | ||
| 366 | func (x *ApplicationCommandLine) CreateFileForArg(ArgVar string) *FileBase { | 367 | func (x *ApplicationCommandLine) CreateFileForArg(ArgVar string) *FileBase { | ||
| 368 | + | core.LazyRegister(&xApplicationCommandLineCreateFileForArg, "GIO", "g_application_command_line_create_file_for_arg", false) | |||
| 367 | var cls *FileBase | 369 | var cls *FileBase | ||
| 368 | 370 | ||||
| 369 | cret := xApplicationCommandLineCreateFileForArg(x.GoPointer(), ArgVar) | 371 | cret := xApplicationCommandLineCreateFileForArg(x.GoPointer(), ArgVar) | ||
| @@ -394,6 +396,8 @@ var xApplicationCommandLineDone func(uintptr) | |||||
| 394 | // object is disposed — so you can omit the call in non-garbage collected | 396 | // object is disposed — so you can omit the call in non-garbage collected | ||
| 395 | // languages. | 397 | // languages. | ||
| 396 | func (x *ApplicationCommandLine) Done() { | 398 | func (x *ApplicationCommandLine) Done() { | ||
| 399 | + | core.LazyRegister(&xApplicationCommandLineDone, "GIO", "g_application_command_line_done", false) | |||
| 400 | + | ||||
| 397 | xApplicationCommandLineDone(x.GoPointer()) | 401 | xApplicationCommandLineDone(x.GoPointer()) | ||
| 398 | } | 402 | } | ||
| 399 | 403 | ||||
| @@ -411,6 +415,8 @@ var xApplicationCommandLineGetArguments func(uintptr, *int) []string | |||||
| 411 | // The return value is %NULL-terminated and should be freed using | 415 | // The return value is %NULL-terminated and should be freed using | ||
| 412 | // g_strfreev(). | 416 | // g_strfreev(). | ||
| 413 | func (x *ApplicationCommandLine) GetArguments(ArgcVar *int) []string { | 417 | func (x *ApplicationCommandLine) GetArguments(ArgcVar *int) []string { | ||
| 418 | + | core.LazyRegister(&xApplicationCommandLineGetArguments, "GIO", "g_application_command_line_get_arguments", false) | |||
| 419 | + | ||||
| 414 | cret := xApplicationCommandLineGetArguments(x.GoPointer(), ArgcVar) | 420 | cret := xApplicationCommandLineGetArguments(x.GoPointer(), ArgcVar) | ||
| 415 | return cret | 421 | return cret | ||
| 416 | } | 422 | } | ||
| @@ -426,6 +432,8 @@ var xApplicationCommandLineGetCwd func(uintptr) string | |||||
| 426 | // The return value should not be modified or freed and is valid for as | 432 | // The return value should not be modified or freed and is valid for as | ||
| 427 | // long as @cmdline exists. | 433 | // long as @cmdline exists. | ||
| 428 | func (x *ApplicationCommandLine) GetCwd() string { | 434 | func (x *ApplicationCommandLine) GetCwd() string { | ||
| 435 | + | core.LazyRegister(&xApplicationCommandLineGetCwd, "GIO", "g_application_command_line_get_cwd", false) | |||
| 436 | + | ||||
| 429 | cret := xApplicationCommandLineGetCwd(x.GoPointer()) | 437 | cret := xApplicationCommandLineGetCwd(x.GoPointer()) | ||
| 430 | return cret | 438 | return cret | ||
| 431 | } | 439 | } | ||
| @@ -448,6 +456,8 @@ var xApplicationCommandLineGetEnviron func(uintptr) []string | |||||
| 448 | // See g_application_command_line_getenv() if you are only interested | 456 | // See g_application_command_line_getenv() if you are only interested | ||
| 449 | // in the value of a single environment variable. | 457 | // in the value of a single environment variable. | ||
| 450 | func (x *ApplicationCommandLine) GetEnviron() []string { | 458 | func (x *ApplicationCommandLine) GetEnviron() []string { | ||
| 459 | + | core.LazyRegister(&xApplicationCommandLineGetEnviron, "GIO", "g_application_command_line_get_environ", false) | |||
| 460 | + | ||||
| 451 | cret := xApplicationCommandLineGetEnviron(x.GoPointer()) | 461 | cret := xApplicationCommandLineGetEnviron(x.GoPointer()) | ||
| 452 | return cret | 462 | return cret | ||
| 453 | } | 463 | } | ||
| @@ -457,6 +467,8 @@ var xApplicationCommandLineGetExitStatus func(uintptr) int | |||||
| 457 | // Gets the exit status of @cmdline. See | 467 | // Gets the exit status of @cmdline. See | ||
| 458 | // g_application_command_line_set_exit_status() for more information. | 468 | // g_application_command_line_set_exit_status() for more information. | ||
| 459 | func (x *ApplicationCommandLine) GetExitStatus() int { | 469 | func (x *ApplicationCommandLine) GetExitStatus() int { | ||
| 470 | + | core.LazyRegister(&xApplicationCommandLineGetExitStatus, "GIO", "g_application_command_line_get_exit_status", false) | |||
| 471 | + | ||||
| 460 | cret := xApplicationCommandLineGetExitStatus(x.GoPointer()) | 472 | cret := xApplicationCommandLineGetExitStatus(x.GoPointer()) | ||
| 461 | return cret | 473 | return cret | ||
| 462 | } | 474 | } | ||
| @@ -465,6 +477,8 @@ var xApplicationCommandLineGetIsRemote func(uintptr) bool | |||||
| 465 | 477 | ||||
| 466 | // Determines if @cmdline represents a remote invocation. | 478 | // Determines if @cmdline represents a remote invocation. | ||
| 467 | func (x *ApplicationCommandLine) GetIsRemote() bool { | 479 | func (x *ApplicationCommandLine) GetIsRemote() bool { | ||
| 480 | + | core.LazyRegister(&xApplicationCommandLineGetIsRemote, "GIO", "g_application_command_line_get_is_remote", false) | |||
| 481 | + | ||||
| 468 | cret := xApplicationCommandLineGetIsRemote(x.GoPointer()) | 482 | cret := xApplicationCommandLineGetIsRemote(x.GoPointer()) | ||
| 469 | return cret | 483 | return cret | ||
| 470 | } | 484 | } | ||
| @@ -484,6 +498,8 @@ var xApplicationCommandLineGetOptionsDict func(uintptr) uintptr | |||||
| 484 | // The data has been passed via an untrusted external process, so the types of | 498 | // The data has been passed via an untrusted external process, so the types of | ||
| 485 | // all values must be checked before being used. | 499 | // all values must be checked before being used. | ||
| 486 | func (x *ApplicationCommandLine) GetOptionsDict() *glib.VariantDict { | 500 | func (x *ApplicationCommandLine) GetOptionsDict() *glib.VariantDict { | ||
| 501 | + | core.LazyRegister(&xApplicationCommandLineGetOptionsDict, "GIO", "g_application_command_line_get_options_dict", false) | |||
| 502 | + | ||||
| 487 | cret := xApplicationCommandLineGetOptionsDict(x.GoPointer()) | 503 | cret := xApplicationCommandLineGetOptionsDict(x.GoPointer()) | ||
| 488 | if cret == 0 { | 504 | if cret == 0 { | ||
| 489 | return nil | 505 | return nil | ||
| @@ -505,6 +521,8 @@ var xApplicationCommandLineGetPlatformData func(uintptr) uintptr | |||||
| 505 | // | 521 | // | ||
| 506 | // For local invocation, it will be %NULL. | 522 | // For local invocation, it will be %NULL. | ||
| 507 | func (x *ApplicationCommandLine) GetPlatformData() *glib.Variant { | 523 | func (x *ApplicationCommandLine) GetPlatformData() *glib.Variant { | ||
| 524 | + | core.LazyRegister(&xApplicationCommandLineGetPlatformData, "GIO", "g_application_command_line_get_platform_data", false) | |||
| 525 | + | ||||
| 508 | cret := xApplicationCommandLineGetPlatformData(x.GoPointer()) | 526 | cret := xApplicationCommandLineGetPlatformData(x.GoPointer()) | ||
| 509 | if cret == 0 { | 527 | if cret == 0 { | ||
| 510 | return nil | 528 | return nil | ||
| @@ -525,6 +543,7 @@ var xApplicationCommandLineGetStdin func(uintptr) uintptr | |||||
| 525 | // | 543 | // | ||
| 526 | // You must only call this function once per commandline invocation. | 544 | // You must only call this function once per commandline invocation. | ||
| 527 | func (x *ApplicationCommandLine) GetStdin() *InputStream { | 545 | func (x *ApplicationCommandLine) GetStdin() *InputStream { | ||
| 546 | + | core.LazyRegister(&xApplicationCommandLineGetStdin, "GIO", "g_application_command_line_get_stdin", false) | |||
| 528 | var cls *InputStream | 547 | var cls *InputStream | ||
| 529 | 548 | ||||
| 530 | cret := xApplicationCommandLineGetStdin(x.GoPointer()) | 549 | cret := xApplicationCommandLineGetStdin(x.GoPointer()) | ||
| @@ -551,6 +570,8 @@ var xApplicationCommandLineGetenv func(uintptr, string) string | |||||
| 551 | // The return value should not be modified or freed and is valid for as | 570 | // The return value should not be modified or freed and is valid for as | ||
| 552 | // long as @cmdline exists. | 571 | // long as @cmdline exists. | ||
| 553 | func (x *ApplicationCommandLine) Getenv(NameVar string) string { | 572 | func (x *ApplicationCommandLine) Getenv(NameVar string) string { | ||
| 573 | + | core.LazyRegister(&xApplicationCommandLineGetenv, "GIO", "g_application_command_line_getenv", false) | |||
| 574 | + | ||||
| 554 | cret := xApplicationCommandLineGetenv(x.GoPointer(), NameVar) | 575 | cret := xApplicationCommandLineGetenv(x.GoPointer(), NameVar) | ||
| 555 | return cret | 576 | return cret | ||
| 556 | } | 577 | } | ||
| @@ -564,6 +585,8 @@ var xApplicationCommandLinePrint func(uintptr, string, ...interface{}) | |||||
| 564 | // g_print(). If @cmdline is remote then this is equivalent to calling | 585 | // g_print(). If @cmdline is remote then this is equivalent to calling | ||
| 565 | // g_print() in the invoking process. | 586 | // g_print() in the invoking process. | ||
| 566 | func (x *ApplicationCommandLine) Print(FormatVar string, varArgs ...interface{}) { | 587 | func (x *ApplicationCommandLine) Print(FormatVar string, varArgs ...interface{}) { | ||
| 588 | + | core.LazyRegister(&xApplicationCommandLinePrint, "GIO", "g_application_command_line_print", false) | |||
| 589 | + | ||||
| 567 | xApplicationCommandLinePrint(x.GoPointer(), FormatVar, varArgs...) | 590 | xApplicationCommandLinePrint(x.GoPointer(), FormatVar, varArgs...) | ||
| 568 | } | 591 | } | ||
| 569 | 592 | ||||
| @@ -575,6 +598,8 @@ var xApplicationCommandLinePrintLiteral func(uintptr, string) | |||||
| 575 | // format string. Use this function if @message contains text you don't have | 598 | // format string. Use this function if @message contains text you don't have | ||
| 576 | // control over, that could include `printf()` escape sequences. | 599 | // control over, that could include `printf()` escape sequences. | ||
| 577 | func (x *ApplicationCommandLine) PrintLiteral(MessageVar string) { | 600 | func (x *ApplicationCommandLine) PrintLiteral(MessageVar string) { | ||
| 601 | + | core.LazyRegister(&xApplicationCommandLinePrintLiteral, "GIO", "g_application_command_line_print_literal", false) | |||
| 602 | + | ||||
| 578 | xApplicationCommandLinePrintLiteral(x.GoPointer(), MessageVar) | 603 | xApplicationCommandLinePrintLiteral(x.GoPointer(), MessageVar) | ||
| 579 | } | 604 | } | ||
| 580 | 605 | ||||
| @@ -587,6 +612,8 @@ var xApplicationCommandLinePrinterr func(uintptr, string, ...interface{}) | |||||
| 587 | // g_printerr(). If @cmdline is remote then this is equivalent to | 612 | // g_printerr(). If @cmdline is remote then this is equivalent to | ||
| 588 | // calling g_printerr() in the invoking process. | 613 | // calling g_printerr() in the invoking process. | ||
| 589 | func (x *ApplicationCommandLine) Printerr(FormatVar string, varArgs ...interface{}) { | 614 | func (x *ApplicationCommandLine) Printerr(FormatVar string, varArgs ...interface{}) { | ||
| 615 | + | core.LazyRegister(&xApplicationCommandLinePrinterr, "GIO", "g_application_command_line_printerr", false) | |||
| 616 | + | ||||
| 590 | xApplicationCommandLinePrinterr(x.GoPointer(), FormatVar, varArgs...) | 617 | xApplicationCommandLinePrinterr(x.GoPointer(), FormatVar, varArgs...) | ||
| 591 | } | 618 | } | ||
| 592 | 619 | ||||
| @@ -598,6 +625,8 @@ var xApplicationCommandLinePrinterrLiteral func(uintptr, string) | |||||
| 598 | // a `printf()`-style format string. Use this function if @message contains text | 625 | // a `printf()`-style format string. Use this function if @message contains text | ||
| 599 | // you don't have control over, that could include `printf()` escape sequences. | 626 | // you don't have control over, that could include `printf()` escape sequences. | ||
| 600 | func (x *ApplicationCommandLine) PrinterrLiteral(MessageVar string) { | 627 | func (x *ApplicationCommandLine) PrinterrLiteral(MessageVar string) { | ||
| 628 | + | core.LazyRegister(&xApplicationCommandLinePrinterrLiteral, "GIO", "g_application_command_line_printerr_literal", false) | |||
| 629 | + | ||||
| 601 | xApplicationCommandLinePrinterrLiteral(x.GoPointer(), MessageVar) | 630 | xApplicationCommandLinePrinterrLiteral(x.GoPointer(), MessageVar) | ||
| 602 | } | 631 | } | ||
| 603 | 632 | ||||
| @@ -628,6 +657,8 @@ var xApplicationCommandLineSetExitStatus func(uintptr, int) | |||||
| 628 | // This method is a no-op if g_application_command_line_done() has | 657 | // This method is a no-op if g_application_command_line_done() has | ||
| 629 | // been called. | 658 | // been called. | ||
| 630 | func (x *ApplicationCommandLine) SetExitStatus(ExitStatusVar int) { | 659 | func (x *ApplicationCommandLine) SetExitStatus(ExitStatusVar int) { | ||
| 660 | + | core.LazyRegister(&xApplicationCommandLineSetExitStatus, "GIO", "g_application_command_line_set_exit_status", false) | |||
| 661 | + | ||||
| 631 | xApplicationCommandLineSetExitStatus(x.GoPointer(), ExitStatusVar) | 662 | xApplicationCommandLineSetExitStatus(x.GoPointer(), ExitStatusVar) | ||
| 632 | } | 663 | } | ||
| 633 | 664 | ||||
| @@ -681,31 +712,4 @@ func (x *ApplicationCommandLine) SetPropertyPlatformData(value uintptr) { | |||||
| 681 | func init() { | 712 | func init() { | ||
| 682 | core.SetPackageName("GIO", "gio-2.0") | 713 | core.SetPackageName("GIO", "gio-2.0") | ||
| 683 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | 714 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | ||
| 684 | - | var libs []uintptr | |||
| 685 | - | for _, libPath := range core.GetPaths("GIO") { | |||
| 686 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 687 | - | if err != nil { | |||
| 688 | - | panic(err) | |||
| 689 | - | } | |||
| 690 | - | libs = append(libs, lib) | |||
| 691 | - | } | |||
| 692 | - | ||||
| 693 | - | core.PuregoSafeRegister(&xApplicationCommandLineGLibType, libs, "g_application_command_line_get_type") | |||
| 694 | - | ||||
| 695 | - | core.PuregoSafeRegister(&xApplicationCommandLineCreateFileForArg, libs, "g_application_command_line_create_file_for_arg") | |||
| 696 | - | core.PuregoSafeRegister(&xApplicationCommandLineDone, libs, "g_application_command_line_done") | |||
| 697 | - | core.PuregoSafeRegister(&xApplicationCommandLineGetArguments, libs, "g_application_command_line_get_arguments") | |||
| 698 | - | core.PuregoSafeRegister(&xApplicationCommandLineGetCwd, libs, "g_application_command_line_get_cwd") | |||
| 699 | - | core.PuregoSafeRegister(&xApplicationCommandLineGetEnviron, libs, "g_application_command_line_get_environ") | |||
| 700 | - | core.PuregoSafeRegister(&xApplicationCommandLineGetExitStatus, libs, "g_application_command_line_get_exit_status") | |||
| 701 | - | core.PuregoSafeRegister(&xApplicationCommandLineGetIsRemote, libs, "g_application_command_line_get_is_remote") | |||
| 702 | - | core.PuregoSafeRegister(&xApplicationCommandLineGetOptionsDict, libs, "g_application_command_line_get_options_dict") | |||
| 703 | - | core.PuregoSafeRegister(&xApplicationCommandLineGetPlatformData, libs, "g_application_command_line_get_platform_data") | |||
| 704 | - | core.PuregoSafeRegister(&xApplicationCommandLineGetStdin, libs, "g_application_command_line_get_stdin") | |||
| 705 | - | core.PuregoSafeRegister(&xApplicationCommandLineGetenv, libs, "g_application_command_line_getenv") | |||
| 706 | - | core.PuregoSafeRegister(&xApplicationCommandLinePrint, libs, "g_application_command_line_print") | |||
| 707 | - | core.PuregoSafeRegister(&xApplicationCommandLinePrintLiteral, libs, "g_application_command_line_print_literal") | |||
| 708 | - | core.PuregoSafeRegister(&xApplicationCommandLinePrinterr, libs, "g_application_command_line_printerr") | |||
| 709 | - | core.PuregoSafeRegister(&xApplicationCommandLinePrinterrLiteral, libs, "g_application_command_line_printerr_literal") | |||
| 710 | - | core.PuregoSafeRegister(&xApplicationCommandLineSetExitStatus, libs, "g_application_command_line_set_exit_status") | |||
| 711 | } | 715 | } | ||