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 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplication.go +55 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplicationcommandline.go +27 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncinitable.go +22 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncresult.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedinputstream.go +29 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedoutputstream.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbytesicon.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcancellable.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcharsetconverter.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcontenttype.go +26 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverter.go +20 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverterinputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverteroutputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcredentials.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatagrambased.go +30 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatainputstream.go +35 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdataoutputstream.go +23 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusactiongroup.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusaddress.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusauthobserver.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusconnection.go +66 -77 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbuserror.go +18 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterface.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterfaceskeleton.go +24 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusintrospection.go +56 -54 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmenumodel.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmessage.go +64 -88 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmethodinvocation.go +30 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnameowning.go +15 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnamewatching.go +15 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobject.go +17 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanager.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerclient.go +23 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerserver.go +20 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectproxy.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectskeleton.go +18 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusproxy.go +38 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusserver.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusutils.go +22 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontroller.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontrollerdbus.go +14 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdrive.go +82 -214 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsclientconnection.go +24 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsconnection.go +80 -207 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsserverconnection.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblem.go +17 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblemedicon.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfile.go +450 -1148 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileattribute.go +19 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileenumerator.go +35 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileicon.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinfo.go +84 -138 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinputstream.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileiostream.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilemonitor.go +15 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilenamecompleter.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileoutputstream.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilterinputstream.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilteroutputstream.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gicon.go +25 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddress.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddressmask.go +21 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetsocketaddress.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginitable.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginputstream.go +48 -52 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioenums.go +1 -90 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioerror.go +13 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giomodule.go +29 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioscheduler.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giostream.go +29 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giotypes.go +60 -70 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giptosmessage.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gipv6tclassmessage.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/glistmodel.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gliststore.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gloadableicon.go +23 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryinputstream.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemorymonitor.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryoutputstream.go +19 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenu.go +50 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenumodel.go +33 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmount.go +86 -215 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmountoperation.go +32 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativesocketaddress.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativevolumemonitor.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkaddress.go +21 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworking.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkmonitor.go +31 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkservice.go +19 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnotification.go +26 -26
| @@ -2,6 +2,7 @@ | |||
| 2 | 2 | package gio | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | + | "github.com/bnema/purego" | |
| 5 | 6 | "github.com/bnema/puregotk/pkg/core" | |
| 6 | 7 | "github.com/bnema/puregotk/v4/glib" | |
| 7 | 8 | "github.com/bnema/puregotk/v4/gobject" | |
| @@ -63,7 +64,6 @@ type Notification struct { | |||
| 63 | 64 | var xNotificationGLibType func() types.GType | |
| 64 | 65 | ||
| 65 | 66 | func NotificationGLibType() types.GType { | |
| 66 | - | core.LazyRegister(&xNotificationGLibType, "GIO", "g_notification_get_type", false) | |
| 67 | 67 | return xNotificationGLibType() | |
| 68 | 68 | } | |
| 69 | 69 | ||
| @@ -82,7 +82,6 @@ var xNewNotification func(string) uintptr | |||
| 82 | 82 | // any properties after this call will not have any effect until | |
| 83 | 83 | // resending @notification. | |
| 84 | 84 | func NewNotification(TitleVar string) *Notification { | |
| 85 | - | core.LazyRegister(&xNewNotification, "GIO", "g_notification_new", false) | |
| 86 | 85 | var cls *Notification | |
| 87 | 86 | ||
| 88 | 87 | cret := xNewNotification(TitleVar) | |
| @@ -106,8 +105,6 @@ var xNotificationAddButton func(uintptr, string, string) | |||
| 106 | 105 | // See g_action_parse_detailed_name() for a description of the format | |
| 107 | 106 | // for @detailed_action. | |
| 108 | 107 | func (x *Notification) AddButton(LabelVar string, DetailedActionVar string) { | |
| 109 | - | core.LazyRegister(&xNotificationAddButton, "GIO", "g_notification_add_button", false) | |
| 110 | - | ||
| 111 | 108 | xNotificationAddButton(x.GoPointer(), LabelVar, DetailedActionVar) | |
| 112 | 109 | } | |
| 113 | 110 | ||
| @@ -121,8 +118,6 @@ var xNotificationAddButtonWithTarget func(uintptr, string, string, uintptr, ...i | |||
| 121 | 118 | // g_variant_new(). @action will be activated with that #GVariant as its | |
| 122 | 119 | // parameter. | |
| 123 | 120 | func (x *Notification) AddButtonWithTarget(LabelVar string, ActionVar string, TargetFormatVar *string, varArgs ...interface{}) { | |
| 124 | - | core.LazyRegister(&xNotificationAddButtonWithTarget, "GIO", "g_notification_add_button_with_target", false) | |
| 125 | - | ||
| 126 | 121 | TargetFormatVarPtr := core.GStrdupNullable(TargetFormatVar) | |
| 127 | 122 | defer core.GFreeNullable(TargetFormatVarPtr) | |
| 128 | 123 | ||
| @@ -137,8 +132,6 @@ var xNotificationAddButtonWithTargetValue func(uintptr, string, string, *glib.Va | |||
| 137 | 132 | // If @target is non-%NULL, @action will be activated with @target as | |
| 138 | 133 | // its parameter. | |
| 139 | 134 | func (x *Notification) AddButtonWithTargetValue(LabelVar string, ActionVar string, TargetVar *glib.Variant) { | |
| 140 | - | core.LazyRegister(&xNotificationAddButtonWithTargetValue, "GIO", "g_notification_add_button_with_target_value", false) | |
| 141 | - | ||
| 142 | 135 | xNotificationAddButtonWithTargetValue(x.GoPointer(), LabelVar, ActionVar, TargetVar) | |
| 143 | 136 | } | |
| 144 | 137 | ||
| @@ -146,8 +139,6 @@ var xNotificationSetBody func(uintptr, uintptr) | |||
| 146 | 139 | ||
| 147 | 140 | // Sets the body of @notification to @body. | |
| 148 | 141 | func (x *Notification) SetBody(BodyVar *string) { | |
| 149 | - | core.LazyRegister(&xNotificationSetBody, "GIO", "g_notification_set_body", false) | |
| 150 | - | ||
| 151 | 142 | BodyVarPtr := core.GStrdupNullable(BodyVar) | |
| 152 | 143 | defer core.GFreeNullable(BodyVarPtr) | |
| 153 | 144 | ||
| @@ -163,8 +154,6 @@ var xNotificationSetCategory func(uintptr, uintptr) | |||
| 163 | 154 | // | |
| 164 | 155 | // Standard categories are [listed in the specification](https://specifications.freedesktop.org/notification-spec/latest/ar01s06.html). | |
| 165 | 156 | func (x *Notification) SetCategory(CategoryVar *string) { | |
| 166 | - | core.LazyRegister(&xNotificationSetCategory, "GIO", "g_notification_set_category", false) | |
| 167 | - | ||
| 168 | 157 | CategoryVarPtr := core.GStrdupNullable(CategoryVar) | |
| 169 | 158 | defer core.GFreeNullable(CategoryVarPtr) | |
| 170 | 159 | ||
| @@ -185,8 +174,6 @@ var xNotificationSetDefaultAction func(uintptr, string) | |||
| 185 | 174 | // When no default action is set, the application that the notification | |
| 186 | 175 | // was sent on is activated. | |
| 187 | 176 | func (x *Notification) SetDefaultAction(DetailedActionVar string) { | |
| 188 | - | core.LazyRegister(&xNotificationSetDefaultAction, "GIO", "g_notification_set_default_action", false) | |
| 189 | - | ||
| 190 | 177 | xNotificationSetDefaultAction(x.GoPointer(), DetailedActionVar) | |
| 191 | 178 | } | |
| 192 | 179 | ||
| @@ -204,8 +191,6 @@ var xNotificationSetDefaultActionAndTarget func(uintptr, string, uintptr, ...int | |||
| 204 | 191 | // When no default action is set, the application that the notification | |
| 205 | 192 | // was sent on is activated. | |
| 206 | 193 | func (x *Notification) SetDefaultActionAndTarget(ActionVar string, TargetFormatVar *string, varArgs ...interface{}) { | |
| 207 | - | core.LazyRegister(&xNotificationSetDefaultActionAndTarget, "GIO", "g_notification_set_default_action_and_target", false) | |
| 208 | - | ||
| 209 | 194 | TargetFormatVarPtr := core.GStrdupNullable(TargetFormatVar) | |
| 210 | 195 | defer core.GFreeNullable(TargetFormatVarPtr) | |
| 211 | 196 | ||
| @@ -224,8 +209,6 @@ var xNotificationSetDefaultActionAndTargetValue func(uintptr, string, *glib.Vari | |||
| 224 | 209 | // When no default action is set, the application that the notification | |
| 225 | 210 | // was sent on is activated. | |
| 226 | 211 | func (x *Notification) SetDefaultActionAndTargetValue(ActionVar string, TargetVar *glib.Variant) { | |
| 227 | - | core.LazyRegister(&xNotificationSetDefaultActionAndTargetValue, "GIO", "g_notification_set_default_action_and_target_value", false) | |
| 228 | - | ||
| 229 | 212 | xNotificationSetDefaultActionAndTargetValue(x.GoPointer(), ActionVar, TargetVar) | |
| 230 | 213 | } | |
| 231 | 214 | ||
| @@ -233,8 +216,6 @@ var xNotificationSetIcon func(uintptr, uintptr) | |||
| 233 | 216 | ||
| 234 | 217 | // Sets the icon of @notification to @icon. | |
| 235 | 218 | func (x *Notification) SetIcon(IconVar Icon) { | |
| 236 | - | core.LazyRegister(&xNotificationSetIcon, "GIO", "g_notification_set_icon", false) | |
| 237 | - | ||
| 238 | 219 | xNotificationSetIcon(x.GoPointer(), IconVar.GoPointer()) | |
| 239 | 220 | } | |
| 240 | 221 | ||
| @@ -243,8 +224,6 @@ var xNotificationSetPriority func(uintptr, NotificationPriority) | |||
| 243 | 224 | // Sets the priority of @notification to @priority. See | |
| 244 | 225 | // #GNotificationPriority for possible values. | |
| 245 | 226 | func (x *Notification) SetPriority(PriorityVar NotificationPriority) { | |
| 246 | - | core.LazyRegister(&xNotificationSetPriority, "GIO", "g_notification_set_priority", false) | |
| 247 | - | ||
| 248 | 227 | xNotificationSetPriority(x.GoPointer(), PriorityVar) | |
| 249 | 228 | } | |
| 250 | 229 | ||
| @@ -252,8 +231,6 @@ var xNotificationSetTitle func(uintptr, string) | |||
| 252 | 231 | ||
| 253 | 232 | // Sets the title of @notification to @title. | |
| 254 | 233 | func (x *Notification) SetTitle(TitleVar string) { | |
| 255 | - | core.LazyRegister(&xNotificationSetTitle, "GIO", "g_notification_set_title", false) | |
| 256 | - | ||
| 257 | 234 | xNotificationSetTitle(x.GoPointer(), TitleVar) | |
| 258 | 235 | } | |
| 259 | 236 | ||
| @@ -261,8 +238,6 @@ var xNotificationSetUrgent func(uintptr, bool) | |||
| 261 | 238 | ||
| 262 | 239 | // Deprecated in favor of g_notification_set_priority(). | |
| 263 | 240 | func (x *Notification) SetUrgent(UrgentVar bool) { | |
| 264 | - | core.LazyRegister(&xNotificationSetUrgent, "GIO", "g_notification_set_urgent", false) | |
| 265 | - | ||
| 266 | 241 | xNotificationSetUrgent(x.GoPointer(), UrgentVar) | |
| 267 | 242 | } | |
| 268 | 243 | ||
| @@ -280,4 +255,29 @@ func (c *Notification) SetGoPointer(ptr uintptr) { | |||
| 280 | 255 | func init() { | |
| 281 | 256 | core.SetPackageName("GIO", "gio-2.0") | |
| 282 | 257 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | |
| 258 | + | var libs []uintptr | |
| 259 | + | for _, libPath := range core.GetPaths("GIO") { | |
| 260 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 261 | + | if err != nil { | |
| 262 | + | panic(err) | |
| 263 | + | } | |
| 264 | + | libs = append(libs, lib) | |
| 265 | + | } | |
| 266 | + | ||
| 267 | + | core.PuregoSafeRegister(&xNotificationGLibType, libs, "g_notification_get_type") | |
| 268 | + | ||
| 269 | + | core.PuregoSafeRegister(&xNewNotification, libs, "g_notification_new") | |
| 270 | + | ||
| 271 | + | core.PuregoSafeRegister(&xNotificationAddButton, libs, "g_notification_add_button") | |
| 272 | + | core.PuregoSafeRegister(&xNotificationAddButtonWithTarget, libs, "g_notification_add_button_with_target") | |
| 273 | + | core.PuregoSafeRegister(&xNotificationAddButtonWithTargetValue, libs, "g_notification_add_button_with_target_value") | |
| 274 | + | core.PuregoSafeRegister(&xNotificationSetBody, libs, "g_notification_set_body") | |
| 275 | + | core.PuregoSafeRegister(&xNotificationSetCategory, libs, "g_notification_set_category") | |
| 276 | + | core.PuregoSafeRegister(&xNotificationSetDefaultAction, libs, "g_notification_set_default_action") | |
| 277 | + | core.PuregoSafeRegister(&xNotificationSetDefaultActionAndTarget, libs, "g_notification_set_default_action_and_target") | |
| 278 | + | core.PuregoSafeRegister(&xNotificationSetDefaultActionAndTargetValue, libs, "g_notification_set_default_action_and_target_value") | |
| 279 | + | core.PuregoSafeRegister(&xNotificationSetIcon, libs, "g_notification_set_icon") | |
| 280 | + | core.PuregoSafeRegister(&xNotificationSetPriority, libs, "g_notification_set_priority") | |
| 281 | + | core.PuregoSafeRegister(&xNotificationSetTitle, libs, "g_notification_set_title") | |
| 282 | + | core.PuregoSafeRegister(&xNotificationSetUrgent, libs, "g_notification_set_urgent") | |
| 283 | 283 | } | |
| @@ -2,6 +2,7 @@ | |||||
| 2 | package gio | 2 | package gio | ||
| 3 | 3 | ||||
| 4 | import ( | 4 | import ( | ||
| 5 | + | "github.com/bnema/purego" | |||
| 5 | "github.com/bnema/puregotk/pkg/core" | 6 | "github.com/bnema/puregotk/pkg/core" | ||
| 6 | "github.com/bnema/puregotk/v4/glib" | 7 | "github.com/bnema/puregotk/v4/glib" | ||
| 7 | "github.com/bnema/puregotk/v4/gobject" | 8 | "github.com/bnema/puregotk/v4/gobject" | ||
| @@ -63,7 +64,6 @@ type Notification struct { | |||||
| 63 | var xNotificationGLibType func() types.GType | 64 | var xNotificationGLibType func() types.GType | ||
| 64 | 65 | ||||
| 65 | func NotificationGLibType() types.GType { | 66 | func NotificationGLibType() types.GType { | ||
| 66 | - | core.LazyRegister(&xNotificationGLibType, "GIO", "g_notification_get_type", false) | |||
| 67 | return xNotificationGLibType() | 67 | return xNotificationGLibType() | ||
| 68 | } | 68 | } | ||
| 69 | 69 | ||||
| @@ -82,7 +82,6 @@ var xNewNotification func(string) uintptr | |||||
| 82 | // any properties after this call will not have any effect until | 82 | // any properties after this call will not have any effect until | ||
| 83 | // resending @notification. | 83 | // resending @notification. | ||
| 84 | func NewNotification(TitleVar string) *Notification { | 84 | func NewNotification(TitleVar string) *Notification { | ||
| 85 | - | core.LazyRegister(&xNewNotification, "GIO", "g_notification_new", false) | |||
| 86 | var cls *Notification | 85 | var cls *Notification | ||
| 87 | 86 | ||||
| 88 | cret := xNewNotification(TitleVar) | 87 | cret := xNewNotification(TitleVar) | ||
| @@ -106,8 +105,6 @@ var xNotificationAddButton func(uintptr, string, string) | |||||
| 106 | // See g_action_parse_detailed_name() for a description of the format | 105 | // See g_action_parse_detailed_name() for a description of the format | ||
| 107 | // for @detailed_action. | 106 | // for @detailed_action. | ||
| 108 | func (x *Notification) AddButton(LabelVar string, DetailedActionVar string) { | 107 | func (x *Notification) AddButton(LabelVar string, DetailedActionVar string) { | ||
| 109 | - | core.LazyRegister(&xNotificationAddButton, "GIO", "g_notification_add_button", false) | |||
| 110 | - | ||||
| 111 | xNotificationAddButton(x.GoPointer(), LabelVar, DetailedActionVar) | 108 | xNotificationAddButton(x.GoPointer(), LabelVar, DetailedActionVar) | ||
| 112 | } | 109 | } | ||
| 113 | 110 | ||||
| @@ -121,8 +118,6 @@ var xNotificationAddButtonWithTarget func(uintptr, string, string, uintptr, ...i | |||||
| 121 | // g_variant_new(). @action will be activated with that #GVariant as its | 118 | // g_variant_new(). @action will be activated with that #GVariant as its | ||
| 122 | // parameter. | 119 | // parameter. | ||
| 123 | func (x *Notification) AddButtonWithTarget(LabelVar string, ActionVar string, TargetFormatVar *string, varArgs ...interface{}) { | 120 | func (x *Notification) AddButtonWithTarget(LabelVar string, ActionVar string, TargetFormatVar *string, varArgs ...interface{}) { | ||
| 124 | - | core.LazyRegister(&xNotificationAddButtonWithTarget, "GIO", "g_notification_add_button_with_target", false) | |||
| 125 | - | ||||
| 126 | TargetFormatVarPtr := core.GStrdupNullable(TargetFormatVar) | 121 | TargetFormatVarPtr := core.GStrdupNullable(TargetFormatVar) | ||
| 127 | defer core.GFreeNullable(TargetFormatVarPtr) | 122 | defer core.GFreeNullable(TargetFormatVarPtr) | ||
| 128 | 123 | ||||
| @@ -137,8 +132,6 @@ var xNotificationAddButtonWithTargetValue func(uintptr, string, string, *glib.Va | |||||
| 137 | // If @target is non-%NULL, @action will be activated with @target as | 132 | // If @target is non-%NULL, @action will be activated with @target as | ||
| 138 | // its parameter. | 133 | // its parameter. | ||
| 139 | func (x *Notification) AddButtonWithTargetValue(LabelVar string, ActionVar string, TargetVar *glib.Variant) { | 134 | func (x *Notification) AddButtonWithTargetValue(LabelVar string, ActionVar string, TargetVar *glib.Variant) { | ||
| 140 | - | core.LazyRegister(&xNotificationAddButtonWithTargetValue, "GIO", "g_notification_add_button_with_target_value", false) | |||
| 141 | - | ||||
| 142 | xNotificationAddButtonWithTargetValue(x.GoPointer(), LabelVar, ActionVar, TargetVar) | 135 | xNotificationAddButtonWithTargetValue(x.GoPointer(), LabelVar, ActionVar, TargetVar) | ||
| 143 | } | 136 | } | ||
| 144 | 137 | ||||
| @@ -146,8 +139,6 @@ var xNotificationSetBody func(uintptr, uintptr) | |||||
| 146 | 139 | ||||
| 147 | // Sets the body of @notification to @body. | 140 | // Sets the body of @notification to @body. | ||
| 148 | func (x *Notification) SetBody(BodyVar *string) { | 141 | func (x *Notification) SetBody(BodyVar *string) { | ||
| 149 | - | core.LazyRegister(&xNotificationSetBody, "GIO", "g_notification_set_body", false) | |||
| 150 | - | ||||
| 151 | BodyVarPtr := core.GStrdupNullable(BodyVar) | 142 | BodyVarPtr := core.GStrdupNullable(BodyVar) | ||
| 152 | defer core.GFreeNullable(BodyVarPtr) | 143 | defer core.GFreeNullable(BodyVarPtr) | ||
| 153 | 144 | ||||
| @@ -163,8 +154,6 @@ var xNotificationSetCategory func(uintptr, uintptr) | |||||
| 163 | // | 154 | // | ||
| 164 | // Standard categories are [listed in the specification](https://specifications.freedesktop.org/notification-spec/latest/ar01s06.html). | 155 | // Standard categories are [listed in the specification](https://specifications.freedesktop.org/notification-spec/latest/ar01s06.html). | ||
| 165 | func (x *Notification) SetCategory(CategoryVar *string) { | 156 | func (x *Notification) SetCategory(CategoryVar *string) { | ||
| 166 | - | core.LazyRegister(&xNotificationSetCategory, "GIO", "g_notification_set_category", false) | |||
| 167 | - | ||||
| 168 | CategoryVarPtr := core.GStrdupNullable(CategoryVar) | 157 | CategoryVarPtr := core.GStrdupNullable(CategoryVar) | ||
| 169 | defer core.GFreeNullable(CategoryVarPtr) | 158 | defer core.GFreeNullable(CategoryVarPtr) | ||
| 170 | 159 | ||||
| @@ -185,8 +174,6 @@ var xNotificationSetDefaultAction func(uintptr, string) | |||||
| 185 | // When no default action is set, the application that the notification | 174 | // When no default action is set, the application that the notification | ||
| 186 | // was sent on is activated. | 175 | // was sent on is activated. | ||
| 187 | func (x *Notification) SetDefaultAction(DetailedActionVar string) { | 176 | func (x *Notification) SetDefaultAction(DetailedActionVar string) { | ||
| 188 | - | core.LazyRegister(&xNotificationSetDefaultAction, "GIO", "g_notification_set_default_action", false) | |||
| 189 | - | ||||
| 190 | xNotificationSetDefaultAction(x.GoPointer(), DetailedActionVar) | 177 | xNotificationSetDefaultAction(x.GoPointer(), DetailedActionVar) | ||
| 191 | } | 178 | } | ||
| 192 | 179 | ||||
| @@ -204,8 +191,6 @@ var xNotificationSetDefaultActionAndTarget func(uintptr, string, uintptr, ...int | |||||
| 204 | // When no default action is set, the application that the notification | 191 | // When no default action is set, the application that the notification | ||
| 205 | // was sent on is activated. | 192 | // was sent on is activated. | ||
| 206 | func (x *Notification) SetDefaultActionAndTarget(ActionVar string, TargetFormatVar *string, varArgs ...interface{}) { | 193 | func (x *Notification) SetDefaultActionAndTarget(ActionVar string, TargetFormatVar *string, varArgs ...interface{}) { | ||
| 207 | - | core.LazyRegister(&xNotificationSetDefaultActionAndTarget, "GIO", "g_notification_set_default_action_and_target", false) | |||
| 208 | - | ||||
| 209 | TargetFormatVarPtr := core.GStrdupNullable(TargetFormatVar) | 194 | TargetFormatVarPtr := core.GStrdupNullable(TargetFormatVar) | ||
| 210 | defer core.GFreeNullable(TargetFormatVarPtr) | 195 | defer core.GFreeNullable(TargetFormatVarPtr) | ||
| 211 | 196 | ||||
| @@ -224,8 +209,6 @@ var xNotificationSetDefaultActionAndTargetValue func(uintptr, string, *glib.Vari | |||||
| 224 | // When no default action is set, the application that the notification | 209 | // When no default action is set, the application that the notification | ||
| 225 | // was sent on is activated. | 210 | // was sent on is activated. | ||
| 226 | func (x *Notification) SetDefaultActionAndTargetValue(ActionVar string, TargetVar *glib.Variant) { | 211 | func (x *Notification) SetDefaultActionAndTargetValue(ActionVar string, TargetVar *glib.Variant) { | ||
| 227 | - | core.LazyRegister(&xNotificationSetDefaultActionAndTargetValue, "GIO", "g_notification_set_default_action_and_target_value", false) | |||
| 228 | - | ||||
| 229 | xNotificationSetDefaultActionAndTargetValue(x.GoPointer(), ActionVar, TargetVar) | 212 | xNotificationSetDefaultActionAndTargetValue(x.GoPointer(), ActionVar, TargetVar) | ||
| 230 | } | 213 | } | ||
| 231 | 214 | ||||
| @@ -233,8 +216,6 @@ var xNotificationSetIcon func(uintptr, uintptr) | |||||
| 233 | 216 | ||||
| 234 | // Sets the icon of @notification to @icon. | 217 | // Sets the icon of @notification to @icon. | ||
| 235 | func (x *Notification) SetIcon(IconVar Icon) { | 218 | func (x *Notification) SetIcon(IconVar Icon) { | ||
| 236 | - | core.LazyRegister(&xNotificationSetIcon, "GIO", "g_notification_set_icon", false) | |||
| 237 | - | ||||
| 238 | xNotificationSetIcon(x.GoPointer(), IconVar.GoPointer()) | 219 | xNotificationSetIcon(x.GoPointer(), IconVar.GoPointer()) | ||
| 239 | } | 220 | } | ||
| 240 | 221 | ||||
| @@ -243,8 +224,6 @@ var xNotificationSetPriority func(uintptr, NotificationPriority) | |||||
| 243 | // Sets the priority of @notification to @priority. See | 224 | // Sets the priority of @notification to @priority. See | ||
| 244 | // #GNotificationPriority for possible values. | 225 | // #GNotificationPriority for possible values. | ||
| 245 | func (x *Notification) SetPriority(PriorityVar NotificationPriority) { | 226 | func (x *Notification) SetPriority(PriorityVar NotificationPriority) { | ||
| 246 | - | core.LazyRegister(&xNotificationSetPriority, "GIO", "g_notification_set_priority", false) | |||
| 247 | - | ||||
| 248 | xNotificationSetPriority(x.GoPointer(), PriorityVar) | 227 | xNotificationSetPriority(x.GoPointer(), PriorityVar) | ||
| 249 | } | 228 | } | ||
| 250 | 229 | ||||
| @@ -252,8 +231,6 @@ var xNotificationSetTitle func(uintptr, string) | |||||
| 252 | 231 | ||||
| 253 | // Sets the title of @notification to @title. | 232 | // Sets the title of @notification to @title. | ||
| 254 | func (x *Notification) SetTitle(TitleVar string) { | 233 | func (x *Notification) SetTitle(TitleVar string) { | ||
| 255 | - | core.LazyRegister(&xNotificationSetTitle, "GIO", "g_notification_set_title", false) | |||
| 256 | - | ||||
| 257 | xNotificationSetTitle(x.GoPointer(), TitleVar) | 234 | xNotificationSetTitle(x.GoPointer(), TitleVar) | ||
| 258 | } | 235 | } | ||
| 259 | 236 | ||||
| @@ -261,8 +238,6 @@ var xNotificationSetUrgent func(uintptr, bool) | |||||
| 261 | 238 | ||||
| 262 | // Deprecated in favor of g_notification_set_priority(). | 239 | // Deprecated in favor of g_notification_set_priority(). | ||
| 263 | func (x *Notification) SetUrgent(UrgentVar bool) { | 240 | func (x *Notification) SetUrgent(UrgentVar bool) { | ||
| 264 | - | core.LazyRegister(&xNotificationSetUrgent, "GIO", "g_notification_set_urgent", false) | |||
| 265 | - | ||||
| 266 | xNotificationSetUrgent(x.GoPointer(), UrgentVar) | 241 | xNotificationSetUrgent(x.GoPointer(), UrgentVar) | ||
| 267 | } | 242 | } | ||
| 268 | 243 | ||||
| @@ -280,4 +255,29 @@ func (c *Notification) SetGoPointer(ptr uintptr) { | |||||
| 280 | func init() { | 255 | func init() { | ||
| 281 | core.SetPackageName("GIO", "gio-2.0") | 256 | core.SetPackageName("GIO", "gio-2.0") | ||
| 282 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | 257 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | ||
| 258 | + | var libs []uintptr | |||
| 259 | + | for _, libPath := range core.GetPaths("GIO") { | |||
| 260 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 261 | + | if err != nil { | |||
| 262 | + | panic(err) | |||
| 263 | + | } | |||
| 264 | + | libs = append(libs, lib) | |||
| 265 | + | } | |||
| 266 | + | ||||
| 267 | + | core.PuregoSafeRegister(&xNotificationGLibType, libs, "g_notification_get_type") | |||
| 268 | + | ||||
| 269 | + | core.PuregoSafeRegister(&xNewNotification, libs, "g_notification_new") | |||
| 270 | + | ||||
| 271 | + | core.PuregoSafeRegister(&xNotificationAddButton, libs, "g_notification_add_button") | |||
| 272 | + | core.PuregoSafeRegister(&xNotificationAddButtonWithTarget, libs, "g_notification_add_button_with_target") | |||
| 273 | + | core.PuregoSafeRegister(&xNotificationAddButtonWithTargetValue, libs, "g_notification_add_button_with_target_value") | |||
| 274 | + | core.PuregoSafeRegister(&xNotificationSetBody, libs, "g_notification_set_body") | |||
| 275 | + | core.PuregoSafeRegister(&xNotificationSetCategory, libs, "g_notification_set_category") | |||
| 276 | + | core.PuregoSafeRegister(&xNotificationSetDefaultAction, libs, "g_notification_set_default_action") | |||
| 277 | + | core.PuregoSafeRegister(&xNotificationSetDefaultActionAndTarget, libs, "g_notification_set_default_action_and_target") | |||
| 278 | + | core.PuregoSafeRegister(&xNotificationSetDefaultActionAndTargetValue, libs, "g_notification_set_default_action_and_target_value") | |||
| 279 | + | core.PuregoSafeRegister(&xNotificationSetIcon, libs, "g_notification_set_icon") | |||
| 280 | + | core.PuregoSafeRegister(&xNotificationSetPriority, libs, "g_notification_set_priority") | |||
| 281 | + | core.PuregoSafeRegister(&xNotificationSetTitle, libs, "g_notification_set_title") | |||
| 282 | + | core.PuregoSafeRegister(&xNotificationSetUrgent, libs, "g_notification_set_urgent") | |||
| 283 | } | 283 | } | ||