Revert "chore(deps): pin puregotk nil-signal fix"
This reverts commit a161e348e2093172038390b0906448f0ae979a0d.
- commit
- 40378d5e4fd2372d054e49168ab2a6f67aedd0fd
- author
- brice · · 2026-07-14 17:59 UTC
- parent
- 8d647bb
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
905 files · +25263 -27842
M go.mod +1 -1
| @@ -11,7 +11,7 @@ require ( | |||
| 11 | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | |
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | |
| 14 | + | github.com/bnema/puregotk v0.7.0 | |
| 15 | 15 | github.com/charmbracelet/bubbles v1.0.0 | |
| 16 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 17 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -11,7 +11,7 @@ require ( | |||||
| 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | ||
| 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | ||
| 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | ||
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | 14 | + | github.com/bnema/puregotk v0.7.0 |
| 15 | github.com/charmbracelet/bubbles v1.0.0 | 15 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 16 | github.com/charmbracelet/bubbletea v1.3.10 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 17 | github.com/charmbracelet/lipgloss v1.1.0 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | ||
M go.sum +0 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +4 -197 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +0 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +64 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +62 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +29 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +47 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +27 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +25 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +26 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +38 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +37 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +37 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +33 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +38 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +48 -61 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +24 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +17 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +56 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +15 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +44 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +49 -60 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +38 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +33 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +29 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +27 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +39 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +34 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +30 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +21 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +44 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +24 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +28 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +30 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +32 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +87 -123 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +28 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +36 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +51 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +35 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +62 -78 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +22 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +46 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +46 -57 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/cairo/main.go +79 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +25 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +32 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +31 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +28 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +22 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +43 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +41 -53 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +28 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +24 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +1 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +118 -120 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +20 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +36 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +35 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +22 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +35 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmonitor.go +27 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpaintable.go +33 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +26 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +21 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +20 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +40 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +66 -157 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +25 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +16 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +72 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +32 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-core.go +0 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-io.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-loader.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-transform.go +1 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf.go +79 -102 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/main.go +17 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gaction.go +31 -59 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactiongroup.go +39 -96 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactionmap.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gappinfo.go +116 -244 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplication.go +55 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplicationcommandline.go +27 -31
| @@ -346,7 +346,6 @@ 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) | |
| 350 | 349 | return xApplicationCommandLineGLibType() | |
| 351 | 350 | } | |
| 352 | 351 | ||
| @@ -365,7 +364,6 @@ var xApplicationCommandLineCreateFileForArg func(uintptr, string) uintptr | |||
| 365 | 364 | // resolves relative pathnames using the current working directory of | |
| 366 | 365 | // the invoking process rather than the local process. | |
| 367 | 366 | func (x *ApplicationCommandLine) CreateFileForArg(ArgVar string) *FileBase { | |
| 368 | - | core.LazyRegister(&xApplicationCommandLineCreateFileForArg, "GIO", "g_application_command_line_create_file_for_arg", false) | |
| 369 | 367 | var cls *FileBase | |
| 370 | 368 | ||
| 371 | 369 | cret := xApplicationCommandLineCreateFileForArg(x.GoPointer(), ArgVar) | |
| @@ -396,8 +394,6 @@ var xApplicationCommandLineDone func(uintptr) | |||
| 396 | 394 | // object is disposed — so you can omit the call in non-garbage collected | |
| 397 | 395 | // languages. | |
| 398 | 396 | func (x *ApplicationCommandLine) Done() { | |
| 399 | - | core.LazyRegister(&xApplicationCommandLineDone, "GIO", "g_application_command_line_done", false) | |
| 400 | - | ||
| 401 | 397 | xApplicationCommandLineDone(x.GoPointer()) | |
| 402 | 398 | } | |
| 403 | 399 | ||
| @@ -415,8 +411,6 @@ var xApplicationCommandLineGetArguments func(uintptr, *int) []string | |||
| 415 | 411 | // The return value is %NULL-terminated and should be freed using | |
| 416 | 412 | // g_strfreev(). | |
| 417 | 413 | func (x *ApplicationCommandLine) GetArguments(ArgcVar *int) []string { | |
| 418 | - | core.LazyRegister(&xApplicationCommandLineGetArguments, "GIO", "g_application_command_line_get_arguments", false) | |
| 419 | - | ||
| 420 | 414 | cret := xApplicationCommandLineGetArguments(x.GoPointer(), ArgcVar) | |
| 421 | 415 | return cret | |
| 422 | 416 | } | |
| @@ -432,8 +426,6 @@ var xApplicationCommandLineGetCwd func(uintptr) string | |||
| 432 | 426 | // The return value should not be modified or freed and is valid for as | |
| 433 | 427 | // long as @cmdline exists. | |
| 434 | 428 | func (x *ApplicationCommandLine) GetCwd() string { | |
| 435 | - | core.LazyRegister(&xApplicationCommandLineGetCwd, "GIO", "g_application_command_line_get_cwd", false) | |
| 436 | - | ||
| 437 | 429 | cret := xApplicationCommandLineGetCwd(x.GoPointer()) | |
| 438 | 430 | return cret | |
| 439 | 431 | } | |
| @@ -456,8 +448,6 @@ var xApplicationCommandLineGetEnviron func(uintptr) []string | |||
| 456 | 448 | // See g_application_command_line_getenv() if you are only interested | |
| 457 | 449 | // in the value of a single environment variable. | |
| 458 | 450 | func (x *ApplicationCommandLine) GetEnviron() []string { | |
| 459 | - | core.LazyRegister(&xApplicationCommandLineGetEnviron, "GIO", "g_application_command_line_get_environ", false) | |
| 460 | - | ||
| 461 | 451 | cret := xApplicationCommandLineGetEnviron(x.GoPointer()) | |
| 462 | 452 | return cret | |
| 463 | 453 | } | |
| @@ -467,8 +457,6 @@ var xApplicationCommandLineGetExitStatus func(uintptr) int | |||
| 467 | 457 | // Gets the exit status of @cmdline. See | |
| 468 | 458 | // g_application_command_line_set_exit_status() for more information. | |
| 469 | 459 | func (x *ApplicationCommandLine) GetExitStatus() int { | |
| 470 | - | core.LazyRegister(&xApplicationCommandLineGetExitStatus, "GIO", "g_application_command_line_get_exit_status", false) | |
| 471 | - | ||
| 472 | 460 | cret := xApplicationCommandLineGetExitStatus(x.GoPointer()) | |
| 473 | 461 | return cret | |
| 474 | 462 | } | |
| @@ -477,8 +465,6 @@ var xApplicationCommandLineGetIsRemote func(uintptr) bool | |||
| 477 | 465 | ||
| 478 | 466 | // Determines if @cmdline represents a remote invocation. | |
| 479 | 467 | func (x *ApplicationCommandLine) GetIsRemote() bool { | |
| 480 | - | core.LazyRegister(&xApplicationCommandLineGetIsRemote, "GIO", "g_application_command_line_get_is_remote", false) | |
| 481 | - | ||
| 482 | 468 | cret := xApplicationCommandLineGetIsRemote(x.GoPointer()) | |
| 483 | 469 | return cret | |
| 484 | 470 | } | |
| @@ -498,8 +484,6 @@ var xApplicationCommandLineGetOptionsDict func(uintptr) uintptr | |||
| 498 | 484 | // The data has been passed via an untrusted external process, so the types of | |
| 499 | 485 | // all values must be checked before being used. | |
| 500 | 486 | func (x *ApplicationCommandLine) GetOptionsDict() *glib.VariantDict { | |
| 501 | - | core.LazyRegister(&xApplicationCommandLineGetOptionsDict, "GIO", "g_application_command_line_get_options_dict", false) | |
| 502 | - | ||
| 503 | 487 | cret := xApplicationCommandLineGetOptionsDict(x.GoPointer()) | |
| 504 | 488 | if cret == 0 { | |
| 505 | 489 | return nil | |
| @@ -521,8 +505,6 @@ var xApplicationCommandLineGetPlatformData func(uintptr) uintptr | |||
| 521 | 505 | // | |
| 522 | 506 | // For local invocation, it will be %NULL. | |
| 523 | 507 | func (x *ApplicationCommandLine) GetPlatformData() *glib.Variant { | |
| 524 | - | core.LazyRegister(&xApplicationCommandLineGetPlatformData, "GIO", "g_application_command_line_get_platform_data", false) | |
| 525 | - | ||
| 526 | 508 | cret := xApplicationCommandLineGetPlatformData(x.GoPointer()) | |
| 527 | 509 | if cret == 0 { | |
| 528 | 510 | return nil | |
| @@ -543,7 +525,6 @@ var xApplicationCommandLineGetStdin func(uintptr) uintptr | |||
| 543 | 525 | // | |
| 544 | 526 | // You must only call this function once per commandline invocation. | |
| 545 | 527 | func (x *ApplicationCommandLine) GetStdin() *InputStream { | |
| 546 | - | core.LazyRegister(&xApplicationCommandLineGetStdin, "GIO", "g_application_command_line_get_stdin", false) | |
| 547 | 528 | var cls *InputStream | |
| 548 | 529 | ||
| 549 | 530 | cret := xApplicationCommandLineGetStdin(x.GoPointer()) | |
| @@ -570,8 +551,6 @@ var xApplicationCommandLineGetenv func(uintptr, string) string | |||
| 570 | 551 | // The return value should not be modified or freed and is valid for as | |
| 571 | 552 | // long as @cmdline exists. | |
| 572 | 553 | func (x *ApplicationCommandLine) Getenv(NameVar string) string { | |
| 573 | - | core.LazyRegister(&xApplicationCommandLineGetenv, "GIO", "g_application_command_line_getenv", false) | |
| 574 | - | ||
| 575 | 554 | cret := xApplicationCommandLineGetenv(x.GoPointer(), NameVar) | |
| 576 | 555 | return cret | |
| 577 | 556 | } | |
| @@ -585,8 +564,6 @@ var xApplicationCommandLinePrint func(uintptr, string, ...interface{}) | |||
| 585 | 564 | // g_print(). If @cmdline is remote then this is equivalent to calling | |
| 586 | 565 | // g_print() in the invoking process. | |
| 587 | 566 | func (x *ApplicationCommandLine) Print(FormatVar string, varArgs ...interface{}) { | |
| 588 | - | core.LazyRegister(&xApplicationCommandLinePrint, "GIO", "g_application_command_line_print", false) | |
| 589 | - | ||
| 590 | 567 | xApplicationCommandLinePrint(x.GoPointer(), FormatVar, varArgs...) | |
| 591 | 568 | } | |
| 592 | 569 | ||
| @@ -598,8 +575,6 @@ var xApplicationCommandLinePrintLiteral func(uintptr, string) | |||
| 598 | 575 | // format string. Use this function if @message contains text you don't have | |
| 599 | 576 | // control over, that could include `printf()` escape sequences. | |
| 600 | 577 | func (x *ApplicationCommandLine) PrintLiteral(MessageVar string) { | |
| 601 | - | core.LazyRegister(&xApplicationCommandLinePrintLiteral, "GIO", "g_application_command_line_print_literal", false) | |
| 602 | - | ||
| 603 | 578 | xApplicationCommandLinePrintLiteral(x.GoPointer(), MessageVar) | |
| 604 | 579 | } | |
| 605 | 580 | ||
| @@ -612,8 +587,6 @@ var xApplicationCommandLinePrinterr func(uintptr, string, ...interface{}) | |||
| 612 | 587 | // g_printerr(). If @cmdline is remote then this is equivalent to | |
| 613 | 588 | // calling g_printerr() in the invoking process. | |
| 614 | 589 | func (x *ApplicationCommandLine) Printerr(FormatVar string, varArgs ...interface{}) { | |
| 615 | - | core.LazyRegister(&xApplicationCommandLinePrinterr, "GIO", "g_application_command_line_printerr", false) | |
| 616 | - | ||
| 617 | 590 | xApplicationCommandLinePrinterr(x.GoPointer(), FormatVar, varArgs...) | |
| 618 | 591 | } | |
| 619 | 592 | ||
| @@ -625,8 +598,6 @@ var xApplicationCommandLinePrinterrLiteral func(uintptr, string) | |||
| 625 | 598 | // a `printf()`-style format string. Use this function if @message contains text | |
| 626 | 599 | // you don't have control over, that could include `printf()` escape sequences. | |
| 627 | 600 | func (x *ApplicationCommandLine) PrinterrLiteral(MessageVar string) { | |
| 628 | - | core.LazyRegister(&xApplicationCommandLinePrinterrLiteral, "GIO", "g_application_command_line_printerr_literal", false) | |
| 629 | - | ||
| 630 | 601 | xApplicationCommandLinePrinterrLiteral(x.GoPointer(), MessageVar) | |
| 631 | 602 | } | |
| 632 | 603 | ||
| @@ -657,8 +628,6 @@ var xApplicationCommandLineSetExitStatus func(uintptr, int) | |||
| 657 | 628 | // This method is a no-op if g_application_command_line_done() has | |
| 658 | 629 | // been called. | |
| 659 | 630 | func (x *ApplicationCommandLine) SetExitStatus(ExitStatusVar int) { | |
| 660 | - | core.LazyRegister(&xApplicationCommandLineSetExitStatus, "GIO", "g_application_command_line_set_exit_status", false) | |
| 661 | - | ||
| 662 | 631 | xApplicationCommandLineSetExitStatus(x.GoPointer(), ExitStatusVar) | |
| 663 | 632 | } | |
| 664 | 633 | ||
| @@ -712,4 +681,31 @@ func (x *ApplicationCommandLine) SetPropertyPlatformData(value uintptr) { | |||
| 712 | 681 | func init() { | |
| 713 | 682 | core.SetPackageName("GIO", "gio-2.0") | |
| 714 | 683 | 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") | |
| 715 | 711 | } | |
| @@ -346,7 +346,6 @@ 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) | |||
| 350 | return xApplicationCommandLineGLibType() | 349 | return xApplicationCommandLineGLibType() | ||
| 351 | } | 350 | } | ||
| 352 | 351 | ||||
| @@ -365,7 +364,6 @@ var xApplicationCommandLineCreateFileForArg func(uintptr, string) uintptr | |||||
| 365 | // resolves relative pathnames using the current working directory of | 364 | // resolves relative pathnames using the current working directory of | ||
| 366 | // the invoking process rather than the local process. | 365 | // the invoking process rather than the local process. | ||
| 367 | func (x *ApplicationCommandLine) CreateFileForArg(ArgVar string) *FileBase { | 366 | func (x *ApplicationCommandLine) CreateFileForArg(ArgVar string) *FileBase { | ||
| 368 | - | core.LazyRegister(&xApplicationCommandLineCreateFileForArg, "GIO", "g_application_command_line_create_file_for_arg", false) | |||
| 369 | var cls *FileBase | 367 | var cls *FileBase | ||
| 370 | 368 | ||||
| 371 | cret := xApplicationCommandLineCreateFileForArg(x.GoPointer(), ArgVar) | 369 | cret := xApplicationCommandLineCreateFileForArg(x.GoPointer(), ArgVar) | ||
| @@ -396,8 +394,6 @@ var xApplicationCommandLineDone func(uintptr) | |||||
| 396 | // object is disposed — so you can omit the call in non-garbage collected | 394 | // object is disposed — so you can omit the call in non-garbage collected | ||
| 397 | // languages. | 395 | // languages. | ||
| 398 | func (x *ApplicationCommandLine) Done() { | 396 | func (x *ApplicationCommandLine) Done() { | ||
| 399 | - | core.LazyRegister(&xApplicationCommandLineDone, "GIO", "g_application_command_line_done", false) | |||
| 400 | - | ||||
| 401 | xApplicationCommandLineDone(x.GoPointer()) | 397 | xApplicationCommandLineDone(x.GoPointer()) | ||
| 402 | } | 398 | } | ||
| 403 | 399 | ||||
| @@ -415,8 +411,6 @@ var xApplicationCommandLineGetArguments func(uintptr, *int) []string | |||||
| 415 | // The return value is %NULL-terminated and should be freed using | 411 | // The return value is %NULL-terminated and should be freed using | ||
| 416 | // g_strfreev(). | 412 | // g_strfreev(). | ||
| 417 | func (x *ApplicationCommandLine) GetArguments(ArgcVar *int) []string { | 413 | func (x *ApplicationCommandLine) GetArguments(ArgcVar *int) []string { | ||
| 418 | - | core.LazyRegister(&xApplicationCommandLineGetArguments, "GIO", "g_application_command_line_get_arguments", false) | |||
| 419 | - | ||||
| 420 | cret := xApplicationCommandLineGetArguments(x.GoPointer(), ArgcVar) | 414 | cret := xApplicationCommandLineGetArguments(x.GoPointer(), ArgcVar) | ||
| 421 | return cret | 415 | return cret | ||
| 422 | } | 416 | } | ||
| @@ -432,8 +426,6 @@ var xApplicationCommandLineGetCwd func(uintptr) string | |||||
| 432 | // The return value should not be modified or freed and is valid for as | 426 | // The return value should not be modified or freed and is valid for as | ||
| 433 | // long as @cmdline exists. | 427 | // long as @cmdline exists. | ||
| 434 | func (x *ApplicationCommandLine) GetCwd() string { | 428 | func (x *ApplicationCommandLine) GetCwd() string { | ||
| 435 | - | core.LazyRegister(&xApplicationCommandLineGetCwd, "GIO", "g_application_command_line_get_cwd", false) | |||
| 436 | - | ||||
| 437 | cret := xApplicationCommandLineGetCwd(x.GoPointer()) | 429 | cret := xApplicationCommandLineGetCwd(x.GoPointer()) | ||
| 438 | return cret | 430 | return cret | ||
| 439 | } | 431 | } | ||
| @@ -456,8 +448,6 @@ var xApplicationCommandLineGetEnviron func(uintptr) []string | |||||
| 456 | // See g_application_command_line_getenv() if you are only interested | 448 | // See g_application_command_line_getenv() if you are only interested | ||
| 457 | // in the value of a single environment variable. | 449 | // in the value of a single environment variable. | ||
| 458 | func (x *ApplicationCommandLine) GetEnviron() []string { | 450 | func (x *ApplicationCommandLine) GetEnviron() []string { | ||
| 459 | - | core.LazyRegister(&xApplicationCommandLineGetEnviron, "GIO", "g_application_command_line_get_environ", false) | |||
| 460 | - | ||||
| 461 | cret := xApplicationCommandLineGetEnviron(x.GoPointer()) | 451 | cret := xApplicationCommandLineGetEnviron(x.GoPointer()) | ||
| 462 | return cret | 452 | return cret | ||
| 463 | } | 453 | } | ||
| @@ -467,8 +457,6 @@ var xApplicationCommandLineGetExitStatus func(uintptr) int | |||||
| 467 | // Gets the exit status of @cmdline. See | 457 | // Gets the exit status of @cmdline. See | ||
| 468 | // g_application_command_line_set_exit_status() for more information. | 458 | // g_application_command_line_set_exit_status() for more information. | ||
| 469 | func (x *ApplicationCommandLine) GetExitStatus() int { | 459 | func (x *ApplicationCommandLine) GetExitStatus() int { | ||
| 470 | - | core.LazyRegister(&xApplicationCommandLineGetExitStatus, "GIO", "g_application_command_line_get_exit_status", false) | |||
| 471 | - | ||||
| 472 | cret := xApplicationCommandLineGetExitStatus(x.GoPointer()) | 460 | cret := xApplicationCommandLineGetExitStatus(x.GoPointer()) | ||
| 473 | return cret | 461 | return cret | ||
| 474 | } | 462 | } | ||
| @@ -477,8 +465,6 @@ var xApplicationCommandLineGetIsRemote func(uintptr) bool | |||||
| 477 | 465 | ||||
| 478 | // Determines if @cmdline represents a remote invocation. | 466 | // Determines if @cmdline represents a remote invocation. | ||
| 479 | func (x *ApplicationCommandLine) GetIsRemote() bool { | 467 | func (x *ApplicationCommandLine) GetIsRemote() bool { | ||
| 480 | - | core.LazyRegister(&xApplicationCommandLineGetIsRemote, "GIO", "g_application_command_line_get_is_remote", false) | |||
| 481 | - | ||||
| 482 | cret := xApplicationCommandLineGetIsRemote(x.GoPointer()) | 468 | cret := xApplicationCommandLineGetIsRemote(x.GoPointer()) | ||
| 483 | return cret | 469 | return cret | ||
| 484 | } | 470 | } | ||
| @@ -498,8 +484,6 @@ var xApplicationCommandLineGetOptionsDict func(uintptr) uintptr | |||||
| 498 | // The data has been passed via an untrusted external process, so the types of | 484 | // The data has been passed via an untrusted external process, so the types of | ||
| 499 | // all values must be checked before being used. | 485 | // all values must be checked before being used. | ||
| 500 | func (x *ApplicationCommandLine) GetOptionsDict() *glib.VariantDict { | 486 | func (x *ApplicationCommandLine) GetOptionsDict() *glib.VariantDict { | ||
| 501 | - | core.LazyRegister(&xApplicationCommandLineGetOptionsDict, "GIO", "g_application_command_line_get_options_dict", false) | |||
| 502 | - | ||||
| 503 | cret := xApplicationCommandLineGetOptionsDict(x.GoPointer()) | 487 | cret := xApplicationCommandLineGetOptionsDict(x.GoPointer()) | ||
| 504 | if cret == 0 { | 488 | if cret == 0 { | ||
| 505 | return nil | 489 | return nil | ||
| @@ -521,8 +505,6 @@ var xApplicationCommandLineGetPlatformData func(uintptr) uintptr | |||||
| 521 | // | 505 | // | ||
| 522 | // For local invocation, it will be %NULL. | 506 | // For local invocation, it will be %NULL. | ||
| 523 | func (x *ApplicationCommandLine) GetPlatformData() *glib.Variant { | 507 | func (x *ApplicationCommandLine) GetPlatformData() *glib.Variant { | ||
| 524 | - | core.LazyRegister(&xApplicationCommandLineGetPlatformData, "GIO", "g_application_command_line_get_platform_data", false) | |||
| 525 | - | ||||
| 526 | cret := xApplicationCommandLineGetPlatformData(x.GoPointer()) | 508 | cret := xApplicationCommandLineGetPlatformData(x.GoPointer()) | ||
| 527 | if cret == 0 { | 509 | if cret == 0 { | ||
| 528 | return nil | 510 | return nil | ||
| @@ -543,7 +525,6 @@ var xApplicationCommandLineGetStdin func(uintptr) uintptr | |||||
| 543 | // | 525 | // | ||
| 544 | // You must only call this function once per commandline invocation. | 526 | // You must only call this function once per commandline invocation. | ||
| 545 | func (x *ApplicationCommandLine) GetStdin() *InputStream { | 527 | func (x *ApplicationCommandLine) GetStdin() *InputStream { | ||
| 546 | - | core.LazyRegister(&xApplicationCommandLineGetStdin, "GIO", "g_application_command_line_get_stdin", false) | |||
| 547 | var cls *InputStream | 528 | var cls *InputStream | ||
| 548 | 529 | ||||
| 549 | cret := xApplicationCommandLineGetStdin(x.GoPointer()) | 530 | cret := xApplicationCommandLineGetStdin(x.GoPointer()) | ||
| @@ -570,8 +551,6 @@ var xApplicationCommandLineGetenv func(uintptr, string) string | |||||
| 570 | // The return value should not be modified or freed and is valid for as | 551 | // The return value should not be modified or freed and is valid for as | ||
| 571 | // long as @cmdline exists. | 552 | // long as @cmdline exists. | ||
| 572 | func (x *ApplicationCommandLine) Getenv(NameVar string) string { | 553 | func (x *ApplicationCommandLine) Getenv(NameVar string) string { | ||
| 573 | - | core.LazyRegister(&xApplicationCommandLineGetenv, "GIO", "g_application_command_line_getenv", false) | |||
| 574 | - | ||||
| 575 | cret := xApplicationCommandLineGetenv(x.GoPointer(), NameVar) | 554 | cret := xApplicationCommandLineGetenv(x.GoPointer(), NameVar) | ||
| 576 | return cret | 555 | return cret | ||
| 577 | } | 556 | } | ||
| @@ -585,8 +564,6 @@ var xApplicationCommandLinePrint func(uintptr, string, ...interface{}) | |||||
| 585 | // g_print(). If @cmdline is remote then this is equivalent to calling | 564 | // g_print(). If @cmdline is remote then this is equivalent to calling | ||
| 586 | // g_print() in the invoking process. | 565 | // g_print() in the invoking process. | ||
| 587 | func (x *ApplicationCommandLine) Print(FormatVar string, varArgs ...interface{}) { | 566 | func (x *ApplicationCommandLine) Print(FormatVar string, varArgs ...interface{}) { | ||
| 588 | - | core.LazyRegister(&xApplicationCommandLinePrint, "GIO", "g_application_command_line_print", false) | |||
| 589 | - | ||||
| 590 | xApplicationCommandLinePrint(x.GoPointer(), FormatVar, varArgs...) | 567 | xApplicationCommandLinePrint(x.GoPointer(), FormatVar, varArgs...) | ||
| 591 | } | 568 | } | ||
| 592 | 569 | ||||
| @@ -598,8 +575,6 @@ var xApplicationCommandLinePrintLiteral func(uintptr, string) | |||||
| 598 | // format string. Use this function if @message contains text you don't have | 575 | // format string. Use this function if @message contains text you don't have | ||
| 599 | // control over, that could include `printf()` escape sequences. | 576 | // control over, that could include `printf()` escape sequences. | ||
| 600 | func (x *ApplicationCommandLine) PrintLiteral(MessageVar string) { | 577 | func (x *ApplicationCommandLine) PrintLiteral(MessageVar string) { | ||
| 601 | - | core.LazyRegister(&xApplicationCommandLinePrintLiteral, "GIO", "g_application_command_line_print_literal", false) | |||
| 602 | - | ||||
| 603 | xApplicationCommandLinePrintLiteral(x.GoPointer(), MessageVar) | 578 | xApplicationCommandLinePrintLiteral(x.GoPointer(), MessageVar) | ||
| 604 | } | 579 | } | ||
| 605 | 580 | ||||
| @@ -612,8 +587,6 @@ var xApplicationCommandLinePrinterr func(uintptr, string, ...interface{}) | |||||
| 612 | // g_printerr(). If @cmdline is remote then this is equivalent to | 587 | // g_printerr(). If @cmdline is remote then this is equivalent to | ||
| 613 | // calling g_printerr() in the invoking process. | 588 | // calling g_printerr() in the invoking process. | ||
| 614 | func (x *ApplicationCommandLine) Printerr(FormatVar string, varArgs ...interface{}) { | 589 | func (x *ApplicationCommandLine) Printerr(FormatVar string, varArgs ...interface{}) { | ||
| 615 | - | core.LazyRegister(&xApplicationCommandLinePrinterr, "GIO", "g_application_command_line_printerr", false) | |||
| 616 | - | ||||
| 617 | xApplicationCommandLinePrinterr(x.GoPointer(), FormatVar, varArgs...) | 590 | xApplicationCommandLinePrinterr(x.GoPointer(), FormatVar, varArgs...) | ||
| 618 | } | 591 | } | ||
| 619 | 592 | ||||
| @@ -625,8 +598,6 @@ var xApplicationCommandLinePrinterrLiteral func(uintptr, string) | |||||
| 625 | // a `printf()`-style format string. Use this function if @message contains text | 598 | // a `printf()`-style format string. Use this function if @message contains text | ||
| 626 | // you don't have control over, that could include `printf()` escape sequences. | 599 | // you don't have control over, that could include `printf()` escape sequences. | ||
| 627 | func (x *ApplicationCommandLine) PrinterrLiteral(MessageVar string) { | 600 | func (x *ApplicationCommandLine) PrinterrLiteral(MessageVar string) { | ||
| 628 | - | core.LazyRegister(&xApplicationCommandLinePrinterrLiteral, "GIO", "g_application_command_line_printerr_literal", false) | |||
| 629 | - | ||||
| 630 | xApplicationCommandLinePrinterrLiteral(x.GoPointer(), MessageVar) | 601 | xApplicationCommandLinePrinterrLiteral(x.GoPointer(), MessageVar) | ||
| 631 | } | 602 | } | ||
| 632 | 603 | ||||
| @@ -657,8 +628,6 @@ var xApplicationCommandLineSetExitStatus func(uintptr, int) | |||||
| 657 | // This method is a no-op if g_application_command_line_done() has | 628 | // This method is a no-op if g_application_command_line_done() has | ||
| 658 | // been called. | 629 | // been called. | ||
| 659 | func (x *ApplicationCommandLine) SetExitStatus(ExitStatusVar int) { | 630 | func (x *ApplicationCommandLine) SetExitStatus(ExitStatusVar int) { | ||
| 660 | - | core.LazyRegister(&xApplicationCommandLineSetExitStatus, "GIO", "g_application_command_line_set_exit_status", false) | |||
| 661 | - | ||||
| 662 | xApplicationCommandLineSetExitStatus(x.GoPointer(), ExitStatusVar) | 631 | xApplicationCommandLineSetExitStatus(x.GoPointer(), ExitStatusVar) | ||
| 663 | } | 632 | } | ||
| 664 | 633 | ||||
| @@ -712,4 +681,31 @@ func (x *ApplicationCommandLine) SetPropertyPlatformData(value uintptr) { | |||||
| 712 | func init() { | 681 | func init() { | ||
| 713 | core.SetPackageName("GIO", "gio-2.0") | 682 | core.SetPackageName("GIO", "gio-2.0") | ||
| 714 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | 683 | 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") | |||
| 715 | } | 711 | } | ||