Merge pull request #349 from bnema/fix/rollback-lazy-puregotk
fix(deps): emergency rollback puregotk lazy registration regression
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
| @@ -286,7 +286,7 @@ func (x *AppInfoIface) OverrideLaunch(cb func(AppInfo, *glib.List, *AppLaunchCon | |||
| 286 | 286 | if cb == nil { | |
| 287 | 287 | x.xLaunch = 0 | |
| 288 | 288 | } else { | |
| 289 | - | x.xLaunch = purego.NewCallback(func(AppinfoVarp uintptr, FilesVarp *glib.List, ContextVarp uintptr, cerrp **glib.Error) bool { | |
| 289 | + | x.xLaunch = purego.NewCallback(func(AppinfoVarp uintptr, FilesVarp *glib.List, ContextVarp uintptr) bool { | |
| 290 | 290 | return cb(&AppInfoBase{Ptr: AppinfoVarp}, FilesVarp, AppLaunchContextNewFromInternalPtr(ContextVarp)) | |
| 291 | 291 | }) | |
| 292 | 292 | } | |
| @@ -298,11 +298,10 @@ func (x *AppInfoIface) GetLaunch() func(AppInfo, *glib.List, *AppLaunchContext) | |||
| 298 | 298 | if x.xLaunch == 0 { | |
| 299 | 299 | return nil | |
| 300 | 300 | } | |
| 301 | - | var rawCallback func(AppinfoVarp uintptr, FilesVarp *glib.List, ContextVarp uintptr, cerrp **glib.Error) bool | |
| 301 | + | var rawCallback func(AppinfoVarp uintptr, FilesVarp *glib.List, ContextVarp uintptr) bool | |
| 302 | 302 | purego.RegisterFunc(&rawCallback, x.xLaunch) | |
| 303 | 303 | return func(AppinfoVar AppInfo, FilesVar *glib.List, ContextVar *AppLaunchContext) bool { | |
| 304 | - | var cerr *glib.Error | |
| 305 | - | return rawCallback(AppinfoVar.GoPointer(), FilesVar, ContextVar.GoPointer(), &cerr) | |
| 304 | + | return rawCallback(AppinfoVar.GoPointer(), FilesVar, ContextVar.GoPointer()) | |
| 306 | 305 | } | |
| 307 | 306 | } | |
| 308 | 307 | ||
| @@ -370,7 +369,7 @@ func (x *AppInfoIface) OverrideLaunchUris(cb func(AppInfo, *glib.List, *AppLaunc | |||
| 370 | 369 | if cb == nil { | |
| 371 | 370 | x.xLaunchUris = 0 | |
| 372 | 371 | } else { | |
| 373 | - | x.xLaunchUris = purego.NewCallback(func(AppinfoVarp uintptr, UrisVarp *glib.List, ContextVarp uintptr, cerrp **glib.Error) bool { | |
| 372 | + | x.xLaunchUris = purego.NewCallback(func(AppinfoVarp uintptr, UrisVarp *glib.List, ContextVarp uintptr) bool { | |
| 374 | 373 | return cb(&AppInfoBase{Ptr: AppinfoVarp}, UrisVarp, AppLaunchContextNewFromInternalPtr(ContextVarp)) | |
| 375 | 374 | }) | |
| 376 | 375 | } | |
| @@ -382,11 +381,10 @@ func (x *AppInfoIface) GetLaunchUris() func(AppInfo, *glib.List, *AppLaunchConte | |||
| 382 | 381 | if x.xLaunchUris == 0 { | |
| 383 | 382 | return nil | |
| 384 | 383 | } | |
| 385 | - | var rawCallback func(AppinfoVarp uintptr, UrisVarp *glib.List, ContextVarp uintptr, cerrp **glib.Error) bool | |
| 384 | + | var rawCallback func(AppinfoVarp uintptr, UrisVarp *glib.List, ContextVarp uintptr) bool | |
| 386 | 385 | purego.RegisterFunc(&rawCallback, x.xLaunchUris) | |
| 387 | 386 | return func(AppinfoVar AppInfo, UrisVar *glib.List, ContextVar *AppLaunchContext) bool { | |
| 388 | - | var cerr *glib.Error | |
| 389 | - | return rawCallback(AppinfoVar.GoPointer(), UrisVar, ContextVar.GoPointer(), &cerr) | |
| 387 | + | return rawCallback(AppinfoVar.GoPointer(), UrisVar, ContextVar.GoPointer()) | |
| 390 | 388 | } | |
| 391 | 389 | } | |
| 392 | 390 | ||
| @@ -429,7 +427,7 @@ func (x *AppInfoIface) OverrideSetAsDefaultForType(cb func(AppInfo, string) bool | |||
| 429 | 427 | if cb == nil { | |
| 430 | 428 | x.xSetAsDefaultForType = 0 | |
| 431 | 429 | } else { | |
| 432 | - | x.xSetAsDefaultForType = purego.NewCallback(func(AppinfoVarp uintptr, ContentTypeVarp string, cerrp **glib.Error) bool { | |
| 430 | + | x.xSetAsDefaultForType = purego.NewCallback(func(AppinfoVarp uintptr, ContentTypeVarp string) bool { | |
| 433 | 431 | return cb(&AppInfoBase{Ptr: AppinfoVarp}, ContentTypeVarp) | |
| 434 | 432 | }) | |
| 435 | 433 | } | |
| @@ -443,11 +441,10 @@ func (x *AppInfoIface) GetSetAsDefaultForType() func(AppInfo, string) bool { | |||
| 443 | 441 | if x.xSetAsDefaultForType == 0 { | |
| 444 | 442 | return nil | |
| 445 | 443 | } | |
| 446 | - | var rawCallback func(AppinfoVarp uintptr, ContentTypeVarp string, cerrp **glib.Error) bool | |
| 444 | + | var rawCallback func(AppinfoVarp uintptr, ContentTypeVarp string) bool | |
| 447 | 445 | purego.RegisterFunc(&rawCallback, x.xSetAsDefaultForType) | |
| 448 | 446 | return func(AppinfoVar AppInfo, ContentTypeVar string) bool { | |
| 449 | - | var cerr *glib.Error | |
| 450 | - | return rawCallback(AppinfoVar.GoPointer(), ContentTypeVar, &cerr) | |
| 447 | + | return rawCallback(AppinfoVar.GoPointer(), ContentTypeVar) | |
| 451 | 448 | } | |
| 452 | 449 | } | |
| 453 | 450 | ||
| @@ -459,7 +456,7 @@ func (x *AppInfoIface) OverrideSetAsDefaultForExtension(cb func(AppInfo, string) | |||
| 459 | 456 | if cb == nil { | |
| 460 | 457 | x.xSetAsDefaultForExtension = 0 | |
| 461 | 458 | } else { | |
| 462 | - | x.xSetAsDefaultForExtension = purego.NewCallback(func(AppinfoVarp uintptr, ExtensionVarp string, cerrp **glib.Error) bool { | |
| 459 | + | x.xSetAsDefaultForExtension = purego.NewCallback(func(AppinfoVarp uintptr, ExtensionVarp string) bool { | |
| 463 | 460 | return cb(&AppInfoBase{Ptr: AppinfoVarp}, ExtensionVarp) | |
| 464 | 461 | }) | |
| 465 | 462 | } | |
| @@ -473,11 +470,10 @@ func (x *AppInfoIface) GetSetAsDefaultForExtension() func(AppInfo, string) bool | |||
| 473 | 470 | if x.xSetAsDefaultForExtension == 0 { | |
| 474 | 471 | return nil | |
| 475 | 472 | } | |
| 476 | - | var rawCallback func(AppinfoVarp uintptr, ExtensionVarp string, cerrp **glib.Error) bool | |
| 473 | + | var rawCallback func(AppinfoVarp uintptr, ExtensionVarp string) bool | |
| 477 | 474 | purego.RegisterFunc(&rawCallback, x.xSetAsDefaultForExtension) | |
| 478 | 475 | return func(AppinfoVar AppInfo, ExtensionVar string) bool { | |
| 479 | - | var cerr *glib.Error | |
| 480 | - | return rawCallback(AppinfoVar.GoPointer(), ExtensionVar, &cerr) | |
| 476 | + | return rawCallback(AppinfoVar.GoPointer(), ExtensionVar) | |
| 481 | 477 | } | |
| 482 | 478 | } | |
| 483 | 479 | ||
| @@ -489,7 +485,7 @@ func (x *AppInfoIface) OverrideAddSupportsType(cb func(AppInfo, string) bool) { | |||
| 489 | 485 | if cb == nil { | |
| 490 | 486 | x.xAddSupportsType = 0 | |
| 491 | 487 | } else { | |
| 492 | - | x.xAddSupportsType = purego.NewCallback(func(AppinfoVarp uintptr, ContentTypeVarp string, cerrp **glib.Error) bool { | |
| 488 | + | x.xAddSupportsType = purego.NewCallback(func(AppinfoVarp uintptr, ContentTypeVarp string) bool { | |
| 493 | 489 | return cb(&AppInfoBase{Ptr: AppinfoVarp}, ContentTypeVarp) | |
| 494 | 490 | }) | |
| 495 | 491 | } | |
| @@ -503,11 +499,10 @@ func (x *AppInfoIface) GetAddSupportsType() func(AppInfo, string) bool { | |||
| 503 | 499 | if x.xAddSupportsType == 0 { | |
| 504 | 500 | return nil | |
| 505 | 501 | } | |
| 506 | - | var rawCallback func(AppinfoVarp uintptr, ContentTypeVarp string, cerrp **glib.Error) bool | |
| 502 | + | var rawCallback func(AppinfoVarp uintptr, ContentTypeVarp string) bool | |
| 507 | 503 | purego.RegisterFunc(&rawCallback, x.xAddSupportsType) | |
| 508 | 504 | return func(AppinfoVar AppInfo, ContentTypeVar string) bool { | |
| 509 | - | var cerr *glib.Error | |
| 510 | - | return rawCallback(AppinfoVar.GoPointer(), ContentTypeVar, &cerr) | |
| 505 | + | return rawCallback(AppinfoVar.GoPointer(), ContentTypeVar) | |
| 511 | 506 | } | |
| 512 | 507 | } | |
| 513 | 508 | ||
| @@ -548,7 +543,7 @@ func (x *AppInfoIface) OverrideRemoveSupportsType(cb func(AppInfo, string) bool) | |||
| 548 | 543 | if cb == nil { | |
| 549 | 544 | x.xRemoveSupportsType = 0 | |
| 550 | 545 | } else { | |
| 551 | - | x.xRemoveSupportsType = purego.NewCallback(func(AppinfoVarp uintptr, ContentTypeVarp string, cerrp **glib.Error) bool { | |
| 546 | + | x.xRemoveSupportsType = purego.NewCallback(func(AppinfoVarp uintptr, ContentTypeVarp string) bool { | |
| 552 | 547 | return cb(&AppInfoBase{Ptr: AppinfoVarp}, ContentTypeVarp) | |
| 553 | 548 | }) | |
| 554 | 549 | } | |
| @@ -562,11 +557,10 @@ func (x *AppInfoIface) GetRemoveSupportsType() func(AppInfo, string) bool { | |||
| 562 | 557 | if x.xRemoveSupportsType == 0 { | |
| 563 | 558 | return nil | |
| 564 | 559 | } | |
| 565 | - | var rawCallback func(AppinfoVarp uintptr, ContentTypeVarp string, cerrp **glib.Error) bool | |
| 560 | + | var rawCallback func(AppinfoVarp uintptr, ContentTypeVarp string) bool | |
| 566 | 561 | purego.RegisterFunc(&rawCallback, x.xRemoveSupportsType) | |
| 567 | 562 | return func(AppinfoVar AppInfo, ContentTypeVar string) bool { | |
| 568 | - | var cerr *glib.Error | |
| 569 | - | return rawCallback(AppinfoVar.GoPointer(), ContentTypeVar, &cerr) | |
| 563 | + | return rawCallback(AppinfoVar.GoPointer(), ContentTypeVar) | |
| 570 | 564 | } | |
| 571 | 565 | } | |
| 572 | 566 | ||
| @@ -686,7 +680,7 @@ func (x *AppInfoIface) OverrideSetAsLastUsedForType(cb func(AppInfo, string) boo | |||
| 686 | 680 | if cb == nil { | |
| 687 | 681 | x.xSetAsLastUsedForType = 0 | |
| 688 | 682 | } else { | |
| 689 | - | x.xSetAsLastUsedForType = purego.NewCallback(func(AppinfoVarp uintptr, ContentTypeVarp string, cerrp **glib.Error) bool { | |
| 683 | + | x.xSetAsLastUsedForType = purego.NewCallback(func(AppinfoVarp uintptr, ContentTypeVarp string) bool { | |
| 690 | 684 | return cb(&AppInfoBase{Ptr: AppinfoVarp}, ContentTypeVarp) | |
| 691 | 685 | }) | |
| 692 | 686 | } | |
| @@ -700,11 +694,10 @@ func (x *AppInfoIface) GetSetAsLastUsedForType() func(AppInfo, string) bool { | |||
| 700 | 694 | if x.xSetAsLastUsedForType == 0 { | |
| 701 | 695 | return nil | |
| 702 | 696 | } | |
| 703 | - | var rawCallback func(AppinfoVarp uintptr, ContentTypeVarp string, cerrp **glib.Error) bool | |
| 697 | + | var rawCallback func(AppinfoVarp uintptr, ContentTypeVarp string) bool | |
| 704 | 698 | purego.RegisterFunc(&rawCallback, x.xSetAsLastUsedForType) | |
| 705 | 699 | return func(AppinfoVar AppInfo, ContentTypeVar string) bool { | |
| 706 | - | var cerr *glib.Error | |
| 707 | - | return rawCallback(AppinfoVar.GoPointer(), ContentTypeVar, &cerr) | |
| 700 | + | return rawCallback(AppinfoVar.GoPointer(), ContentTypeVar) | |
| 708 | 701 | } | |
| 709 | 702 | } | |
| 710 | 703 | ||
| @@ -774,7 +767,7 @@ func (x *AppInfoIface) OverrideLaunchUrisFinish(cb func(AppInfo, AsyncResult) bo | |||
| 774 | 767 | if cb == nil { | |
| 775 | 768 | x.xLaunchUrisFinish = 0 | |
| 776 | 769 | } else { | |
| 777 | - | x.xLaunchUrisFinish = purego.NewCallback(func(AppinfoVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) bool { | |
| 770 | + | x.xLaunchUrisFinish = purego.NewCallback(func(AppinfoVarp uintptr, ResultVarp uintptr) bool { | |
| 778 | 771 | return cb(&AppInfoBase{Ptr: AppinfoVarp}, &AsyncResultBase{Ptr: ResultVarp}) | |
| 779 | 772 | }) | |
| 780 | 773 | } | |
| @@ -788,11 +781,10 @@ func (x *AppInfoIface) GetLaunchUrisFinish() func(AppInfo, AsyncResult) bool { | |||
| 788 | 781 | if x.xLaunchUrisFinish == 0 { | |
| 789 | 782 | return nil | |
| 790 | 783 | } | |
| 791 | - | var rawCallback func(AppinfoVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) bool | |
| 784 | + | var rawCallback func(AppinfoVarp uintptr, ResultVarp uintptr) bool | |
| 792 | 785 | purego.RegisterFunc(&rawCallback, x.xLaunchUrisFinish) | |
| 793 | 786 | return func(AppinfoVar AppInfo, ResultVar AsyncResult) bool { | |
| 794 | - | var cerr *glib.Error | |
| 795 | - | return rawCallback(AppinfoVar.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 787 | + | return rawCallback(AppinfoVar.GoPointer(), ResultVar.GoPointer()) | |
| 796 | 788 | } | |
| 797 | 789 | } | |
| 798 | 790 | ||
| @@ -1120,7 +1112,6 @@ type AppInfo interface { | |||
| 1120 | 1112 | var xAppInfoGLibType func() types.GType | |
| 1121 | 1113 | ||
| 1122 | 1114 | func AppInfoGLibType() types.GType { | |
| 1123 | - | core.LazyRegister(&xAppInfoGLibType, "GIO", "g_app_info_get_type", false) | |
| 1124 | 1115 | return xAppInfoGLibType() | |
| 1125 | 1116 | } | |
| 1126 | 1117 | ||
| @@ -1418,180 +1409,33 @@ func (x *AppInfoBase) SupportsUris() bool { | |||
| 1418 | 1409 | return cret | |
| 1419 | 1410 | } | |
| 1420 | 1411 | ||
| 1421 | - | var XGAppInfoAddSupportsType func(uintptr, string, **glib.Error) bool = func(instance uintptr, ContentTypeVarp string, cerrp **glib.Error) bool { | |
| 1422 | - | core.LazyRegister(&xXGAppInfoAddSupportsType, "GIO", "g_app_info_add_supports_type", false) | |
| 1423 | - | return xXGAppInfoAddSupportsType(instance, ContentTypeVarp, cerrp) | |
| 1424 | - | } | |
| 1425 | - | ||
| 1426 | - | var ( | |
| 1427 | - | xXGAppInfoAddSupportsType func(uintptr, string, **glib.Error) bool | |
| 1428 | - | XGAppInfoCanDelete func(uintptr) bool = func(instance uintptr) bool { | |
| 1429 | - | core.LazyRegister(&xXGAppInfoCanDelete, "GIO", "g_app_info_can_delete", false) | |
| 1430 | - | return xXGAppInfoCanDelete(instance) | |
| 1431 | - | } | |
| 1432 | - | ) | |
| 1433 | - | var ( | |
| 1434 | - | xXGAppInfoCanDelete func(uintptr) bool | |
| 1435 | - | XGAppInfoCanRemoveSupportsType func(uintptr) bool = func(instance uintptr) bool { | |
| 1436 | - | core.LazyRegister(&xXGAppInfoCanRemoveSupportsType, "GIO", "g_app_info_can_remove_supports_type", false) | |
| 1437 | - | return xXGAppInfoCanRemoveSupportsType(instance) | |
| 1438 | - | } | |
| 1439 | - | ) | |
| 1440 | - | var ( | |
| 1441 | - | xXGAppInfoCanRemoveSupportsType func(uintptr) bool | |
| 1442 | - | XGAppInfoDelete func(uintptr) bool = func(instance uintptr) bool { | |
| 1443 | - | core.LazyRegister(&xXGAppInfoDelete, "GIO", "g_app_info_delete", false) | |
| 1444 | - | return xXGAppInfoDelete(instance) | |
| 1445 | - | } | |
| 1446 | - | ) | |
| 1447 | - | var ( | |
| 1448 | - | xXGAppInfoDelete func(uintptr) bool | |
| 1449 | - | XGAppInfoDup func(uintptr) uintptr = func(instance uintptr) uintptr { | |
| 1450 | - | core.LazyRegister(&xXGAppInfoDup, "GIO", "g_app_info_dup", false) | |
| 1451 | - | return xXGAppInfoDup(instance) | |
| 1452 | - | } | |
| 1453 | - | ) | |
| 1454 | - | var ( | |
| 1455 | - | xXGAppInfoDup func(uintptr) uintptr | |
| 1456 | - | XGAppInfoEqual func(uintptr, uintptr) bool = func(instance uintptr, Appinfo2Varp uintptr) bool { | |
| 1457 | - | core.LazyRegister(&xXGAppInfoEqual, "GIO", "g_app_info_equal", false) | |
| 1458 | - | return xXGAppInfoEqual(instance, Appinfo2Varp) | |
| 1459 | - | } | |
| 1460 | - | ) | |
| 1461 | - | var ( | |
| 1462 | - | xXGAppInfoEqual func(uintptr, uintptr) bool | |
| 1463 | - | XGAppInfoGetCommandline func(uintptr) string = func(instance uintptr) string { | |
| 1464 | - | core.LazyRegister(&xXGAppInfoGetCommandline, "GIO", "g_app_info_get_commandline", false) | |
| 1465 | - | return xXGAppInfoGetCommandline(instance) | |
| 1466 | - | } | |
| 1467 | - | ) | |
| 1468 | - | var ( | |
| 1469 | - | xXGAppInfoGetCommandline func(uintptr) string | |
| 1470 | - | XGAppInfoGetDescription func(uintptr) string = func(instance uintptr) string { | |
| 1471 | - | core.LazyRegister(&xXGAppInfoGetDescription, "GIO", "g_app_info_get_description", false) | |
| 1472 | - | return xXGAppInfoGetDescription(instance) | |
| 1473 | - | } | |
| 1474 | - | ) | |
| 1475 | - | var ( | |
| 1476 | - | xXGAppInfoGetDescription func(uintptr) string | |
| 1477 | - | XGAppInfoGetDisplayName func(uintptr) string = func(instance uintptr) string { | |
| 1478 | - | core.LazyRegister(&xXGAppInfoGetDisplayName, "GIO", "g_app_info_get_display_name", false) | |
| 1479 | - | return xXGAppInfoGetDisplayName(instance) | |
| 1480 | - | } | |
| 1481 | - | ) | |
| 1482 | - | var ( | |
| 1483 | - | xXGAppInfoGetDisplayName func(uintptr) string | |
| 1484 | - | XGAppInfoGetExecutable func(uintptr) string = func(instance uintptr) string { | |
| 1485 | - | core.LazyRegister(&xXGAppInfoGetExecutable, "GIO", "g_app_info_get_executable", false) | |
| 1486 | - | return xXGAppInfoGetExecutable(instance) | |
| 1487 | - | } | |
| 1488 | - | ) | |
| 1489 | - | var ( | |
| 1490 | - | xXGAppInfoGetExecutable func(uintptr) string | |
| 1491 | - | XGAppInfoGetIcon func(uintptr) uintptr = func(instance uintptr) uintptr { | |
| 1492 | - | core.LazyRegister(&xXGAppInfoGetIcon, "GIO", "g_app_info_get_icon", false) | |
| 1493 | - | return xXGAppInfoGetIcon(instance) | |
| 1494 | - | } | |
| 1495 | - | ) | |
| 1496 | - | var ( | |
| 1497 | - | xXGAppInfoGetIcon func(uintptr) uintptr | |
| 1498 | - | XGAppInfoGetId func(uintptr) string = func(instance uintptr) string { | |
| 1499 | - | core.LazyRegister(&xXGAppInfoGetId, "GIO", "g_app_info_get_id", false) | |
| 1500 | - | return xXGAppInfoGetId(instance) | |
| 1501 | - | } | |
| 1502 | - | ) | |
| 1503 | - | var ( | |
| 1504 | - | xXGAppInfoGetId func(uintptr) string | |
| 1505 | - | XGAppInfoGetName func(uintptr) string = func(instance uintptr) string { | |
| 1506 | - | core.LazyRegister(&xXGAppInfoGetName, "GIO", "g_app_info_get_name", false) | |
| 1507 | - | return xXGAppInfoGetName(instance) | |
| 1508 | - | } | |
| 1509 | - | ) | |
| 1510 | 1412 | var ( | |
| 1511 | - | xXGAppInfoGetName func(uintptr) string | |
| 1512 | - | XGAppInfoGetSupportedTypes func(uintptr) []string = func(instance uintptr) []string { | |
| 1513 | - | core.LazyRegister(&xXGAppInfoGetSupportedTypes, "GIO", "g_app_info_get_supported_types", false) | |
| 1514 | - | return xXGAppInfoGetSupportedTypes(instance) | |
| 1515 | - | } | |
| 1413 | + | XGAppInfoAddSupportsType func(uintptr, string, **glib.Error) bool | |
| 1414 | + | XGAppInfoCanDelete func(uintptr) bool | |
| 1415 | + | XGAppInfoCanRemoveSupportsType func(uintptr) bool | |
| 1416 | + | XGAppInfoDelete func(uintptr) bool | |
| 1417 | + | XGAppInfoDup func(uintptr) uintptr | |
| 1418 | + | XGAppInfoEqual func(uintptr, uintptr) bool | |
| 1419 | + | XGAppInfoGetCommandline func(uintptr) string | |
| 1420 | + | XGAppInfoGetDescription func(uintptr) string | |
| 1421 | + | XGAppInfoGetDisplayName func(uintptr) string | |
| 1422 | + | XGAppInfoGetExecutable func(uintptr) string | |
| 1423 | + | XGAppInfoGetIcon func(uintptr) uintptr | |
| 1424 | + | XGAppInfoGetId func(uintptr) string | |
| 1425 | + | XGAppInfoGetName func(uintptr) string | |
| 1426 | + | XGAppInfoGetSupportedTypes func(uintptr) []string | |
| 1427 | + | XGAppInfoLaunch func(uintptr, *glib.List, uintptr, **glib.Error) bool | |
| 1428 | + | XGAppInfoLaunchUris func(uintptr, *glib.List, uintptr, **glib.Error) bool | |
| 1429 | + | XGAppInfoLaunchUrisAsync func(uintptr, *glib.List, uintptr, uintptr, uintptr, uintptr) | |
| 1430 | + | XGAppInfoLaunchUrisFinish func(uintptr, uintptr, **glib.Error) bool | |
| 1431 | + | XGAppInfoRemoveSupportsType func(uintptr, string, **glib.Error) bool | |
| 1432 | + | XGAppInfoSetAsDefaultForExtension func(uintptr, string, **glib.Error) bool | |
| 1433 | + | XGAppInfoSetAsDefaultForType func(uintptr, string, **glib.Error) bool | |
| 1434 | + | XGAppInfoSetAsLastUsedForType func(uintptr, string, **glib.Error) bool | |
| 1435 | + | XGAppInfoShouldShow func(uintptr) bool | |
| 1436 | + | XGAppInfoSupportsFiles func(uintptr) bool | |
| 1437 | + | XGAppInfoSupportsUris func(uintptr) bool | |
| 1516 | 1438 | ) | |
| 1517 | - | var ( | |
| 1518 | - | xXGAppInfoGetSupportedTypes func(uintptr) []string | |
| 1519 | - | XGAppInfoLaunch func(uintptr, *glib.List, uintptr, **glib.Error) bool = func(instance uintptr, FilesVarp *glib.List, ContextVarp uintptr, cerrp **glib.Error) bool { | |
| 1520 | - | core.LazyRegister(&xXGAppInfoLaunch, "GIO", "g_app_info_launch", false) | |
| 1521 | - | return xXGAppInfoLaunch(instance, FilesVarp, ContextVarp, cerrp) | |
| 1522 | - | } | |
| 1523 | - | ) | |
| 1524 | - | var ( | |
| 1525 | - | xXGAppInfoLaunch func(uintptr, *glib.List, uintptr, **glib.Error) bool | |
| 1526 | - | XGAppInfoLaunchUris func(uintptr, *glib.List, uintptr, **glib.Error) bool = func(instance uintptr, UrisVarp *glib.List, ContextVarp uintptr, cerrp **glib.Error) bool { | |
| 1527 | - | core.LazyRegister(&xXGAppInfoLaunchUris, "GIO", "g_app_info_launch_uris", false) | |
| 1528 | - | return xXGAppInfoLaunchUris(instance, UrisVarp, ContextVarp, cerrp) | |
| 1529 | - | } | |
| 1530 | - | ) | |
| 1531 | - | var ( | |
| 1532 | - | xXGAppInfoLaunchUris func(uintptr, *glib.List, uintptr, **glib.Error) bool | |
| 1533 | - | XGAppInfoLaunchUrisAsync func(uintptr, *glib.List, uintptr, uintptr, uintptr, uintptr) = func(instance uintptr, UrisVarp *glib.List, ContextVarp uintptr, CancellableVarp uintptr, CallbackVarp uintptr, UserDataVarp uintptr) { | |
| 1534 | - | core.LazyRegister(&xXGAppInfoLaunchUrisAsync, "GIO", "g_app_info_launch_uris_async", false) | |
| 1535 | - | xXGAppInfoLaunchUrisAsync(instance, UrisVarp, ContextVarp, CancellableVarp, CallbackVarp, UserDataVarp) | |
| 1536 | - | } | |
| 1537 | - | ) | |
| 1538 | - | var ( | |
| 1539 | - | xXGAppInfoLaunchUrisAsync func(uintptr, *glib.List, uintptr, uintptr, uintptr, uintptr) | |
| 1540 | - | XGAppInfoLaunchUrisFinish func(uintptr, uintptr, **glib.Error) bool = func(instance uintptr, ResultVarp uintptr, cerrp **glib.Error) bool { | |
| 1541 | - | core.LazyRegister(&xXGAppInfoLaunchUrisFinish, "GIO", "g_app_info_launch_uris_finish", false) | |
| 1542 | - | return xXGAppInfoLaunchUrisFinish(instance, ResultVarp, cerrp) | |
| 1543 | - | } | |
| 1544 | - | ) | |
| 1545 | - | var ( | |
| 1546 | - | xXGAppInfoLaunchUrisFinish func(uintptr, uintptr, **glib.Error) bool | |
| 1547 | - | XGAppInfoRemoveSupportsType func(uintptr, string, **glib.Error) bool = func(instance uintptr, ContentTypeVarp string, cerrp **glib.Error) bool { | |
| 1548 | - | core.LazyRegister(&xXGAppInfoRemoveSupportsType, "GIO", "g_app_info_remove_supports_type", false) | |
| 1549 | - | return xXGAppInfoRemoveSupportsType(instance, ContentTypeVarp, cerrp) | |
| 1550 | - | } | |
| 1551 | - | ) | |
| 1552 | - | var ( | |
| 1553 | - | xXGAppInfoRemoveSupportsType func(uintptr, string, **glib.Error) bool | |
| 1554 | - | XGAppInfoSetAsDefaultForExtension func(uintptr, string, **glib.Error) bool = func(instance uintptr, ExtensionVarp string, cerrp **glib.Error) bool { | |
| 1555 | - | core.LazyRegister(&xXGAppInfoSetAsDefaultForExtension, "GIO", "g_app_info_set_as_default_for_extension", false) | |
| 1556 | - | return xXGAppInfoSetAsDefaultForExtension(instance, ExtensionVarp, cerrp) | |
| 1557 | - | } | |
| 1558 | - | ) | |
| 1559 | - | var ( | |
| 1560 | - | xXGAppInfoSetAsDefaultForExtension func(uintptr, string, **glib.Error) bool | |
| 1561 | - | XGAppInfoSetAsDefaultForType func(uintptr, string, **glib.Error) bool = func(instance uintptr, ContentTypeVarp string, cerrp **glib.Error) bool { | |
| 1562 | - | core.LazyRegister(&xXGAppInfoSetAsDefaultForType, "GIO", "g_app_info_set_as_default_for_type", false) | |
| 1563 | - | return xXGAppInfoSetAsDefaultForType(instance, ContentTypeVarp, cerrp) | |
| 1564 | - | } | |
| 1565 | - | ) | |
| 1566 | - | var ( | |
| 1567 | - | xXGAppInfoSetAsDefaultForType func(uintptr, string, **glib.Error) bool | |
| 1568 | - | XGAppInfoSetAsLastUsedForType func(uintptr, string, **glib.Error) bool = func(instance uintptr, ContentTypeVarp string, cerrp **glib.Error) bool { | |
| 1569 | - | core.LazyRegister(&xXGAppInfoSetAsLastUsedForType, "GIO", "g_app_info_set_as_last_used_for_type", false) | |
| 1570 | - | return xXGAppInfoSetAsLastUsedForType(instance, ContentTypeVarp, cerrp) | |
| 1571 | - | } | |
| 1572 | - | ) | |
| 1573 | - | var ( | |
| 1574 | - | xXGAppInfoSetAsLastUsedForType func(uintptr, string, **glib.Error) bool | |
| 1575 | - | XGAppInfoShouldShow func(uintptr) bool = func(instance uintptr) bool { | |
| 1576 | - | core.LazyRegister(&xXGAppInfoShouldShow, "GIO", "g_app_info_should_show", false) | |
| 1577 | - | return xXGAppInfoShouldShow(instance) | |
| 1578 | - | } | |
| 1579 | - | ) | |
| 1580 | - | var ( | |
| 1581 | - | xXGAppInfoShouldShow func(uintptr) bool | |
| 1582 | - | XGAppInfoSupportsFiles func(uintptr) bool = func(instance uintptr) bool { | |
| 1583 | - | core.LazyRegister(&xXGAppInfoSupportsFiles, "GIO", "g_app_info_supports_files", false) | |
| 1584 | - | return xXGAppInfoSupportsFiles(instance) | |
| 1585 | - | } | |
| 1586 | - | ) | |
| 1587 | - | var ( | |
| 1588 | - | xXGAppInfoSupportsFiles func(uintptr) bool | |
| 1589 | - | XGAppInfoSupportsUris func(uintptr) bool = func(instance uintptr) bool { | |
| 1590 | - | core.LazyRegister(&xXGAppInfoSupportsUris, "GIO", "g_app_info_supports_uris", false) | |
| 1591 | - | return xXGAppInfoSupportsUris(instance) | |
| 1592 | - | } | |
| 1593 | - | ) | |
| 1594 | - | var xXGAppInfoSupportsUris func(uintptr) bool | |
| 1595 | 1439 | ||
| 1596 | 1440 | var xAppInfoCreateFromCommandline func(string, uintptr, AppInfoCreateFlags, **glib.Error) uintptr | |
| 1597 | 1441 | ||
| @@ -1605,7 +1449,6 @@ var xAppInfoCreateFromCommandline func(string, uintptr, AppInfoCreateFlags, **gl | |||
| 1605 | 1449 | // [the specification](https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s07.html) | |
| 1606 | 1450 | // for exact quoting rules. | |
| 1607 | 1451 | func AppInfoCreateFromCommandline(CommandlineVar string, ApplicationNameVar *string, FlagsVar AppInfoCreateFlags) (*AppInfoBase, error) { | |
| 1608 | - | core.LazyRegister(&xAppInfoCreateFromCommandline, "GIO", "g_app_info_create_from_commandline", false) | |
| 1609 | 1452 | var cls *AppInfoBase | |
| 1610 | 1453 | var cerr *glib.Error | |
| 1611 | 1454 | ||
| @@ -1641,8 +1484,6 @@ var xAppInfoGetAll func() uintptr | |||
| 1641 | 1484 | // [`Hidden` key](https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s06.html#key-hidden) | |
| 1642 | 1485 | // set. | |
| 1643 | 1486 | func AppInfoGetAll() *glib.List { | |
| 1644 | - | core.LazyRegister(&xAppInfoGetAll, "GIO", "g_app_info_get_all", false) | |
| 1645 | - | ||
| 1646 | 1487 | cret := xAppInfoGetAll() | |
| 1647 | 1488 | if cret == 0 { | |
| 1648 | 1489 | return nil | |
| @@ -1657,8 +1498,6 @@ var xAppInfoGetAllForType func(string) uintptr | |||
| 1657 | 1498 | // [func@Gio.AppInfo.get_recommended_for_type] and | |
| 1658 | 1499 | // [func@Gio.AppInfo.get_fallback_for_type]. | |
| 1659 | 1500 | func AppInfoGetAllForType(ContentTypeVar string) *glib.List { | |
| 1660 | - | core.LazyRegister(&xAppInfoGetAllForType, "GIO", "g_app_info_get_all_for_type", false) | |
| 1661 | - | ||
| 1662 | 1501 | cret := xAppInfoGetAllForType(ContentTypeVar) | |
| 1663 | 1502 | if cret == 0 { | |
| 1664 | 1503 | return nil | |
| @@ -1670,7 +1509,6 @@ var xAppInfoGetDefaultForType func(string, bool) uintptr | |||
| 1670 | 1509 | ||
| 1671 | 1510 | // Gets the default [iface@Gio.AppInfo] for a given content type. | |
| 1672 | 1511 | func AppInfoGetDefaultForType(ContentTypeVar string, MustSupportUrisVar bool) *AppInfoBase { | |
| 1673 | - | core.LazyRegister(&xAppInfoGetDefaultForType, "GIO", "g_app_info_get_default_for_type", false) | |
| 1674 | 1512 | var cls *AppInfoBase | |
| 1675 | 1513 | ||
| 1676 | 1514 | cret := xAppInfoGetDefaultForType(ContentTypeVar, MustSupportUrisVar) | |
| @@ -1688,8 +1526,6 @@ var xAppInfoGetDefaultForTypeAsync func(string, bool, uintptr, uintptr, uintptr) | |||
| 1688 | 1526 | // Asynchronously gets the default [iface@Gio.AppInfo] for a given content | |
| 1689 | 1527 | // type. | |
| 1690 | 1528 | func AppInfoGetDefaultForTypeAsync(ContentTypeVar string, MustSupportUrisVar bool, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 1691 | - | core.LazyRegister(&xAppInfoGetDefaultForTypeAsync, "GIO", "g_app_info_get_default_for_type_async", false) | |
| 1692 | - | ||
| 1693 | 1529 | xAppInfoGetDefaultForTypeAsync(ContentTypeVar, MustSupportUrisVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 1694 | 1530 | } | |
| 1695 | 1531 | ||
| @@ -1701,7 +1537,6 @@ var xAppInfoGetDefaultForTypeFinish func(uintptr, **glib.Error) uintptr | |||
| 1701 | 1537 | // If no #[iface@Gio.AppInfo] is found, then @error will be set to | |
| 1702 | 1538 | // [error@Gio.IOErrorEnum.NOT_FOUND]. | |
| 1703 | 1539 | func AppInfoGetDefaultForTypeFinish(ResultVar AsyncResult) (*AppInfoBase, error) { | |
| 1704 | - | core.LazyRegister(&xAppInfoGetDefaultForTypeFinish, "GIO", "g_app_info_get_default_for_type_finish", false) | |
| 1705 | 1540 | var cls *AppInfoBase | |
| 1706 | 1541 | var cerr *glib.Error | |
| 1707 | 1542 | ||
| @@ -1725,7 +1560,6 @@ var xAppInfoGetDefaultForUriScheme func(string) uintptr | |||
| 1725 | 1560 | // A URI scheme is the initial part of the URI, up to but not including the `:`. | |
| 1726 | 1561 | // For example, `http`, `ftp` or `sip`. | |
| 1727 | 1562 | func AppInfoGetDefaultForUriScheme(UriSchemeVar string) *AppInfoBase { | |
| 1728 | - | core.LazyRegister(&xAppInfoGetDefaultForUriScheme, "GIO", "g_app_info_get_default_for_uri_scheme", false) | |
| 1729 | 1563 | var cls *AppInfoBase | |
| 1730 | 1564 | ||
| 1731 | 1565 | cret := xAppInfoGetDefaultForUriScheme(UriSchemeVar) | |
| @@ -1745,8 +1579,6 @@ var xAppInfoGetDefaultForUriSchemeAsync func(string, uintptr, uintptr, uintptr) | |||
| 1745 | 1579 | // of the URI, up to but not including the `:`, e.g. `http`, | |
| 1746 | 1580 | // `ftp` or `sip`. | |
| 1747 | 1581 | func AppInfoGetDefaultForUriSchemeAsync(UriSchemeVar string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 1748 | - | core.LazyRegister(&xAppInfoGetDefaultForUriSchemeAsync, "GIO", "g_app_info_get_default_for_uri_scheme_async", false) | |
| 1749 | - | ||
| 1750 | 1582 | xAppInfoGetDefaultForUriSchemeAsync(UriSchemeVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 1751 | 1583 | } | |
| 1752 | 1584 | ||
| @@ -1758,7 +1590,6 @@ var xAppInfoGetDefaultForUriSchemeFinish func(uintptr, **glib.Error) uintptr | |||
| 1758 | 1590 | // If no [iface@Gio.AppInfo] is found, then @error will be set to | |
| 1759 | 1591 | // [error@Gio.IOErrorEnum.NOT_FOUND]. | |
| 1760 | 1592 | func AppInfoGetDefaultForUriSchemeFinish(ResultVar AsyncResult) (*AppInfoBase, error) { | |
| 1761 | - | core.LazyRegister(&xAppInfoGetDefaultForUriSchemeFinish, "GIO", "g_app_info_get_default_for_uri_scheme_finish", false) | |
| 1762 | 1593 | var cls *AppInfoBase | |
| 1763 | 1594 | var cerr *glib.Error | |
| 1764 | 1595 | ||
| @@ -1781,8 +1612,6 @@ var xAppInfoGetFallbackForType func(string) uintptr | |||
| 1781 | 1612 | // those applications which claim to support the given content type by MIME | |
| 1782 | 1613 | // type subclassing and not directly. | |
| 1783 | 1614 | func AppInfoGetFallbackForType(ContentTypeVar string) *glib.List { | |
| 1784 | - | core.LazyRegister(&xAppInfoGetFallbackForType, "GIO", "g_app_info_get_fallback_for_type", false) | |
| 1785 | - | ||
| 1786 | 1615 | cret := xAppInfoGetFallbackForType(ContentTypeVar) | |
| 1787 | 1616 | if cret == 0 { | |
| 1788 | 1617 | return nil | |
| @@ -1800,8 +1629,6 @@ var xAppInfoGetRecommendedForType func(string) uintptr | |||
| 1800 | 1629 | // the last one for which [method@Gio.AppInfo.set_as_last_used_for_type] has | |
| 1801 | 1630 | // been called. | |
| 1802 | 1631 | func AppInfoGetRecommendedForType(ContentTypeVar string) *glib.List { | |
| 1803 | - | core.LazyRegister(&xAppInfoGetRecommendedForType, "GIO", "g_app_info_get_recommended_for_type", false) | |
| 1804 | - | ||
| 1805 | 1632 | cret := xAppInfoGetRecommendedForType(ContentTypeVar) | |
| 1806 | 1633 | if cret == 0 { | |
| 1807 | 1634 | return nil | |
| @@ -1819,7 +1646,6 @@ var xAppInfoLaunchDefaultForUri func(string, uintptr, **glib.Error) bool | |||
| 1819 | 1646 | // terminates too soon after this function. To prevent this, use | |
| 1820 | 1647 | // [func@Gio.AppInfo.launch_default_for_uri_async] instead. | |
| 1821 | 1648 | func AppInfoLaunchDefaultForUri(UriVar string, ContextVar *AppLaunchContext) (bool, error) { | |
| 1822 | - | core.LazyRegister(&xAppInfoLaunchDefaultForUri, "GIO", "g_app_info_launch_default_for_uri", false) | |
| 1823 | 1649 | var cerr *glib.Error | |
| 1824 | 1650 | ||
| 1825 | 1651 | cret := xAppInfoLaunchDefaultForUri(UriVar, ContextVar.GoPointer(), &cerr) | |
| @@ -1841,8 +1667,6 @@ var xAppInfoLaunchDefaultForUriAsync func(string, uintptr, uintptr, uintptr, uin | |||
| 1841 | 1667 | // applications are really started before termination and if you are interested | |
| 1842 | 1668 | // in receiving error information from their activation. | |
| 1843 | 1669 | func AppInfoLaunchDefaultForUriAsync(UriVar string, ContextVar *AppLaunchContext, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 1844 | - | core.LazyRegister(&xAppInfoLaunchDefaultForUriAsync, "GIO", "g_app_info_launch_default_for_uri_async", false) | |
| 1845 | - | ||
| 1846 | 1670 | xAppInfoLaunchDefaultForUriAsync(UriVar, ContextVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 1847 | 1671 | } | |
| 1848 | 1672 | ||
| @@ -1850,7 +1674,6 @@ var xAppInfoLaunchDefaultForUriFinish func(uintptr, **glib.Error) bool | |||
| 1850 | 1674 | ||
| 1851 | 1675 | // Finishes an asynchronous launch-default-for-uri operation. | |
| 1852 | 1676 | func AppInfoLaunchDefaultForUriFinish(ResultVar AsyncResult) (bool, error) { | |
| 1853 | - | core.LazyRegister(&xAppInfoLaunchDefaultForUriFinish, "GIO", "g_app_info_launch_default_for_uri_finish", false) | |
| 1854 | 1677 | var cerr *glib.Error | |
| 1855 | 1678 | ||
| 1856 | 1679 | cret := xAppInfoLaunchDefaultForUriFinish(ResultVar.GoPointer(), &cerr) | |
| @@ -1868,8 +1691,6 @@ var xAppInfoResetTypeAssociations func(string) | |||
| 1868 | 1691 | // [method@Gio.AppInfo.add_supports_type] or | |
| 1869 | 1692 | // [method@Gio.AppInfo.remove_supports_type]. | |
| 1870 | 1693 | func AppInfoResetTypeAssociations(ContentTypeVar string) { | |
| 1871 | - | core.LazyRegister(&xAppInfoResetTypeAssociations, "GIO", "g_app_info_reset_type_associations", false) | |
| 1872 | - | ||
| 1873 | 1694 | xAppInfoResetTypeAssociations(ContentTypeVar) | |
| 1874 | 1695 | } | |
| 1875 | 1696 | ||
| @@ -1919,7 +1740,6 @@ type AppInfoMonitor struct { | |||
| 1919 | 1740 | var xAppInfoMonitorGLibType func() types.GType | |
| 1920 | 1741 | ||
| 1921 | 1742 | func AppInfoMonitorGLibType() types.GType { | |
| 1922 | - | core.LazyRegister(&xAppInfoMonitorGLibType, "GIO", "g_app_info_monitor_get_type", false) | |
| 1923 | 1743 | return xAppInfoMonitorGLibType() | |
| 1924 | 1744 | } | |
| 1925 | 1745 | ||
| @@ -1980,7 +1800,6 @@ var xAppInfoMonitorGet func() uintptr | |||
| 1980 | 1800 | // You must only call g_object_unref() on the return value from under | |
| 1981 | 1801 | // the same main context as you created it. | |
| 1982 | 1802 | func AppInfoMonitorGet() *AppInfoMonitor { | |
| 1983 | - | core.LazyRegister(&xAppInfoMonitorGet, "GIO", "g_app_info_monitor_get", false) | |
| 1984 | 1803 | var cls *AppInfoMonitor | |
| 1985 | 1804 | ||
| 1986 | 1805 | cret := xAppInfoMonitorGet() | |
| @@ -2003,7 +1822,6 @@ type AppLaunchContext struct { | |||
| 2003 | 1822 | var xAppLaunchContextGLibType func() types.GType | |
| 2004 | 1823 | ||
| 2005 | 1824 | func AppLaunchContextGLibType() types.GType { | |
| 2006 | - | core.LazyRegister(&xAppLaunchContextGLibType, "GIO", "g_app_launch_context_get_type", false) | |
| 2007 | 1825 | return xAppLaunchContextGLibType() | |
| 2008 | 1826 | } | |
| 2009 | 1827 | ||
| @@ -2019,7 +1837,6 @@ var xNewAppLaunchContext func() uintptr | |||
| 2019 | 1837 | // instead you instantiate a subclass of this, such as | |
| 2020 | 1838 | // [`GdkAppLaunchContext`](https://docs.gtk.org/gdk4/class.AppLaunchContext.html). | |
| 2021 | 1839 | func NewAppLaunchContext() *AppLaunchContext { | |
| 2022 | - | core.LazyRegister(&xNewAppLaunchContext, "GIO", "g_app_launch_context_new", false) | |
| 2023 | 1840 | var cls *AppLaunchContext | |
| 2024 | 1841 | ||
| 2025 | 1842 | cret := xNewAppLaunchContext() | |
| @@ -2038,8 +1855,6 @@ var xAppLaunchContextGetDisplay func(uintptr, uintptr, *glib.List) string | |||
| 2038 | 1855 | // applications are started on the same display as the launching | |
| 2039 | 1856 | // application, by setting the `DISPLAY` environment variable. | |
| 2040 | 1857 | func (x *AppLaunchContext) GetDisplay(InfoVar AppInfo, FilesVar *glib.List) string { | |
| 2041 | - | core.LazyRegister(&xAppLaunchContextGetDisplay, "GIO", "g_app_launch_context_get_display", false) | |
| 2042 | - | ||
| 2043 | 1858 | cret := xAppLaunchContextGetDisplay(x.GoPointer(), InfoVar.GoPointer(), FilesVar) | |
| 2044 | 1859 | return cret | |
| 2045 | 1860 | } | |
| @@ -2051,8 +1866,6 @@ var xAppLaunchContextGetEnvironment func(uintptr) []string | |||
| 2051 | 1866 | // This is a `NULL`-terminated array of strings, where each string has | |
| 2052 | 1867 | // the form `KEY=VALUE`. | |
| 2053 | 1868 | func (x *AppLaunchContext) GetEnvironment() []string { | |
| 2054 | - | core.LazyRegister(&xAppLaunchContextGetEnvironment, "GIO", "g_app_launch_context_get_environment", false) | |
| 2055 | - | ||
| 2056 | 1869 | cret := xAppLaunchContextGetEnvironment(x.GoPointer()) | |
| 2057 | 1870 | return cret | |
| 2058 | 1871 | } | |
| @@ -2075,8 +1888,6 @@ var xAppLaunchContextGetStartupNotifyId func(uintptr, uintptr, *glib.List) strin | |||
| 2075 | 1888 | // Since GLib 2.82 @info and @files can be `NULL`. If that’s not supported by the backend, | |
| 2076 | 1889 | // the returned token will be `NULL`. | |
| 2077 | 1890 | func (x *AppLaunchContext) GetStartupNotifyId(InfoVar AppInfo, FilesVar *glib.List) string { | |
| 2078 | - | core.LazyRegister(&xAppLaunchContextGetStartupNotifyId, "GIO", "g_app_launch_context_get_startup_notify_id", false) | |
| 2079 | - | ||
| 2080 | 1891 | cret := xAppLaunchContextGetStartupNotifyId(x.GoPointer(), InfoVar.GoPointer(), FilesVar) | |
| 2081 | 1892 | return cret | |
| 2082 | 1893 | } | |
| @@ -2087,8 +1898,6 @@ var xAppLaunchContextLaunchFailed func(uintptr, string) | |||
| 2087 | 1898 | // the application startup notification started in | |
| 2088 | 1899 | // [method@Gio.AppLaunchContext.get_startup_notify_id]. | |
| 2089 | 1900 | func (x *AppLaunchContext) LaunchFailed(StartupNotifyIdVar string) { | |
| 2090 | - | core.LazyRegister(&xAppLaunchContextLaunchFailed, "GIO", "g_app_launch_context_launch_failed", false) | |
| 2091 | - | ||
| 2092 | 1901 | xAppLaunchContextLaunchFailed(x.GoPointer(), StartupNotifyIdVar) | |
| 2093 | 1902 | } | |
| 2094 | 1903 | ||
| @@ -2097,8 +1906,6 @@ var xAppLaunchContextSetenv func(uintptr, string, string) | |||
| 2097 | 1906 | // Arranges for @variable to be set to @value in the child’s environment when | |
| 2098 | 1907 | // @context is used to launch an application. | |
| 2099 | 1908 | func (x *AppLaunchContext) Setenv(VariableVar string, ValueVar string) { | |
| 2100 | - | core.LazyRegister(&xAppLaunchContextSetenv, "GIO", "g_app_launch_context_setenv", false) | |
| 2101 | - | ||
| 2102 | 1909 | xAppLaunchContextSetenv(x.GoPointer(), VariableVar, ValueVar) | |
| 2103 | 1910 | } | |
| 2104 | 1911 | ||
| @@ -2107,8 +1914,6 @@ var xAppLaunchContextUnsetenv func(uintptr, string) | |||
| 2107 | 1914 | // Arranges for @variable to be unset in the child’s environment when @context | |
| 2108 | 1915 | // is used to launch an application. | |
| 2109 | 1916 | func (x *AppLaunchContext) Unsetenv(VariableVar string) { | |
| 2110 | - | core.LazyRegister(&xAppLaunchContextUnsetenv, "GIO", "g_app_launch_context_unsetenv", false) | |
| 2111 | - | ||
| 2112 | 1917 | xAppLaunchContextUnsetenv(x.GoPointer(), VariableVar) | |
| 2113 | 1918 | } | |
| 2114 | 1919 | ||
| @@ -2239,4 +2044,71 @@ func (x *AppLaunchContext) ConnectLaunched(cb *func(AppLaunchContext, uintptr, u | |||
| 2239 | 2044 | func init() { | |
| 2240 | 2045 | core.SetPackageName("GIO", "gio-2.0") | |
| 2241 | 2046 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | |
| 2047 | + | var libs []uintptr | |
| 2048 | + | for _, libPath := range core.GetPaths("GIO") { | |
| 2049 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 2050 | + | if err != nil { | |
| 2051 | + | panic(err) | |
| 2052 | + | } | |
| 2053 | + | libs = append(libs, lib) | |
| 2054 | + | } | |
| 2055 | + | ||
| 2056 | + | core.PuregoSafeRegister(&xAppInfoCreateFromCommandline, libs, "g_app_info_create_from_commandline") | |
| 2057 | + | core.PuregoSafeRegister(&xAppInfoGetAll, libs, "g_app_info_get_all") | |
| 2058 | + | core.PuregoSafeRegister(&xAppInfoGetAllForType, libs, "g_app_info_get_all_for_type") | |
| 2059 | + | core.PuregoSafeRegister(&xAppInfoGetDefaultForType, libs, "g_app_info_get_default_for_type") | |
| 2060 | + | core.PuregoSafeRegister(&xAppInfoGetDefaultForTypeAsync, libs, "g_app_info_get_default_for_type_async") | |
| 2061 | + | core.PuregoSafeRegister(&xAppInfoGetDefaultForTypeFinish, libs, "g_app_info_get_default_for_type_finish") | |
| 2062 | + | core.PuregoSafeRegister(&xAppInfoGetDefaultForUriScheme, libs, "g_app_info_get_default_for_uri_scheme") | |
| 2063 | + | core.PuregoSafeRegister(&xAppInfoGetDefaultForUriSchemeAsync, libs, "g_app_info_get_default_for_uri_scheme_async") | |
| 2064 | + | core.PuregoSafeRegister(&xAppInfoGetDefaultForUriSchemeFinish, libs, "g_app_info_get_default_for_uri_scheme_finish") | |
| 2065 | + | core.PuregoSafeRegister(&xAppInfoGetFallbackForType, libs, "g_app_info_get_fallback_for_type") | |
| 2066 | + | core.PuregoSafeRegister(&xAppInfoGetRecommendedForType, libs, "g_app_info_get_recommended_for_type") | |
| 2067 | + | core.PuregoSafeRegister(&xAppInfoLaunchDefaultForUri, libs, "g_app_info_launch_default_for_uri") | |
| 2068 | + | core.PuregoSafeRegister(&xAppInfoLaunchDefaultForUriAsync, libs, "g_app_info_launch_default_for_uri_async") | |
| 2069 | + | core.PuregoSafeRegister(&xAppInfoLaunchDefaultForUriFinish, libs, "g_app_info_launch_default_for_uri_finish") | |
| 2070 | + | core.PuregoSafeRegister(&xAppInfoResetTypeAssociations, libs, "g_app_info_reset_type_associations") | |
| 2071 | + | ||
| 2072 | + | core.PuregoSafeRegister(&xAppInfoMonitorGLibType, libs, "g_app_info_monitor_get_type") | |
| 2073 | + | ||
| 2074 | + | core.PuregoSafeRegister(&xAppInfoMonitorGet, libs, "g_app_info_monitor_get") | |
| 2075 | + | ||
| 2076 | + | core.PuregoSafeRegister(&xAppLaunchContextGLibType, libs, "g_app_launch_context_get_type") | |
| 2077 | + | ||
| 2078 | + | core.PuregoSafeRegister(&xNewAppLaunchContext, libs, "g_app_launch_context_new") | |
| 2079 | + | ||
| 2080 | + | core.PuregoSafeRegister(&xAppLaunchContextGetDisplay, libs, "g_app_launch_context_get_display") | |
| 2081 | + | core.PuregoSafeRegister(&xAppLaunchContextGetEnvironment, libs, "g_app_launch_context_get_environment") | |
| 2082 | + | core.PuregoSafeRegister(&xAppLaunchContextGetStartupNotifyId, libs, "g_app_launch_context_get_startup_notify_id") | |
| 2083 | + | core.PuregoSafeRegister(&xAppLaunchContextLaunchFailed, libs, "g_app_launch_context_launch_failed") | |
| 2084 | + | core.PuregoSafeRegister(&xAppLaunchContextSetenv, libs, "g_app_launch_context_setenv") | |
| 2085 | + | core.PuregoSafeRegister(&xAppLaunchContextUnsetenv, libs, "g_app_launch_context_unsetenv") | |
| 2086 | + | ||
| 2087 | + | core.PuregoSafeRegister(&xAppInfoGLibType, libs, "g_app_info_get_type") | |
| 2088 | + | ||
| 2089 | + | core.PuregoSafeRegister(&XGAppInfoAddSupportsType, libs, "g_app_info_add_supports_type") | |
| 2090 | + | core.PuregoSafeRegister(&XGAppInfoCanDelete, libs, "g_app_info_can_delete") | |
| 2091 | + | core.PuregoSafeRegister(&XGAppInfoCanRemoveSupportsType, libs, "g_app_info_can_remove_supports_type") | |
| 2092 | + | core.PuregoSafeRegister(&XGAppInfoDelete, libs, "g_app_info_delete") | |
| 2093 | + | core.PuregoSafeRegister(&XGAppInfoDup, libs, "g_app_info_dup") | |
| 2094 | + | core.PuregoSafeRegister(&XGAppInfoEqual, libs, "g_app_info_equal") | |
| 2095 | + | core.PuregoSafeRegister(&XGAppInfoGetCommandline, libs, "g_app_info_get_commandline") | |
| 2096 | + | core.PuregoSafeRegister(&XGAppInfoGetDescription, libs, "g_app_info_get_description") | |
| 2097 | + | core.PuregoSafeRegister(&XGAppInfoGetDisplayName, libs, "g_app_info_get_display_name") | |
| 2098 | + | core.PuregoSafeRegister(&XGAppInfoGetExecutable, libs, "g_app_info_get_executable") | |
| 2099 | + | core.PuregoSafeRegister(&XGAppInfoGetIcon, libs, "g_app_info_get_icon") | |
| 2100 | + | core.PuregoSafeRegister(&XGAppInfoGetId, libs, "g_app_info_get_id") | |
| 2101 | + | core.PuregoSafeRegister(&XGAppInfoGetName, libs, "g_app_info_get_name") | |
| 2102 | + | core.PuregoSafeRegister(&XGAppInfoGetSupportedTypes, libs, "g_app_info_get_supported_types") | |
| 2103 | + | core.PuregoSafeRegister(&XGAppInfoLaunch, libs, "g_app_info_launch") | |
| 2104 | + | core.PuregoSafeRegister(&XGAppInfoLaunchUris, libs, "g_app_info_launch_uris") | |
| 2105 | + | core.PuregoSafeRegister(&XGAppInfoLaunchUrisAsync, libs, "g_app_info_launch_uris_async") | |
| 2106 | + | core.PuregoSafeRegister(&XGAppInfoLaunchUrisFinish, libs, "g_app_info_launch_uris_finish") | |
| 2107 | + | core.PuregoSafeRegister(&XGAppInfoRemoveSupportsType, libs, "g_app_info_remove_supports_type") | |
| 2108 | + | core.PuregoSafeRegister(&XGAppInfoSetAsDefaultForExtension, libs, "g_app_info_set_as_default_for_extension") | |
| 2109 | + | core.PuregoSafeRegister(&XGAppInfoSetAsDefaultForType, libs, "g_app_info_set_as_default_for_type") | |
| 2110 | + | core.PuregoSafeRegister(&XGAppInfoSetAsLastUsedForType, libs, "g_app_info_set_as_last_used_for_type") | |
| 2111 | + | core.PuregoSafeRegister(&XGAppInfoShouldShow, libs, "g_app_info_should_show") | |
| 2112 | + | core.PuregoSafeRegister(&XGAppInfoSupportsFiles, libs, "g_app_info_supports_files") | |
| 2113 | + | core.PuregoSafeRegister(&XGAppInfoSupportsUris, libs, "g_app_info_supports_uris") | |
| 2242 | 2114 | } | |
| @@ -286,7 +286,7 @@ func (x *AppInfoIface) OverrideLaunch(cb func(AppInfo, *glib.List, *AppLaunchCon | |||||
| 286 | if cb == nil { | 286 | if cb == nil { | ||
| 287 | x.xLaunch = 0 | 287 | x.xLaunch = 0 | ||
| 288 | } else { | 288 | } else { | ||
| 289 | - | x.xLaunch = purego.NewCallback(func(AppinfoVarp uintptr, FilesVarp *glib.List, ContextVarp uintptr, cerrp **glib.Error) bool { | 289 | + | x.xLaunch = purego.NewCallback(func(AppinfoVarp uintptr, FilesVarp *glib.List, ContextVarp uintptr) bool { |
| 290 | return cb(&AppInfoBase{Ptr: AppinfoVarp}, FilesVarp, AppLaunchContextNewFromInternalPtr(ContextVarp)) | 290 | return cb(&AppInfoBase{Ptr: AppinfoVarp}, FilesVarp, AppLaunchContextNewFromInternalPtr(ContextVarp)) | ||
| 291 | }) | 291 | }) | ||
| 292 | } | 292 | } | ||
| @@ -298,11 +298,10 @@ func (x *AppInfoIface) GetLaunch() func(AppInfo, *glib.List, *AppLaunchContext) | |||||
| 298 | if x.xLaunch == 0 { | 298 | if x.xLaunch == 0 { | ||
| 299 | return nil | 299 | return nil | ||
| 300 | } | 300 | } | ||
| 301 | - | var rawCallback func(AppinfoVarp uintptr, FilesVarp *glib.List, ContextVarp uintptr, cerrp **glib.Error) bool | 301 | + | var rawCallback func(AppinfoVarp uintptr, FilesVarp *glib.List, ContextVarp uintptr) bool |
| 302 | purego.RegisterFunc(&rawCallback, x.xLaunch) | 302 | purego.RegisterFunc(&rawCallback, x.xLaunch) | ||
| 303 | return func(AppinfoVar AppInfo, FilesVar *glib.List, ContextVar *AppLaunchContext) bool { | 303 | return func(AppinfoVar AppInfo, FilesVar *glib.List, ContextVar *AppLaunchContext) bool { | ||
| 304 | - | var cerr *glib.Error | 304 | + | return rawCallback(AppinfoVar.GoPointer(), FilesVar, ContextVar.GoPointer()) |
| 305 | - | return rawCallback(AppinfoVar.GoPointer(), FilesVar, ContextVar.GoPointer(), &cerr) | |||
| 306 | } | 305 | } | ||
| 307 | } | 306 | } | ||
| 308 | 307 | ||||
| @@ -370,7 +369,7 @@ func (x *AppInfoIface) OverrideLaunchUris(cb func(AppInfo, *glib.List, *AppLaunc | |||||
| 370 | if cb == nil { | 369 | if cb == nil { | ||
| 371 | x.xLaunchUris = 0 | 370 | x.xLaunchUris = 0 | ||
| 372 | } else { | 371 | } else { | ||
| 373 | - | x.xLaunchUris = purego.NewCallback(func(AppinfoVarp uintptr, UrisVarp *glib.List, ContextVarp uintptr, cerrp **glib.Error) bool { | 372 | + | x.xLaunchUris = purego.NewCallback(func(AppinfoVarp uintptr, UrisVarp *glib.List, ContextVarp uintptr) bool { |
| 374 | return cb(&AppInfoBase{Ptr: AppinfoVarp}, UrisVarp, AppLaunchContextNewFromInternalPtr(ContextVarp)) | 373 | return cb(&AppInfoBase{Ptr: AppinfoVarp}, UrisVarp, AppLaunchContextNewFromInternalPtr(ContextVarp)) | ||
| 375 | }) | 374 | }) | ||
| 376 | } | 375 | } | ||
| @@ -382,11 +381,10 @@ func (x *AppInfoIface) GetLaunchUris() func(AppInfo, *glib.List, *AppLaunchConte | |||||
| 382 | if x.xLaunchUris == 0 { | 381 | if x.xLaunchUris == 0 { | ||
| 383 | return nil | 382 | return nil | ||
| 384 | } | 383 | } | ||
| 385 | - | var rawCallback func(AppinfoVarp uintptr, UrisVarp *glib.List, ContextVarp uintptr, cerrp **glib.Error) bool | 384 | + | var rawCallback func(AppinfoVarp uintptr, UrisVarp *glib.List, ContextVarp uintptr) bool |
| 386 | purego.RegisterFunc(&rawCallback, x.xLaunchUris) | 385 | purego.RegisterFunc(&rawCallback, x.xLaunchUris) | ||
| 387 | return func(AppinfoVar AppInfo, UrisVar *glib.List, ContextVar *AppLaunchContext) bool { | 386 | return func(AppinfoVar AppInfo, UrisVar *glib.List, ContextVar *AppLaunchContext) bool { | ||
| 388 | - | var cerr *glib.Error | 387 | + | return rawCallback(AppinfoVar.GoPointer(), UrisVar, ContextVar.GoPointer()) |
| 389 | - | return rawCallback(AppinfoVar.GoPointer(), UrisVar, ContextVar.GoPointer(), &cerr) | |||
| 390 | } | 388 | } | ||
| 391 | } | 389 | } | ||
| 392 | 390 | ||||
| @@ -429,7 +427,7 @@ func (x *AppInfoIface) OverrideSetAsDefaultForType(cb func(AppInfo, string) bool | |||||
| 429 | if cb == nil { | 427 | if cb == nil { | ||
| 430 | x.xSetAsDefaultForType = 0 | 428 | x.xSetAsDefaultForType = 0 | ||
| 431 | } else { | 429 | } else { | ||
| 432 | - | x.xSetAsDefaultForType = purego.NewCallback(func(AppinfoVarp uintptr, ContentTypeVarp string, cerrp **glib.Error) bool { | 430 | + | x.xSetAsDefaultForType = purego.NewCallback(func(AppinfoVarp uintptr, ContentTypeVarp string) bool { |
| 433 | return cb(&AppInfoBase{Ptr: AppinfoVarp}, ContentTypeVarp) | 431 | return cb(&AppInfoBase{Ptr: AppinfoVarp}, ContentTypeVarp) | ||
| 434 | }) | 432 | }) | ||
| 435 | } | 433 | } | ||
| @@ -443,11 +441,10 @@ func (x *AppInfoIface) GetSetAsDefaultForType() func(AppInfo, string) bool { | |||||
| 443 | if x.xSetAsDefaultForType == 0 { | 441 | if x.xSetAsDefaultForType == 0 { | ||
| 444 | return nil | 442 | return nil | ||
| 445 | } | 443 | } | ||
| 446 | - | var rawCallback func(AppinfoVarp uintptr, ContentTypeVarp string, cerrp **glib.Error) bool | 444 | + | var rawCallback func(AppinfoVarp uintptr, ContentTypeVarp string) bool |
| 447 | purego.RegisterFunc(&rawCallback, x.xSetAsDefaultForType) | 445 | purego.RegisterFunc(&rawCallback, x.xSetAsDefaultForType) | ||
| 448 | return func(AppinfoVar AppInfo, ContentTypeVar string) bool { | 446 | return func(AppinfoVar AppInfo, ContentTypeVar string) bool { | ||
| 449 | - | var cerr *glib.Error | 447 | + | return rawCallback(AppinfoVar.GoPointer(), ContentTypeVar) |
| 450 | - | return rawCallback(AppinfoVar.GoPointer(), ContentTypeVar, &cerr) | |||
| 451 | } | 448 | } | ||
| 452 | } | 449 | } | ||
| 453 | 450 | ||||
| @@ -459,7 +456,7 @@ func (x *AppInfoIface) OverrideSetAsDefaultForExtension(cb func(AppInfo, string) | |||||
| 459 | if cb == nil { | 456 | if cb == nil { | ||
| 460 | x.xSetAsDefaultForExtension = 0 | 457 | x.xSetAsDefaultForExtension = 0 | ||
| 461 | } else { | 458 | } else { | ||
| 462 | - | x.xSetAsDefaultForExtension = purego.NewCallback(func(AppinfoVarp uintptr, ExtensionVarp string, cerrp **glib.Error) bool { | 459 | + | x.xSetAsDefaultForExtension = purego.NewCallback(func(AppinfoVarp uintptr, ExtensionVarp string) bool { |
| 463 | return cb(&AppInfoBase{Ptr: AppinfoVarp}, ExtensionVarp) | 460 | return cb(&AppInfoBase{Ptr: AppinfoVarp}, ExtensionVarp) | ||
| 464 | }) | 461 | }) | ||
| 465 | } | 462 | } | ||
| @@ -473,11 +470,10 @@ func (x *AppInfoIface) GetSetAsDefaultForExtension() func(AppInfo, string) bool | |||||
| 473 | if x.xSetAsDefaultForExtension == 0 { | 470 | if x.xSetAsDefaultForExtension == 0 { | ||
| 474 | return nil | 471 | return nil | ||
| 475 | } | 472 | } | ||
| 476 | - | var rawCallback func(AppinfoVarp uintptr, ExtensionVarp string, cerrp **glib.Error) bool | 473 | + | var rawCallback func(AppinfoVarp uintptr, ExtensionVarp string) bool |
| 477 | purego.RegisterFunc(&rawCallback, x.xSetAsDefaultForExtension) | 474 | purego.RegisterFunc(&rawCallback, x.xSetAsDefaultForExtension) | ||
| 478 | return func(AppinfoVar AppInfo, ExtensionVar string) bool { | 475 | return func(AppinfoVar AppInfo, ExtensionVar string) bool { | ||
| 479 | - | var cerr *glib.Error | 476 | + | return rawCallback(AppinfoVar.GoPointer(), ExtensionVar) |
| 480 | - | return rawCallback(AppinfoVar.GoPointer(), ExtensionVar, &cerr) | |||
| 481 | } | 477 | } | ||
| 482 | } | 478 | } | ||
| 483 | 479 | ||||
| @@ -489,7 +485,7 @@ func (x *AppInfoIface) OverrideAddSupportsType(cb func(AppInfo, string) bool) { | |||||
| 489 | if cb == nil { | 485 | if cb == nil { | ||
| 490 | x.xAddSupportsType = 0 | 486 | x.xAddSupportsType = 0 | ||
| 491 | } else { | 487 | } else { | ||
| 492 | - | x.xAddSupportsType = purego.NewCallback(func(AppinfoVarp uintptr, ContentTypeVarp string, cerrp **glib.Error) bool { | 488 | + | x.xAddSupportsType = purego.NewCallback(func(AppinfoVarp uintptr, ContentTypeVarp string) bool { |
| 493 | return cb(&AppInfoBase{Ptr: AppinfoVarp}, ContentTypeVarp) | 489 | return cb(&AppInfoBase{Ptr: AppinfoVarp}, ContentTypeVarp) | ||
| 494 | }) | 490 | }) | ||
| 495 | } | 491 | } | ||
| @@ -503,11 +499,10 @@ func (x *AppInfoIface) GetAddSupportsType() func(AppInfo, string) bool { | |||||
| 503 | if x.xAddSupportsType == 0 { | 499 | if x.xAddSupportsType == 0 { | ||
| 504 | return nil | 500 | return nil | ||
| 505 | } | 501 | } | ||
| 506 | - | var rawCallback func(AppinfoVarp uintptr, ContentTypeVarp string, cerrp **glib.Error) bool | 502 | + | var rawCallback func(AppinfoVarp uintptr, ContentTypeVarp string) bool |
| 507 | purego.RegisterFunc(&rawCallback, x.xAddSupportsType) | 503 | purego.RegisterFunc(&rawCallback, x.xAddSupportsType) | ||
| 508 | return func(AppinfoVar AppInfo, ContentTypeVar string) bool { | 504 | return func(AppinfoVar AppInfo, ContentTypeVar string) bool { | ||
| 509 | - | var cerr *glib.Error | 505 | + | return rawCallback(AppinfoVar.GoPointer(), ContentTypeVar) |
| 510 | - | return rawCallback(AppinfoVar.GoPointer(), ContentTypeVar, &cerr) | |||
| 511 | } | 506 | } | ||
| 512 | } | 507 | } | ||
| 513 | 508 | ||||
| @@ -548,7 +543,7 @@ func (x *AppInfoIface) OverrideRemoveSupportsType(cb func(AppInfo, string) bool) | |||||
| 548 | if cb == nil { | 543 | if cb == nil { | ||
| 549 | x.xRemoveSupportsType = 0 | 544 | x.xRemoveSupportsType = 0 | ||
| 550 | } else { | 545 | } else { | ||
| 551 | - | x.xRemoveSupportsType = purego.NewCallback(func(AppinfoVarp uintptr, ContentTypeVarp string, cerrp **glib.Error) bool { | 546 | + | x.xRemoveSupportsType = purego.NewCallback(func(AppinfoVarp uintptr, ContentTypeVarp string) bool { |
| 552 | return cb(&AppInfoBase{Ptr: AppinfoVarp}, ContentTypeVarp) | 547 | return cb(&AppInfoBase{Ptr: AppinfoVarp}, ContentTypeVarp) | ||
| 553 | }) | 548 | }) | ||
| 554 | } | 549 | } | ||
| @@ -562,11 +557,10 @@ func (x *AppInfoIface) GetRemoveSupportsType() func(AppInfo, string) bool { | |||||
| 562 | if x.xRemoveSupportsType == 0 { | 557 | if x.xRemoveSupportsType == 0 { | ||
| 563 | return nil | 558 | return nil | ||
| 564 | } | 559 | } | ||
| 565 | - | var rawCallback func(AppinfoVarp uintptr, ContentTypeVarp string, cerrp **glib.Error) bool | 560 | + | var rawCallback func(AppinfoVarp uintptr, ContentTypeVarp string) bool |
| 566 | purego.RegisterFunc(&rawCallback, x.xRemoveSupportsType) | 561 | purego.RegisterFunc(&rawCallback, x.xRemoveSupportsType) | ||
| 567 | return func(AppinfoVar AppInfo, ContentTypeVar string) bool { | 562 | return func(AppinfoVar AppInfo, ContentTypeVar string) bool { | ||
| 568 | - | var cerr *glib.Error | 563 | + | return rawCallback(AppinfoVar.GoPointer(), ContentTypeVar) |
| 569 | - | return rawCallback(AppinfoVar.GoPointer(), ContentTypeVar, &cerr) | |||
| 570 | } | 564 | } | ||
| 571 | } | 565 | } | ||
| 572 | 566 | ||||
| @@ -686,7 +680,7 @@ func (x *AppInfoIface) OverrideSetAsLastUsedForType(cb func(AppInfo, string) boo | |||||
| 686 | if cb == nil { | 680 | if cb == nil { | ||
| 687 | x.xSetAsLastUsedForType = 0 | 681 | x.xSetAsLastUsedForType = 0 | ||
| 688 | } else { | 682 | } else { | ||
| 689 | - | x.xSetAsLastUsedForType = purego.NewCallback(func(AppinfoVarp uintptr, ContentTypeVarp string, cerrp **glib.Error) bool { | 683 | + | x.xSetAsLastUsedForType = purego.NewCallback(func(AppinfoVarp uintptr, ContentTypeVarp string) bool { |
| 690 | return cb(&AppInfoBase{Ptr: AppinfoVarp}, ContentTypeVarp) | 684 | return cb(&AppInfoBase{Ptr: AppinfoVarp}, ContentTypeVarp) | ||
| 691 | }) | 685 | }) | ||
| 692 | } | 686 | } | ||
| @@ -700,11 +694,10 @@ func (x *AppInfoIface) GetSetAsLastUsedForType() func(AppInfo, string) bool { | |||||
| 700 | if x.xSetAsLastUsedForType == 0 { | 694 | if x.xSetAsLastUsedForType == 0 { | ||
| 701 | return nil | 695 | return nil | ||
| 702 | } | 696 | } | ||
| 703 | - | var rawCallback func(AppinfoVarp uintptr, ContentTypeVarp string, cerrp **glib.Error) bool | 697 | + | var rawCallback func(AppinfoVarp uintptr, ContentTypeVarp string) bool |
| 704 | purego.RegisterFunc(&rawCallback, x.xSetAsLastUsedForType) | 698 | purego.RegisterFunc(&rawCallback, x.xSetAsLastUsedForType) | ||
| 705 | return func(AppinfoVar AppInfo, ContentTypeVar string) bool { | 699 | return func(AppinfoVar AppInfo, ContentTypeVar string) bool { | ||
| 706 | - | var cerr *glib.Error | 700 | + | return rawCallback(AppinfoVar.GoPointer(), ContentTypeVar) |
| 707 | - | return rawCallback(AppinfoVar.GoPointer(), ContentTypeVar, &cerr) | |||
| 708 | } | 701 | } | ||
| 709 | } | 702 | } | ||
| 710 | 703 | ||||
| @@ -774,7 +767,7 @@ func (x *AppInfoIface) OverrideLaunchUrisFinish(cb func(AppInfo, AsyncResult) bo | |||||
| 774 | if cb == nil { | 767 | if cb == nil { | ||
| 775 | x.xLaunchUrisFinish = 0 | 768 | x.xLaunchUrisFinish = 0 | ||
| 776 | } else { | 769 | } else { | ||
| 777 | - | x.xLaunchUrisFinish = purego.NewCallback(func(AppinfoVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) bool { | 770 | + | x.xLaunchUrisFinish = purego.NewCallback(func(AppinfoVarp uintptr, ResultVarp uintptr) bool { |
| 778 | return cb(&AppInfoBase{Ptr: AppinfoVarp}, &AsyncResultBase{Ptr: ResultVarp}) | 771 | return cb(&AppInfoBase{Ptr: AppinfoVarp}, &AsyncResultBase{Ptr: ResultVarp}) | ||
| 779 | }) | 772 | }) | ||
| 780 | } | 773 | } | ||
| @@ -788,11 +781,10 @@ func (x *AppInfoIface) GetLaunchUrisFinish() func(AppInfo, AsyncResult) bool { | |||||
| 788 | if x.xLaunchUrisFinish == 0 { | 781 | if x.xLaunchUrisFinish == 0 { | ||
| 789 | return nil | 782 | return nil | ||
| 790 | } | 783 | } | ||
| 791 | - | var rawCallback func(AppinfoVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) bool | 784 | + | var rawCallback func(AppinfoVarp uintptr, ResultVarp uintptr) bool |
| 792 | purego.RegisterFunc(&rawCallback, x.xLaunchUrisFinish) | 785 | purego.RegisterFunc(&rawCallback, x.xLaunchUrisFinish) | ||
| 793 | return func(AppinfoVar AppInfo, ResultVar AsyncResult) bool { | 786 | return func(AppinfoVar AppInfo, ResultVar AsyncResult) bool { | ||
| 794 | - | var cerr *glib.Error | 787 | + | return rawCallback(AppinfoVar.GoPointer(), ResultVar.GoPointer()) |
| 795 | - | return rawCallback(AppinfoVar.GoPointer(), ResultVar.GoPointer(), &cerr) | |||
| 796 | } | 788 | } | ||
| 797 | } | 789 | } | ||
| 798 | 790 | ||||
| @@ -1120,7 +1112,6 @@ type AppInfo interface { | |||||
| 1120 | var xAppInfoGLibType func() types.GType | 1112 | var xAppInfoGLibType func() types.GType | ||
| 1121 | 1113 | ||||
| 1122 | func AppInfoGLibType() types.GType { | 1114 | func AppInfoGLibType() types.GType { | ||
| 1123 | - | core.LazyRegister(&xAppInfoGLibType, "GIO", "g_app_info_get_type", false) | |||
| 1124 | return xAppInfoGLibType() | 1115 | return xAppInfoGLibType() | ||
| 1125 | } | 1116 | } | ||
| 1126 | 1117 | ||||
| @@ -1418,180 +1409,33 @@ func (x *AppInfoBase) SupportsUris() bool { | |||||
| 1418 | return cret | 1409 | return cret | ||
| 1419 | } | 1410 | } | ||
| 1420 | 1411 | ||||
| 1421 | - | var XGAppInfoAddSupportsType func(uintptr, string, **glib.Error) bool = func(instance uintptr, ContentTypeVarp string, cerrp **glib.Error) bool { | |||
| 1422 | - | core.LazyRegister(&xXGAppInfoAddSupportsType, "GIO", "g_app_info_add_supports_type", false) | |||
| 1423 | - | return xXGAppInfoAddSupportsType(instance, ContentTypeVarp, cerrp) | |||
| 1424 | - | } | |||
| 1425 | - | ||||
| 1426 | - | var ( | |||
| 1427 | - | xXGAppInfoAddSupportsType func(uintptr, string, **glib.Error) bool | |||
| 1428 | - | XGAppInfoCanDelete func(uintptr) bool = func(instance uintptr) bool { | |||
| 1429 | - | core.LazyRegister(&xXGAppInfoCanDelete, "GIO", "g_app_info_can_delete", false) | |||
| 1430 | - | return xXGAppInfoCanDelete(instance) | |||
| 1431 | - | } | |||
| 1432 | - | ) | |||
| 1433 | - | var ( | |||
| 1434 | - | xXGAppInfoCanDelete func(uintptr) bool | |||
| 1435 | - | XGAppInfoCanRemoveSupportsType func(uintptr) bool = func(instance uintptr) bool { | |||
| 1436 | - | core.LazyRegister(&xXGAppInfoCanRemoveSupportsType, "GIO", "g_app_info_can_remove_supports_type", false) | |||
| 1437 | - | return xXGAppInfoCanRemoveSupportsType(instance) | |||
| 1438 | - | } | |||
| 1439 | - | ) | |||
| 1440 | - | var ( | |||
| 1441 | - | xXGAppInfoCanRemoveSupportsType func(uintptr) bool | |||
| 1442 | - | XGAppInfoDelete func(uintptr) bool = func(instance uintptr) bool { | |||
| 1443 | - | core.LazyRegister(&xXGAppInfoDelete, "GIO", "g_app_info_delete", false) | |||
| 1444 | - | return xXGAppInfoDelete(instance) | |||
| 1445 | - | } | |||
| 1446 | - | ) | |||
| 1447 | - | var ( | |||
| 1448 | - | xXGAppInfoDelete func(uintptr) bool | |||
| 1449 | - | XGAppInfoDup func(uintptr) uintptr = func(instance uintptr) uintptr { | |||
| 1450 | - | core.LazyRegister(&xXGAppInfoDup, "GIO", "g_app_info_dup", false) | |||
| 1451 | - | return xXGAppInfoDup(instance) | |||
| 1452 | - | } | |||
| 1453 | - | ) | |||
| 1454 | - | var ( | |||
| 1455 | - | xXGAppInfoDup func(uintptr) uintptr | |||
| 1456 | - | XGAppInfoEqual func(uintptr, uintptr) bool = func(instance uintptr, Appinfo2Varp uintptr) bool { | |||
| 1457 | - | core.LazyRegister(&xXGAppInfoEqual, "GIO", "g_app_info_equal", false) | |||
| 1458 | - | return xXGAppInfoEqual(instance, Appinfo2Varp) | |||
| 1459 | - | } | |||
| 1460 | - | ) | |||
| 1461 | - | var ( | |||
| 1462 | - | xXGAppInfoEqual func(uintptr, uintptr) bool | |||
| 1463 | - | XGAppInfoGetCommandline func(uintptr) string = func(instance uintptr) string { | |||
| 1464 | - | core.LazyRegister(&xXGAppInfoGetCommandline, "GIO", "g_app_info_get_commandline", false) | |||
| 1465 | - | return xXGAppInfoGetCommandline(instance) | |||
| 1466 | - | } | |||
| 1467 | - | ) | |||
| 1468 | - | var ( | |||
| 1469 | - | xXGAppInfoGetCommandline func(uintptr) string | |||
| 1470 | - | XGAppInfoGetDescription func(uintptr) string = func(instance uintptr) string { | |||
| 1471 | - | core.LazyRegister(&xXGAppInfoGetDescription, "GIO", "g_app_info_get_description", false) | |||
| 1472 | - | return xXGAppInfoGetDescription(instance) | |||
| 1473 | - | } | |||
| 1474 | - | ) | |||
| 1475 | - | var ( | |||
| 1476 | - | xXGAppInfoGetDescription func(uintptr) string | |||
| 1477 | - | XGAppInfoGetDisplayName func(uintptr) string = func(instance uintptr) string { | |||
| 1478 | - | core.LazyRegister(&xXGAppInfoGetDisplayName, "GIO", "g_app_info_get_display_name", false) | |||
| 1479 | - | return xXGAppInfoGetDisplayName(instance) | |||
| 1480 | - | } | |||
| 1481 | - | ) | |||
| 1482 | - | var ( | |||
| 1483 | - | xXGAppInfoGetDisplayName func(uintptr) string | |||
| 1484 | - | XGAppInfoGetExecutable func(uintptr) string = func(instance uintptr) string { | |||
| 1485 | - | core.LazyRegister(&xXGAppInfoGetExecutable, "GIO", "g_app_info_get_executable", false) | |||
| 1486 | - | return xXGAppInfoGetExecutable(instance) | |||
| 1487 | - | } | |||
| 1488 | - | ) | |||
| 1489 | - | var ( | |||
| 1490 | - | xXGAppInfoGetExecutable func(uintptr) string | |||
| 1491 | - | XGAppInfoGetIcon func(uintptr) uintptr = func(instance uintptr) uintptr { | |||
| 1492 | - | core.LazyRegister(&xXGAppInfoGetIcon, "GIO", "g_app_info_get_icon", false) | |||
| 1493 | - | return xXGAppInfoGetIcon(instance) | |||
| 1494 | - | } | |||
| 1495 | - | ) | |||
| 1496 | - | var ( | |||
| 1497 | - | xXGAppInfoGetIcon func(uintptr) uintptr | |||
| 1498 | - | XGAppInfoGetId func(uintptr) string = func(instance uintptr) string { | |||
| 1499 | - | core.LazyRegister(&xXGAppInfoGetId, "GIO", "g_app_info_get_id", false) | |||
| 1500 | - | return xXGAppInfoGetId(instance) | |||
| 1501 | - | } | |||
| 1502 | - | ) | |||
| 1503 | - | var ( | |||
| 1504 | - | xXGAppInfoGetId func(uintptr) string | |||
| 1505 | - | XGAppInfoGetName func(uintptr) string = func(instance uintptr) string { | |||
| 1506 | - | core.LazyRegister(&xXGAppInfoGetName, "GIO", "g_app_info_get_name", false) | |||
| 1507 | - | return xXGAppInfoGetName(instance) | |||
| 1508 | - | } | |||
| 1509 | - | ) | |||
| 1510 | var ( | 1412 | var ( | ||
| 1511 | - | xXGAppInfoGetName func(uintptr) string | 1413 | + | XGAppInfoAddSupportsType func(uintptr, string, **glib.Error) bool |
| 1512 | - | XGAppInfoGetSupportedTypes func(uintptr) []string = func(instance uintptr) []string { | 1414 | + | XGAppInfoCanDelete func(uintptr) bool |
| 1513 | - | core.LazyRegister(&xXGAppInfoGetSupportedTypes, "GIO", "g_app_info_get_supported_types", false) | 1415 | + | XGAppInfoCanRemoveSupportsType func(uintptr) bool |
| 1514 | - | return xXGAppInfoGetSupportedTypes(instance) | 1416 | + | XGAppInfoDelete func(uintptr) bool |
| 1515 | - | } | 1417 | + | XGAppInfoDup func(uintptr) uintptr |
| 1418 | + | XGAppInfoEqual func(uintptr, uintptr) bool | |||
| 1419 | + | XGAppInfoGetCommandline func(uintptr) string | |||
| 1420 | + | XGAppInfoGetDescription func(uintptr) string | |||
| 1421 | + | XGAppInfoGetDisplayName func(uintptr) string | |||
| 1422 | + | XGAppInfoGetExecutable func(uintptr) string | |||
| 1423 | + | XGAppInfoGetIcon func(uintptr) uintptr | |||
| 1424 | + | XGAppInfoGetId func(uintptr) string | |||
| 1425 | + | XGAppInfoGetName func(uintptr) string | |||
| 1426 | + | XGAppInfoGetSupportedTypes func(uintptr) []string | |||
| 1427 | + | XGAppInfoLaunch func(uintptr, *glib.List, uintptr, **glib.Error) bool | |||
| 1428 | + | XGAppInfoLaunchUris func(uintptr, *glib.List, uintptr, **glib.Error) bool | |||
| 1429 | + | XGAppInfoLaunchUrisAsync func(uintptr, *glib.List, uintptr, uintptr, uintptr, uintptr) | |||
| 1430 | + | XGAppInfoLaunchUrisFinish func(uintptr, uintptr, **glib.Error) bool | |||
| 1431 | + | XGAppInfoRemoveSupportsType func(uintptr, string, **glib.Error) bool | |||
| 1432 | + | XGAppInfoSetAsDefaultForExtension func(uintptr, string, **glib.Error) bool | |||
| 1433 | + | XGAppInfoSetAsDefaultForType func(uintptr, string, **glib.Error) bool | |||
| 1434 | + | XGAppInfoSetAsLastUsedForType func(uintptr, string, **glib.Error) bool | |||
| 1435 | + | XGAppInfoShouldShow func(uintptr) bool | |||
| 1436 | + | XGAppInfoSupportsFiles func(uintptr) bool | |||
| 1437 | + | XGAppInfoSupportsUris func(uintptr) bool | |||
| 1516 | ) | 1438 | ) | ||
| 1517 | - | var ( | |||
| 1518 | - | xXGAppInfoGetSupportedTypes func(uintptr) []string | |||
| 1519 | - | XGAppInfoLaunch func(uintptr, *glib.List, uintptr, **glib.Error) bool = func(instance uintptr, FilesVarp *glib.List, ContextVarp uintptr, cerrp **glib.Error) bool { | |||
| 1520 | - | core.LazyRegister(&xXGAppInfoLaunch, "GIO", "g_app_info_launch", false) | |||
| 1521 | - | return xXGAppInfoLaunch(instance, FilesVarp, ContextVarp, cerrp) | |||
| 1522 | - | } | |||
| 1523 | - | ) | |||
| 1524 | - | var ( | |||
| 1525 | - | xXGAppInfoLaunch func(uintptr, *glib.List, uintptr, **glib.Error) bool | |||
| 1526 | - | XGAppInfoLaunchUris func(uintptr, *glib.List, uintptr, **glib.Error) bool = func(instance uintptr, UrisVarp *glib.List, ContextVarp uintptr, cerrp **glib.Error) bool { | |||
| 1527 | - | core.LazyRegister(&xXGAppInfoLaunchUris, "GIO", "g_app_info_launch_uris", false) | |||
| 1528 | - | return xXGAppInfoLaunchUris(instance, UrisVarp, ContextVarp, cerrp) | |||
| 1529 | - | } | |||
| 1530 | - | ) | |||
| 1531 | - | var ( | |||
| 1532 | - | xXGAppInfoLaunchUris func(uintptr, *glib.List, uintptr, **glib.Error) bool | |||
| 1533 | - | XGAppInfoLaunchUrisAsync func(uintptr, *glib.List, uintptr, uintptr, uintptr, uintptr) = func(instance uintptr, UrisVarp *glib.List, ContextVarp uintptr, CancellableVarp uintptr, CallbackVarp uintptr, UserDataVarp uintptr) { | |||
| 1534 | - | core.LazyRegister(&xXGAppInfoLaunchUrisAsync, "GIO", "g_app_info_launch_uris_async", false) | |||
| 1535 | - | xXGAppInfoLaunchUrisAsync(instance, UrisVarp, ContextVarp, CancellableVarp, CallbackVarp, UserDataVarp) | |||
| 1536 | - | } | |||
| 1537 | - | ) | |||
| 1538 | - | var ( | |||
| 1539 | - | xXGAppInfoLaunchUrisAsync func(uintptr, *glib.List, uintptr, uintptr, uintptr, uintptr) | |||
| 1540 | - | XGAppInfoLaunchUrisFinish func(uintptr, uintptr, **glib.Error) bool = func(instance uintptr, ResultVarp uintptr, cerrp **glib.Error) bool { | |||
| 1541 | - | core.LazyRegister(&xXGAppInfoLaunchUrisFinish, "GIO", "g_app_info_launch_uris_finish", false) | |||
| 1542 | - | return xXGAppInfoLaunchUrisFinish(instance, ResultVarp, cerrp) | |||
| 1543 | - | } | |||
| 1544 | - | ) | |||
| 1545 | - | var ( | |||
| 1546 | - | xXGAppInfoLaunchUrisFinish func(uintptr, uintptr, **glib.Error) bool | |||
| 1547 | - | XGAppInfoRemoveSupportsType func(uintptr, string, **glib.Error) bool = func(instance uintptr, ContentTypeVarp string, cerrp **glib.Error) bool { | |||
| 1548 | - | core.LazyRegister(&xXGAppInfoRemoveSupportsType, "GIO", "g_app_info_remove_supports_type", false) | |||
| 1549 | - | return xXGAppInfoRemoveSupportsType(instance, ContentTypeVarp, cerrp) | |||
| 1550 | - | } | |||
| 1551 | - | ) | |||
| 1552 | - | var ( | |||
| 1553 | - | xXGAppInfoRemoveSupportsType func(uintptr, string, **glib.Error) bool | |||
| 1554 | - | XGAppInfoSetAsDefaultForExtension func(uintptr, string, **glib.Error) bool = func(instance uintptr, ExtensionVarp string, cerrp **glib.Error) bool { | |||
| 1555 | - | core.LazyRegister(&xXGAppInfoSetAsDefaultForExtension, "GIO", "g_app_info_set_as_default_for_extension", false) | |||
| 1556 | - | return xXGAppInfoSetAsDefaultForExtension(instance, ExtensionVarp, cerrp) | |||
| 1557 | - | } | |||
| 1558 | - | ) | |||
| 1559 | - | var ( | |||
| 1560 | - | xXGAppInfoSetAsDefaultForExtension func(uintptr, string, **glib.Error) bool | |||
| 1561 | - | XGAppInfoSetAsDefaultForType func(uintptr, string, **glib.Error) bool = func(instance uintptr, ContentTypeVarp string, cerrp **glib.Error) bool { | |||
| 1562 | - | core.LazyRegister(&xXGAppInfoSetAsDefaultForType, "GIO", "g_app_info_set_as_default_for_type", false) | |||
| 1563 | - | return xXGAppInfoSetAsDefaultForType(instance, ContentTypeVarp, cerrp) | |||
| 1564 | - | } | |||
| 1565 | - | ) | |||
| 1566 | - | var ( | |||
| 1567 | - | xXGAppInfoSetAsDefaultForType func(uintptr, string, **glib.Error) bool | |||
| 1568 | - | XGAppInfoSetAsLastUsedForType func(uintptr, string, **glib.Error) bool = func(instance uintptr, ContentTypeVarp string, cerrp **glib.Error) bool { | |||
| 1569 | - | core.LazyRegister(&xXGAppInfoSetAsLastUsedForType, "GIO", "g_app_info_set_as_last_used_for_type", false) | |||
| 1570 | - | return xXGAppInfoSetAsLastUsedForType(instance, ContentTypeVarp, cerrp) | |||
| 1571 | - | } | |||
| 1572 | - | ) | |||
| 1573 | - | var ( | |||
| 1574 | - | xXGAppInfoSetAsLastUsedForType func(uintptr, string, **glib.Error) bool | |||
| 1575 | - | XGAppInfoShouldShow func(uintptr) bool = func(instance uintptr) bool { | |||
| 1576 | - | core.LazyRegister(&xXGAppInfoShouldShow, "GIO", "g_app_info_should_show", false) | |||
| 1577 | - | return xXGAppInfoShouldShow(instance) | |||
| 1578 | - | } | |||
| 1579 | - | ) | |||
| 1580 | - | var ( | |||
| 1581 | - | xXGAppInfoShouldShow func(uintptr) bool | |||
| 1582 | - | XGAppInfoSupportsFiles func(uintptr) bool = func(instance uintptr) bool { | |||
| 1583 | - | core.LazyRegister(&xXGAppInfoSupportsFiles, "GIO", "g_app_info_supports_files", false) | |||
| 1584 | - | return xXGAppInfoSupportsFiles(instance) | |||
| 1585 | - | } | |||
| 1586 | - | ) | |||
| 1587 | - | var ( | |||
| 1588 | - | xXGAppInfoSupportsFiles func(uintptr) bool | |||
| 1589 | - | XGAppInfoSupportsUris func(uintptr) bool = func(instance uintptr) bool { | |||
| 1590 | - | core.LazyRegister(&xXGAppInfoSupportsUris, "GIO", "g_app_info_supports_uris", false) | |||
| 1591 | - | return xXGAppInfoSupportsUris(instance) | |||
| 1592 | - | } | |||
| 1593 | - | ) | |||
| 1594 | - | var xXGAppInfoSupportsUris func(uintptr) bool | |||
| 1595 | 1439 | ||||
| 1596 | var xAppInfoCreateFromCommandline func(string, uintptr, AppInfoCreateFlags, **glib.Error) uintptr | 1440 | var xAppInfoCreateFromCommandline func(string, uintptr, AppInfoCreateFlags, **glib.Error) uintptr | ||
| 1597 | 1441 | ||||
| @@ -1605,7 +1449,6 @@ var xAppInfoCreateFromCommandline func(string, uintptr, AppInfoCreateFlags, **gl | |||||
| 1605 | // [the specification](https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s07.html) | 1449 | // [the specification](https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s07.html) | ||
| 1606 | // for exact quoting rules. | 1450 | // for exact quoting rules. | ||
| 1607 | func AppInfoCreateFromCommandline(CommandlineVar string, ApplicationNameVar *string, FlagsVar AppInfoCreateFlags) (*AppInfoBase, error) { | 1451 | func AppInfoCreateFromCommandline(CommandlineVar string, ApplicationNameVar *string, FlagsVar AppInfoCreateFlags) (*AppInfoBase, error) { | ||
| 1608 | - | core.LazyRegister(&xAppInfoCreateFromCommandline, "GIO", "g_app_info_create_from_commandline", false) | |||
| 1609 | var cls *AppInfoBase | 1452 | var cls *AppInfoBase | ||
| 1610 | var cerr *glib.Error | 1453 | var cerr *glib.Error | ||
| 1611 | 1454 | ||||
| @@ -1641,8 +1484,6 @@ var xAppInfoGetAll func() uintptr | |||||
| 1641 | // [`Hidden` key](https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s06.html#key-hidden) | 1484 | // [`Hidden` key](https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s06.html#key-hidden) | ||
| 1642 | // set. | 1485 | // set. | ||
| 1643 | func AppInfoGetAll() *glib.List { | 1486 | func AppInfoGetAll() *glib.List { | ||
| 1644 | - | core.LazyRegister(&xAppInfoGetAll, "GIO", "g_app_info_get_all", false) | |||
| 1645 | - | ||||
| 1646 | cret := xAppInfoGetAll() | 1487 | cret := xAppInfoGetAll() | ||
| 1647 | if cret == 0 { | 1488 | if cret == 0 { | ||
| 1648 | return nil | 1489 | return nil | ||
| @@ -1657,8 +1498,6 @@ var xAppInfoGetAllForType func(string) uintptr | |||||
| 1657 | // [func@Gio.AppInfo.get_recommended_for_type] and | 1498 | // [func@Gio.AppInfo.get_recommended_for_type] and | ||
| 1658 | // [func@Gio.AppInfo.get_fallback_for_type]. | 1499 | // [func@Gio.AppInfo.get_fallback_for_type]. | ||
| 1659 | func AppInfoGetAllForType(ContentTypeVar string) *glib.List { | 1500 | func AppInfoGetAllForType(ContentTypeVar string) *glib.List { | ||
| 1660 | - | core.LazyRegister(&xAppInfoGetAllForType, "GIO", "g_app_info_get_all_for_type", false) | |||
| 1661 | - | ||||
| 1662 | cret := xAppInfoGetAllForType(ContentTypeVar) | 1501 | cret := xAppInfoGetAllForType(ContentTypeVar) | ||
| 1663 | if cret == 0 { | 1502 | if cret == 0 { | ||
| 1664 | return nil | 1503 | return nil | ||
| @@ -1670,7 +1509,6 @@ var xAppInfoGetDefaultForType func(string, bool) uintptr | |||||
| 1670 | 1509 | ||||
| 1671 | // Gets the default [iface@Gio.AppInfo] for a given content type. | 1510 | // Gets the default [iface@Gio.AppInfo] for a given content type. | ||
| 1672 | func AppInfoGetDefaultForType(ContentTypeVar string, MustSupportUrisVar bool) *AppInfoBase { | 1511 | func AppInfoGetDefaultForType(ContentTypeVar string, MustSupportUrisVar bool) *AppInfoBase { | ||
| 1673 | - | core.LazyRegister(&xAppInfoGetDefaultForType, "GIO", "g_app_info_get_default_for_type", false) | |||
| 1674 | var cls *AppInfoBase | 1512 | var cls *AppInfoBase | ||
| 1675 | 1513 | ||||
| 1676 | cret := xAppInfoGetDefaultForType(ContentTypeVar, MustSupportUrisVar) | 1514 | cret := xAppInfoGetDefaultForType(ContentTypeVar, MustSupportUrisVar) | ||
| @@ -1688,8 +1526,6 @@ var xAppInfoGetDefaultForTypeAsync func(string, bool, uintptr, uintptr, uintptr) | |||||
| 1688 | // Asynchronously gets the default [iface@Gio.AppInfo] for a given content | 1526 | // Asynchronously gets the default [iface@Gio.AppInfo] for a given content | ||
| 1689 | // type. | 1527 | // type. | ||
| 1690 | func AppInfoGetDefaultForTypeAsync(ContentTypeVar string, MustSupportUrisVar bool, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 1528 | func AppInfoGetDefaultForTypeAsync(ContentTypeVar string, MustSupportUrisVar bool, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 1691 | - | core.LazyRegister(&xAppInfoGetDefaultForTypeAsync, "GIO", "g_app_info_get_default_for_type_async", false) | |||
| 1692 | - | ||||
| 1693 | xAppInfoGetDefaultForTypeAsync(ContentTypeVar, MustSupportUrisVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 1529 | xAppInfoGetDefaultForTypeAsync(ContentTypeVar, MustSupportUrisVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 1694 | } | 1530 | } | ||
| 1695 | 1531 | ||||
| @@ -1701,7 +1537,6 @@ var xAppInfoGetDefaultForTypeFinish func(uintptr, **glib.Error) uintptr | |||||
| 1701 | // If no #[iface@Gio.AppInfo] is found, then @error will be set to | 1537 | // If no #[iface@Gio.AppInfo] is found, then @error will be set to | ||
| 1702 | // [error@Gio.IOErrorEnum.NOT_FOUND]. | 1538 | // [error@Gio.IOErrorEnum.NOT_FOUND]. | ||
| 1703 | func AppInfoGetDefaultForTypeFinish(ResultVar AsyncResult) (*AppInfoBase, error) { | 1539 | func AppInfoGetDefaultForTypeFinish(ResultVar AsyncResult) (*AppInfoBase, error) { | ||
| 1704 | - | core.LazyRegister(&xAppInfoGetDefaultForTypeFinish, "GIO", "g_app_info_get_default_for_type_finish", false) | |||
| 1705 | var cls *AppInfoBase | 1540 | var cls *AppInfoBase | ||
| 1706 | var cerr *glib.Error | 1541 | var cerr *glib.Error | ||
| 1707 | 1542 | ||||
| @@ -1725,7 +1560,6 @@ var xAppInfoGetDefaultForUriScheme func(string) uintptr | |||||
| 1725 | // A URI scheme is the initial part of the URI, up to but not including the `:`. | 1560 | // A URI scheme is the initial part of the URI, up to but not including the `:`. | ||
| 1726 | // For example, `http`, `ftp` or `sip`. | 1561 | // For example, `http`, `ftp` or `sip`. | ||
| 1727 | func AppInfoGetDefaultForUriScheme(UriSchemeVar string) *AppInfoBase { | 1562 | func AppInfoGetDefaultForUriScheme(UriSchemeVar string) *AppInfoBase { | ||
| 1728 | - | core.LazyRegister(&xAppInfoGetDefaultForUriScheme, "GIO", "g_app_info_get_default_for_uri_scheme", false) | |||
| 1729 | var cls *AppInfoBase | 1563 | var cls *AppInfoBase | ||
| 1730 | 1564 | ||||
| 1731 | cret := xAppInfoGetDefaultForUriScheme(UriSchemeVar) | 1565 | cret := xAppInfoGetDefaultForUriScheme(UriSchemeVar) | ||
| @@ -1745,8 +1579,6 @@ var xAppInfoGetDefaultForUriSchemeAsync func(string, uintptr, uintptr, uintptr) | |||||
| 1745 | // of the URI, up to but not including the `:`, e.g. `http`, | 1579 | // of the URI, up to but not including the `:`, e.g. `http`, | ||
| 1746 | // `ftp` or `sip`. | 1580 | // `ftp` or `sip`. | ||
| 1747 | func AppInfoGetDefaultForUriSchemeAsync(UriSchemeVar string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 1581 | func AppInfoGetDefaultForUriSchemeAsync(UriSchemeVar string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 1748 | - | core.LazyRegister(&xAppInfoGetDefaultForUriSchemeAsync, "GIO", "g_app_info_get_default_for_uri_scheme_async", false) | |||
| 1749 | - | ||||
| 1750 | xAppInfoGetDefaultForUriSchemeAsync(UriSchemeVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 1582 | xAppInfoGetDefaultForUriSchemeAsync(UriSchemeVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 1751 | } | 1583 | } | ||
| 1752 | 1584 | ||||
| @@ -1758,7 +1590,6 @@ var xAppInfoGetDefaultForUriSchemeFinish func(uintptr, **glib.Error) uintptr | |||||
| 1758 | // If no [iface@Gio.AppInfo] is found, then @error will be set to | 1590 | // If no [iface@Gio.AppInfo] is found, then @error will be set to | ||
| 1759 | // [error@Gio.IOErrorEnum.NOT_FOUND]. | 1591 | // [error@Gio.IOErrorEnum.NOT_FOUND]. | ||
| 1760 | func AppInfoGetDefaultForUriSchemeFinish(ResultVar AsyncResult) (*AppInfoBase, error) { | 1592 | func AppInfoGetDefaultForUriSchemeFinish(ResultVar AsyncResult) (*AppInfoBase, error) { | ||
| 1761 | - | core.LazyRegister(&xAppInfoGetDefaultForUriSchemeFinish, "GIO", "g_app_info_get_default_for_uri_scheme_finish", false) | |||
| 1762 | var cls *AppInfoBase | 1593 | var cls *AppInfoBase | ||
| 1763 | var cerr *glib.Error | 1594 | var cerr *glib.Error | ||
| 1764 | 1595 | ||||
| @@ -1781,8 +1612,6 @@ var xAppInfoGetFallbackForType func(string) uintptr | |||||
| 1781 | // those applications which claim to support the given content type by MIME | 1612 | // those applications which claim to support the given content type by MIME | ||
| 1782 | // type subclassing and not directly. | 1613 | // type subclassing and not directly. | ||
| 1783 | func AppInfoGetFallbackForType(ContentTypeVar string) *glib.List { | 1614 | func AppInfoGetFallbackForType(ContentTypeVar string) *glib.List { | ||
| 1784 | - | core.LazyRegister(&xAppInfoGetFallbackForType, "GIO", "g_app_info_get_fallback_for_type", false) | |||
| 1785 | - | ||||
| 1786 | cret := xAppInfoGetFallbackForType(ContentTypeVar) | 1615 | cret := xAppInfoGetFallbackForType(ContentTypeVar) | ||
| 1787 | if cret == 0 { | 1616 | if cret == 0 { | ||
| 1788 | return nil | 1617 | return nil | ||
| @@ -1800,8 +1629,6 @@ var xAppInfoGetRecommendedForType func(string) uintptr | |||||
| 1800 | // the last one for which [method@Gio.AppInfo.set_as_last_used_for_type] has | 1629 | // the last one for which [method@Gio.AppInfo.set_as_last_used_for_type] has | ||
| 1801 | // been called. | 1630 | // been called. | ||
| 1802 | func AppInfoGetRecommendedForType(ContentTypeVar string) *glib.List { | 1631 | func AppInfoGetRecommendedForType(ContentTypeVar string) *glib.List { | ||
| 1803 | - | core.LazyRegister(&xAppInfoGetRecommendedForType, "GIO", "g_app_info_get_recommended_for_type", false) | |||
| 1804 | - | ||||
| 1805 | cret := xAppInfoGetRecommendedForType(ContentTypeVar) | 1632 | cret := xAppInfoGetRecommendedForType(ContentTypeVar) | ||
| 1806 | if cret == 0 { | 1633 | if cret == 0 { | ||
| 1807 | return nil | 1634 | return nil | ||
| @@ -1819,7 +1646,6 @@ var xAppInfoLaunchDefaultForUri func(string, uintptr, **glib.Error) bool | |||||
| 1819 | // terminates too soon after this function. To prevent this, use | 1646 | // terminates too soon after this function. To prevent this, use | ||
| 1820 | // [func@Gio.AppInfo.launch_default_for_uri_async] instead. | 1647 | // [func@Gio.AppInfo.launch_default_for_uri_async] instead. | ||
| 1821 | func AppInfoLaunchDefaultForUri(UriVar string, ContextVar *AppLaunchContext) (bool, error) { | 1648 | func AppInfoLaunchDefaultForUri(UriVar string, ContextVar *AppLaunchContext) (bool, error) { | ||
| 1822 | - | core.LazyRegister(&xAppInfoLaunchDefaultForUri, "GIO", "g_app_info_launch_default_for_uri", false) | |||
| 1823 | var cerr *glib.Error | 1649 | var cerr *glib.Error | ||
| 1824 | 1650 | ||||
| 1825 | cret := xAppInfoLaunchDefaultForUri(UriVar, ContextVar.GoPointer(), &cerr) | 1651 | cret := xAppInfoLaunchDefaultForUri(UriVar, ContextVar.GoPointer(), &cerr) | ||
| @@ -1841,8 +1667,6 @@ var xAppInfoLaunchDefaultForUriAsync func(string, uintptr, uintptr, uintptr, uin | |||||
| 1841 | // applications are really started before termination and if you are interested | 1667 | // applications are really started before termination and if you are interested | ||
| 1842 | // in receiving error information from their activation. | 1668 | // in receiving error information from their activation. | ||
| 1843 | func AppInfoLaunchDefaultForUriAsync(UriVar string, ContextVar *AppLaunchContext, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 1669 | func AppInfoLaunchDefaultForUriAsync(UriVar string, ContextVar *AppLaunchContext, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 1844 | - | core.LazyRegister(&xAppInfoLaunchDefaultForUriAsync, "GIO", "g_app_info_launch_default_for_uri_async", false) | |||
| 1845 | - | ||||
| 1846 | xAppInfoLaunchDefaultForUriAsync(UriVar, ContextVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 1670 | xAppInfoLaunchDefaultForUriAsync(UriVar, ContextVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 1847 | } | 1671 | } | ||
| 1848 | 1672 | ||||
| @@ -1850,7 +1674,6 @@ var xAppInfoLaunchDefaultForUriFinish func(uintptr, **glib.Error) bool | |||||
| 1850 | 1674 | ||||
| 1851 | // Finishes an asynchronous launch-default-for-uri operation. | 1675 | // Finishes an asynchronous launch-default-for-uri operation. | ||
| 1852 | func AppInfoLaunchDefaultForUriFinish(ResultVar AsyncResult) (bool, error) { | 1676 | func AppInfoLaunchDefaultForUriFinish(ResultVar AsyncResult) (bool, error) { | ||
| 1853 | - | core.LazyRegister(&xAppInfoLaunchDefaultForUriFinish, "GIO", "g_app_info_launch_default_for_uri_finish", false) | |||
| 1854 | var cerr *glib.Error | 1677 | var cerr *glib.Error | ||
| 1855 | 1678 | ||||
| 1856 | cret := xAppInfoLaunchDefaultForUriFinish(ResultVar.GoPointer(), &cerr) | 1679 | cret := xAppInfoLaunchDefaultForUriFinish(ResultVar.GoPointer(), &cerr) | ||
| @@ -1868,8 +1691,6 @@ var xAppInfoResetTypeAssociations func(string) | |||||
| 1868 | // [method@Gio.AppInfo.add_supports_type] or | 1691 | // [method@Gio.AppInfo.add_supports_type] or | ||
| 1869 | // [method@Gio.AppInfo.remove_supports_type]. | 1692 | // [method@Gio.AppInfo.remove_supports_type]. | ||
| 1870 | func AppInfoResetTypeAssociations(ContentTypeVar string) { | 1693 | func AppInfoResetTypeAssociations(ContentTypeVar string) { | ||
| 1871 | - | core.LazyRegister(&xAppInfoResetTypeAssociations, "GIO", "g_app_info_reset_type_associations", false) | |||
| 1872 | - | ||||
| 1873 | xAppInfoResetTypeAssociations(ContentTypeVar) | 1694 | xAppInfoResetTypeAssociations(ContentTypeVar) | ||
| 1874 | } | 1695 | } | ||
| 1875 | 1696 | ||||
| @@ -1919,7 +1740,6 @@ type AppInfoMonitor struct { | |||||
| 1919 | var xAppInfoMonitorGLibType func() types.GType | 1740 | var xAppInfoMonitorGLibType func() types.GType | ||
| 1920 | 1741 | ||||
| 1921 | func AppInfoMonitorGLibType() types.GType { | 1742 | func AppInfoMonitorGLibType() types.GType { | ||
| 1922 | - | core.LazyRegister(&xAppInfoMonitorGLibType, "GIO", "g_app_info_monitor_get_type", false) | |||
| 1923 | return xAppInfoMonitorGLibType() | 1743 | return xAppInfoMonitorGLibType() | ||
| 1924 | } | 1744 | } | ||
| 1925 | 1745 | ||||
| @@ -1980,7 +1800,6 @@ var xAppInfoMonitorGet func() uintptr | |||||
| 1980 | // You must only call g_object_unref() on the return value from under | 1800 | // You must only call g_object_unref() on the return value from under | ||
| 1981 | // the same main context as you created it. | 1801 | // the same main context as you created it. | ||
| 1982 | func AppInfoMonitorGet() *AppInfoMonitor { | 1802 | func AppInfoMonitorGet() *AppInfoMonitor { | ||
| 1983 | - | core.LazyRegister(&xAppInfoMonitorGet, "GIO", "g_app_info_monitor_get", false) | |||
| 1984 | var cls *AppInfoMonitor | 1803 | var cls *AppInfoMonitor | ||
| 1985 | 1804 | ||||
| 1986 | cret := xAppInfoMonitorGet() | 1805 | cret := xAppInfoMonitorGet() | ||
| @@ -2003,7 +1822,6 @@ type AppLaunchContext struct { | |||||
| 2003 | var xAppLaunchContextGLibType func() types.GType | 1822 | var xAppLaunchContextGLibType func() types.GType | ||
| 2004 | 1823 | ||||
| 2005 | func AppLaunchContextGLibType() types.GType { | 1824 | func AppLaunchContextGLibType() types.GType { | ||
| 2006 | - | core.LazyRegister(&xAppLaunchContextGLibType, "GIO", "g_app_launch_context_get_type", false) | |||
| 2007 | return xAppLaunchContextGLibType() | 1825 | return xAppLaunchContextGLibType() | ||
| 2008 | } | 1826 | } | ||
| 2009 | 1827 | ||||
| @@ -2019,7 +1837,6 @@ var xNewAppLaunchContext func() uintptr | |||||
| 2019 | // instead you instantiate a subclass of this, such as | 1837 | // instead you instantiate a subclass of this, such as | ||
| 2020 | // [`GdkAppLaunchContext`](https://docs.gtk.org/gdk4/class.AppLaunchContext.html). | 1838 | // [`GdkAppLaunchContext`](https://docs.gtk.org/gdk4/class.AppLaunchContext.html). | ||
| 2021 | func NewAppLaunchContext() *AppLaunchContext { | 1839 | func NewAppLaunchContext() *AppLaunchContext { | ||
| 2022 | - | core.LazyRegister(&xNewAppLaunchContext, "GIO", "g_app_launch_context_new", false) | |||
| 2023 | var cls *AppLaunchContext | 1840 | var cls *AppLaunchContext | ||
| 2024 | 1841 | ||||
| 2025 | cret := xNewAppLaunchContext() | 1842 | cret := xNewAppLaunchContext() | ||
| @@ -2038,8 +1855,6 @@ var xAppLaunchContextGetDisplay func(uintptr, uintptr, *glib.List) string | |||||
| 2038 | // applications are started on the same display as the launching | 1855 | // applications are started on the same display as the launching | ||
| 2039 | // application, by setting the `DISPLAY` environment variable. | 1856 | // application, by setting the `DISPLAY` environment variable. | ||
| 2040 | func (x *AppLaunchContext) GetDisplay(InfoVar AppInfo, FilesVar *glib.List) string { | 1857 | func (x *AppLaunchContext) GetDisplay(InfoVar AppInfo, FilesVar *glib.List) string { | ||
| 2041 | - | core.LazyRegister(&xAppLaunchContextGetDisplay, "GIO", "g_app_launch_context_get_display", false) | |||
| 2042 | - | ||||
| 2043 | cret := xAppLaunchContextGetDisplay(x.GoPointer(), InfoVar.GoPointer(), FilesVar) | 1858 | cret := xAppLaunchContextGetDisplay(x.GoPointer(), InfoVar.GoPointer(), FilesVar) | ||
| 2044 | return cret | 1859 | return cret | ||
| 2045 | } | 1860 | } | ||
| @@ -2051,8 +1866,6 @@ var xAppLaunchContextGetEnvironment func(uintptr) []string | |||||
| 2051 | // This is a `NULL`-terminated array of strings, where each string has | 1866 | // This is a `NULL`-terminated array of strings, where each string has | ||
| 2052 | // the form `KEY=VALUE`. | 1867 | // the form `KEY=VALUE`. | ||
| 2053 | func (x *AppLaunchContext) GetEnvironment() []string { | 1868 | func (x *AppLaunchContext) GetEnvironment() []string { | ||
| 2054 | - | core.LazyRegister(&xAppLaunchContextGetEnvironment, "GIO", "g_app_launch_context_get_environment", false) | |||
| 2055 | - | ||||
| 2056 | cret := xAppLaunchContextGetEnvironment(x.GoPointer()) | 1869 | cret := xAppLaunchContextGetEnvironment(x.GoPointer()) | ||
| 2057 | return cret | 1870 | return cret | ||
| 2058 | } | 1871 | } | ||
| @@ -2075,8 +1888,6 @@ var xAppLaunchContextGetStartupNotifyId func(uintptr, uintptr, *glib.List) strin | |||||
| 2075 | // Since GLib 2.82 @info and @files can be `NULL`. If that’s not supported by the backend, | 1888 | // Since GLib 2.82 @info and @files can be `NULL`. If that’s not supported by the backend, | ||
| 2076 | // the returned token will be `NULL`. | 1889 | // the returned token will be `NULL`. | ||
| 2077 | func (x *AppLaunchContext) GetStartupNotifyId(InfoVar AppInfo, FilesVar *glib.List) string { | 1890 | func (x *AppLaunchContext) GetStartupNotifyId(InfoVar AppInfo, FilesVar *glib.List) string { | ||
| 2078 | - | core.LazyRegister(&xAppLaunchContextGetStartupNotifyId, "GIO", "g_app_launch_context_get_startup_notify_id", false) | |||
| 2079 | - | ||||
| 2080 | cret := xAppLaunchContextGetStartupNotifyId(x.GoPointer(), InfoVar.GoPointer(), FilesVar) | 1891 | cret := xAppLaunchContextGetStartupNotifyId(x.GoPointer(), InfoVar.GoPointer(), FilesVar) | ||
| 2081 | return cret | 1892 | return cret | ||
| 2082 | } | 1893 | } | ||
| @@ -2087,8 +1898,6 @@ var xAppLaunchContextLaunchFailed func(uintptr, string) | |||||
| 2087 | // the application startup notification started in | 1898 | // the application startup notification started in | ||
| 2088 | // [method@Gio.AppLaunchContext.get_startup_notify_id]. | 1899 | // [method@Gio.AppLaunchContext.get_startup_notify_id]. | ||
| 2089 | func (x *AppLaunchContext) LaunchFailed(StartupNotifyIdVar string) { | 1900 | func (x *AppLaunchContext) LaunchFailed(StartupNotifyIdVar string) { | ||
| 2090 | - | core.LazyRegister(&xAppLaunchContextLaunchFailed, "GIO", "g_app_launch_context_launch_failed", false) | |||
| 2091 | - | ||||
| 2092 | xAppLaunchContextLaunchFailed(x.GoPointer(), StartupNotifyIdVar) | 1901 | xAppLaunchContextLaunchFailed(x.GoPointer(), StartupNotifyIdVar) | ||
| 2093 | } | 1902 | } | ||
| 2094 | 1903 | ||||
| @@ -2097,8 +1906,6 @@ var xAppLaunchContextSetenv func(uintptr, string, string) | |||||
| 2097 | // Arranges for @variable to be set to @value in the child’s environment when | 1906 | // Arranges for @variable to be set to @value in the child’s environment when | ||
| 2098 | // @context is used to launch an application. | 1907 | // @context is used to launch an application. | ||
| 2099 | func (x *AppLaunchContext) Setenv(VariableVar string, ValueVar string) { | 1908 | func (x *AppLaunchContext) Setenv(VariableVar string, ValueVar string) { | ||
| 2100 | - | core.LazyRegister(&xAppLaunchContextSetenv, "GIO", "g_app_launch_context_setenv", false) | |||
| 2101 | - | ||||
| 2102 | xAppLaunchContextSetenv(x.GoPointer(), VariableVar, ValueVar) | 1909 | xAppLaunchContextSetenv(x.GoPointer(), VariableVar, ValueVar) | ||
| 2103 | } | 1910 | } | ||
| 2104 | 1911 | ||||
| @@ -2107,8 +1914,6 @@ var xAppLaunchContextUnsetenv func(uintptr, string) | |||||
| 2107 | // Arranges for @variable to be unset in the child’s environment when @context | 1914 | // Arranges for @variable to be unset in the child’s environment when @context | ||
| 2108 | // is used to launch an application. | 1915 | // is used to launch an application. | ||
| 2109 | func (x *AppLaunchContext) Unsetenv(VariableVar string) { | 1916 | func (x *AppLaunchContext) Unsetenv(VariableVar string) { | ||
| 2110 | - | core.LazyRegister(&xAppLaunchContextUnsetenv, "GIO", "g_app_launch_context_unsetenv", false) | |||
| 2111 | - | ||||
| 2112 | xAppLaunchContextUnsetenv(x.GoPointer(), VariableVar) | 1917 | xAppLaunchContextUnsetenv(x.GoPointer(), VariableVar) | ||
| 2113 | } | 1918 | } | ||
| 2114 | 1919 | ||||
| @@ -2239,4 +2044,71 @@ func (x *AppLaunchContext) ConnectLaunched(cb *func(AppLaunchContext, uintptr, u | |||||
| 2239 | func init() { | 2044 | func init() { | ||
| 2240 | core.SetPackageName("GIO", "gio-2.0") | 2045 | core.SetPackageName("GIO", "gio-2.0") | ||
| 2241 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | 2046 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | ||
| 2047 | + | var libs []uintptr | |||
| 2048 | + | for _, libPath := range core.GetPaths("GIO") { | |||
| 2049 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 2050 | + | if err != nil { | |||
| 2051 | + | panic(err) | |||
| 2052 | + | } | |||
| 2053 | + | libs = append(libs, lib) | |||
| 2054 | + | } | |||
| 2055 | + | ||||
| 2056 | + | core.PuregoSafeRegister(&xAppInfoCreateFromCommandline, libs, "g_app_info_create_from_commandline") | |||
| 2057 | + | core.PuregoSafeRegister(&xAppInfoGetAll, libs, "g_app_info_get_all") | |||
| 2058 | + | core.PuregoSafeRegister(&xAppInfoGetAllForType, libs, "g_app_info_get_all_for_type") | |||
| 2059 | + | core.PuregoSafeRegister(&xAppInfoGetDefaultForType, libs, "g_app_info_get_default_for_type") | |||
| 2060 | + | core.PuregoSafeRegister(&xAppInfoGetDefaultForTypeAsync, libs, "g_app_info_get_default_for_type_async") | |||
| 2061 | + | core.PuregoSafeRegister(&xAppInfoGetDefaultForTypeFinish, libs, "g_app_info_get_default_for_type_finish") | |||
| 2062 | + | core.PuregoSafeRegister(&xAppInfoGetDefaultForUriScheme, libs, "g_app_info_get_default_for_uri_scheme") | |||
| 2063 | + | core.PuregoSafeRegister(&xAppInfoGetDefaultForUriSchemeAsync, libs, "g_app_info_get_default_for_uri_scheme_async") | |||
| 2064 | + | core.PuregoSafeRegister(&xAppInfoGetDefaultForUriSchemeFinish, libs, "g_app_info_get_default_for_uri_scheme_finish") | |||
| 2065 | + | core.PuregoSafeRegister(&xAppInfoGetFallbackForType, libs, "g_app_info_get_fallback_for_type") | |||
| 2066 | + | core.PuregoSafeRegister(&xAppInfoGetRecommendedForType, libs, "g_app_info_get_recommended_for_type") | |||
| 2067 | + | core.PuregoSafeRegister(&xAppInfoLaunchDefaultForUri, libs, "g_app_info_launch_default_for_uri") | |||
| 2068 | + | core.PuregoSafeRegister(&xAppInfoLaunchDefaultForUriAsync, libs, "g_app_info_launch_default_for_uri_async") | |||
| 2069 | + | core.PuregoSafeRegister(&xAppInfoLaunchDefaultForUriFinish, libs, "g_app_info_launch_default_for_uri_finish") | |||
| 2070 | + | core.PuregoSafeRegister(&xAppInfoResetTypeAssociations, libs, "g_app_info_reset_type_associations") | |||
| 2071 | + | ||||
| 2072 | + | core.PuregoSafeRegister(&xAppInfoMonitorGLibType, libs, "g_app_info_monitor_get_type") | |||
| 2073 | + | ||||
| 2074 | + | core.PuregoSafeRegister(&xAppInfoMonitorGet, libs, "g_app_info_monitor_get") | |||
| 2075 | + | ||||
| 2076 | + | core.PuregoSafeRegister(&xAppLaunchContextGLibType, libs, "g_app_launch_context_get_type") | |||
| 2077 | + | ||||
| 2078 | + | core.PuregoSafeRegister(&xNewAppLaunchContext, libs, "g_app_launch_context_new") | |||
| 2079 | + | ||||
| 2080 | + | core.PuregoSafeRegister(&xAppLaunchContextGetDisplay, libs, "g_app_launch_context_get_display") | |||
| 2081 | + | core.PuregoSafeRegister(&xAppLaunchContextGetEnvironment, libs, "g_app_launch_context_get_environment") | |||
| 2082 | + | core.PuregoSafeRegister(&xAppLaunchContextGetStartupNotifyId, libs, "g_app_launch_context_get_startup_notify_id") | |||
| 2083 | + | core.PuregoSafeRegister(&xAppLaunchContextLaunchFailed, libs, "g_app_launch_context_launch_failed") | |||
| 2084 | + | core.PuregoSafeRegister(&xAppLaunchContextSetenv, libs, "g_app_launch_context_setenv") | |||
| 2085 | + | core.PuregoSafeRegister(&xAppLaunchContextUnsetenv, libs, "g_app_launch_context_unsetenv") | |||
| 2086 | + | ||||
| 2087 | + | core.PuregoSafeRegister(&xAppInfoGLibType, libs, "g_app_info_get_type") | |||
| 2088 | + | ||||
| 2089 | + | core.PuregoSafeRegister(&XGAppInfoAddSupportsType, libs, "g_app_info_add_supports_type") | |||
| 2090 | + | core.PuregoSafeRegister(&XGAppInfoCanDelete, libs, "g_app_info_can_delete") | |||
| 2091 | + | core.PuregoSafeRegister(&XGAppInfoCanRemoveSupportsType, libs, "g_app_info_can_remove_supports_type") | |||
| 2092 | + | core.PuregoSafeRegister(&XGAppInfoDelete, libs, "g_app_info_delete") | |||
| 2093 | + | core.PuregoSafeRegister(&XGAppInfoDup, libs, "g_app_info_dup") | |||
| 2094 | + | core.PuregoSafeRegister(&XGAppInfoEqual, libs, "g_app_info_equal") | |||
| 2095 | + | core.PuregoSafeRegister(&XGAppInfoGetCommandline, libs, "g_app_info_get_commandline") | |||
| 2096 | + | core.PuregoSafeRegister(&XGAppInfoGetDescription, libs, "g_app_info_get_description") | |||
| 2097 | + | core.PuregoSafeRegister(&XGAppInfoGetDisplayName, libs, "g_app_info_get_display_name") | |||
| 2098 | + | core.PuregoSafeRegister(&XGAppInfoGetExecutable, libs, "g_app_info_get_executable") | |||
| 2099 | + | core.PuregoSafeRegister(&XGAppInfoGetIcon, libs, "g_app_info_get_icon") | |||
| 2100 | + | core.PuregoSafeRegister(&XGAppInfoGetId, libs, "g_app_info_get_id") | |||
| 2101 | + | core.PuregoSafeRegister(&XGAppInfoGetName, libs, "g_app_info_get_name") | |||
| 2102 | + | core.PuregoSafeRegister(&XGAppInfoGetSupportedTypes, libs, "g_app_info_get_supported_types") | |||
| 2103 | + | core.PuregoSafeRegister(&XGAppInfoLaunch, libs, "g_app_info_launch") | |||
| 2104 | + | core.PuregoSafeRegister(&XGAppInfoLaunchUris, libs, "g_app_info_launch_uris") | |||
| 2105 | + | core.PuregoSafeRegister(&XGAppInfoLaunchUrisAsync, libs, "g_app_info_launch_uris_async") | |||
| 2106 | + | core.PuregoSafeRegister(&XGAppInfoLaunchUrisFinish, libs, "g_app_info_launch_uris_finish") | |||
| 2107 | + | core.PuregoSafeRegister(&XGAppInfoRemoveSupportsType, libs, "g_app_info_remove_supports_type") | |||
| 2108 | + | core.PuregoSafeRegister(&XGAppInfoSetAsDefaultForExtension, libs, "g_app_info_set_as_default_for_extension") | |||
| 2109 | + | core.PuregoSafeRegister(&XGAppInfoSetAsDefaultForType, libs, "g_app_info_set_as_default_for_type") | |||
| 2110 | + | core.PuregoSafeRegister(&XGAppInfoSetAsLastUsedForType, libs, "g_app_info_set_as_last_used_for_type") | |||
| 2111 | + | core.PuregoSafeRegister(&XGAppInfoShouldShow, libs, "g_app_info_should_show") | |||
| 2112 | + | core.PuregoSafeRegister(&XGAppInfoSupportsFiles, libs, "g_app_info_supports_files") | |||
| 2113 | + | core.PuregoSafeRegister(&XGAppInfoSupportsUris, libs, "g_app_info_supports_uris") | |||
| 2242 | } | 2114 | } | ||