Revert "chore(deps): pin puregotk nil-signal fix"
This reverts commit a161e348e2093172038390b0906448f0ae979a0d.
- commit
- 40378d5e4fd2372d054e49168ab2a6f67aedd0fd
- author
- brice · · 2026-07-14 17:59 UTC
- parent
- 8d647bb
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
905 files · +25263 -27842
M go.mod +1 -1
| @@ -11,7 +11,7 @@ require ( | |||
| 11 | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | |
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | |
| 14 | + | github.com/bnema/puregotk v0.7.0 | |
| 15 | 15 | github.com/charmbracelet/bubbles v1.0.0 | |
| 16 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 17 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -11,7 +11,7 @@ require ( | |||||
| 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | ||
| 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | ||
| 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | ||
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | 14 | + | github.com/bnema/puregotk v0.7.0 |
| 15 | github.com/charmbracelet/bubbles v1.0.0 | 15 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 16 | github.com/charmbracelet/bubbletea v1.3.10 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 17 | github.com/charmbracelet/lipgloss v1.1.0 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | ||
M go.sum +0 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +4 -197 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +0 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +64 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +62 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +29 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +47 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +27 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +25 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +26 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +38 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +37 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +37 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +33 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +38 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +48 -61 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +24 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +17 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +56 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +15 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +44 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +49 -60 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +38 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +33 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +29 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +27 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +39 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +34 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +30 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +21 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +44 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +24 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +28 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +30 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +32 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +87 -123 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +28 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +36 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +51 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +35 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +62 -78 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +22 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +46 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +46 -57 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/cairo/main.go +79 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +25 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +32 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +31 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +28 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +22 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +43 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +41 -53 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +28 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +24 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +1 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +118 -120 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +20 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +36 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +35 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +22 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +35 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmonitor.go +27 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpaintable.go +33 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +26 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +21 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +20 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +40 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +66 -157 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +25 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +16 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +72 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +32 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-core.go +0 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-io.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-loader.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-transform.go +1 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf.go +79 -102 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/main.go +17 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gaction.go +31 -59 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactiongroup.go +39 -96 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactionmap.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gappinfo.go +116 -244 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplication.go +55 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplicationcommandline.go +27 -31 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 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/goutputstream.go +72 -86 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpermission.go +33 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableinputstream.go +22 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableoutputstream.go +27 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableutils.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpowerprofilemonitor.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpropertyaction.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxy.go +27 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddress.go +21 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddressenumerator.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyresolver.go +27 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gremoteactiongroup.go +15 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresolver.go +67 -75 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresource.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gseekable.go +27 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettings.go +67 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsbackend.go +24 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsschema.go +43 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleaction.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleactiongroup.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleasyncresult.go +40 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleiostream.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimplepermission.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleproxyresolver.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocket.go +72 -87 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddress.go +19 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddressenumerator.go +20 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketclient.go +44 -54 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnectable.go +17 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnection.go +21 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketcontrolmessage.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketlistener.go +25 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketservice.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsrvtarget.go +11 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocess.go +39 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocesslauncher.go +31 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtask.go +52 -70 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpconnection.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpwrapperconnection.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtestdbus.go +22 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthemedicon.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedresolver.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedsocketservice.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsbackend.go +33 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlscertificate.go +29 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsclientconnection.go +29 -55 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsconnection.go +46 -56 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsdatabase.go +48 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsfiledatabase.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsinteraction.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlspassword.go +22 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsserverconnection.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixconnection.go +20 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixcredentialsmessage.go +17 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixfdlist.go +19 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixsocketaddress.go +22 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvfs.go +24 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolume.go +58 -143 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolumemonitor.go +19 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibcompressor.go +18 -9 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibdecompressor.go +15 -3 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/main.go +11 -2 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gallocator.go +28 -32 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/garray.go +59 -82 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gasyncqueue.go +39 -56 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gatomic.go +34 -43 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbacktrace.go +15 -5 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbase64.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbitlock.go +24 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbookmarkfile.go +61 -69 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcache.go +15 -10 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcharset.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gchecksum.go +25 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcompletion.go +17 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gconvert.go +28 -25 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdataset.go +28 -36 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdate.go +65 -103 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdatetime.go +66 -107
| @@ -5,6 +5,7 @@ import ( | |||
| 5 | 5 | "structs" | |
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | + | "github.com/bnema/purego" | |
| 8 | 9 | "github.com/bnema/puregotk/pkg/core" | |
| 9 | 10 | "github.com/bnema/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| @@ -41,7 +42,6 @@ type DateTime struct { | |||
| 41 | 42 | var xDateTimeGLibType func() types.GType | |
| 42 | 43 | ||
| 43 | 44 | func DateTimeGLibType() types.GType { | |
| 44 | - | core.LazyRegister(&xDateTimeGLibType, "GLIB", "g_date_time_get_type", false) | |
| 45 | 45 | return xDateTimeGLibType() | |
| 46 | 46 | } | |
| 47 | 47 | ||
| @@ -88,8 +88,6 @@ var xNewDateTime func(*TimeZone, int, int, int, int, int, float64) uintptr | |||
| 88 | 88 | // You should release the return value by calling g_date_time_unref() | |
| 89 | 89 | // when you are done with it. | |
| 90 | 90 | func NewDateTime(TzVar *TimeZone, YearVar int, MonthVar int, DayVar int, HourVar int, MinuteVar int, SecondsVar float64) *DateTime { | |
| 91 | - | core.LazyRegister(&xNewDateTime, "GLIB", "g_date_time_new", false) | |
| 92 | - | ||
| 93 | 91 | cret := xNewDateTime(TzVar, YearVar, MonthVar, DayVar, HourVar, MinuteVar, SecondsVar) | |
| 94 | 92 | if cret == 0 { | |
| 95 | 93 | return nil | |
| @@ -143,8 +141,6 @@ var xNewDateTimeFromIso8601 func(string, *TimeZone) uintptr | |||
| 143 | 141 | // You should release the return value by calling g_date_time_unref() | |
| 144 | 142 | // when you are done with it. | |
| 145 | 143 | func NewDateTimeFromIso8601(TextVar string, DefaultTzVar *TimeZone) *DateTime { | |
| 146 | - | core.LazyRegister(&xNewDateTimeFromIso8601, "GLIB", "g_date_time_new_from_iso8601", false) | |
| 147 | - | ||
| 148 | 144 | cret := xNewDateTimeFromIso8601(TextVar, DefaultTzVar) | |
| 149 | 145 | if cret == 0 { | |
| 150 | 146 | return nil | |
| @@ -167,8 +163,6 @@ var xNewDateTimeFromTimevalLocal func(*TimeVal) uintptr | |||
| 167 | 163 | // You should release the return value by calling g_date_time_unref() | |
| 168 | 164 | // when you are done with it. | |
| 169 | 165 | func NewDateTimeFromTimevalLocal(TvVar *TimeVal) *DateTime { | |
| 170 | - | core.LazyRegister(&xNewDateTimeFromTimevalLocal, "GLIB", "g_date_time_new_from_timeval_local", false) | |
| 171 | - | ||
| 172 | 166 | cret := xNewDateTimeFromTimevalLocal(TvVar) | |
| 173 | 167 | if cret == 0 { | |
| 174 | 168 | return nil | |
| @@ -189,8 +183,6 @@ var xNewDateTimeFromTimevalUtc func(*TimeVal) uintptr | |||
| 189 | 183 | // You should release the return value by calling g_date_time_unref() | |
| 190 | 184 | // when you are done with it. | |
| 191 | 185 | func NewDateTimeFromTimevalUtc(TvVar *TimeVal) *DateTime { | |
| 192 | - | core.LazyRegister(&xNewDateTimeFromTimevalUtc, "GLIB", "g_date_time_new_from_timeval_utc", false) | |
| 193 | - | ||
| 194 | 186 | cret := xNewDateTimeFromTimevalUtc(TvVar) | |
| 195 | 187 | if cret == 0 { | |
| 196 | 188 | return nil | |
| @@ -212,8 +204,6 @@ var xNewDateTimeFromUnixLocal func(int64) uintptr | |||
| 212 | 204 | // You should release the return value by calling g_date_time_unref() | |
| 213 | 205 | // when you are done with it. | |
| 214 | 206 | func NewDateTimeFromUnixLocal(TVar int64) *DateTime { | |
| 215 | - | core.LazyRegister(&xNewDateTimeFromUnixLocal, "GLIB", "g_date_time_new_from_unix_local", false) | |
| 216 | - | ||
| 217 | 207 | cret := xNewDateTimeFromUnixLocal(TVar) | |
| 218 | 208 | if cret == 0 { | |
| 219 | 209 | return nil | |
| @@ -235,8 +225,6 @@ var xNewDateTimeFromUnixLocalUsec func(int64) uintptr | |||
| 235 | 225 | // You should release the return value by calling [method@GLib.DateTime.unref] | |
| 236 | 226 | // when you are done with it. | |
| 237 | 227 | func NewDateTimeFromUnixLocalUsec(UsecsVar int64) *DateTime { | |
| 238 | - | core.LazyRegister(&xNewDateTimeFromUnixLocalUsec, "GLIB", "g_date_time_new_from_unix_local_usec", false) | |
| 239 | - | ||
| 240 | 228 | cret := xNewDateTimeFromUnixLocalUsec(UsecsVar) | |
| 241 | 229 | if cret == 0 { | |
| 242 | 230 | return nil | |
| @@ -257,8 +245,6 @@ var xNewDateTimeFromUnixUtc func(int64) uintptr | |||
| 257 | 245 | // You should release the return value by calling g_date_time_unref() | |
| 258 | 246 | // when you are done with it. | |
| 259 | 247 | func NewDateTimeFromUnixUtc(TVar int64) *DateTime { | |
| 260 | - | core.LazyRegister(&xNewDateTimeFromUnixUtc, "GLIB", "g_date_time_new_from_unix_utc", false) | |
| 261 | - | ||
| 262 | 248 | cret := xNewDateTimeFromUnixUtc(TVar) | |
| 263 | 249 | if cret == 0 { | |
| 264 | 250 | return nil | |
| @@ -279,8 +265,6 @@ var xNewDateTimeFromUnixUtcUsec func(int64) uintptr | |||
| 279 | 265 | // You should release the return value by calling [method@GLib.DateTime.unref] | |
| 280 | 266 | // when you are done with it. | |
| 281 | 267 | func NewDateTimeFromUnixUtcUsec(UsecsVar int64) *DateTime { | |
| 282 | - | core.LazyRegister(&xNewDateTimeFromUnixUtcUsec, "GLIB", "g_date_time_new_from_unix_utc_usec", false) | |
| 283 | - | ||
| 284 | 268 | cret := xNewDateTimeFromUnixUtcUsec(UsecsVar) | |
| 285 | 269 | if cret == 0 { | |
| 286 | 270 | return nil | |
| @@ -296,8 +280,6 @@ var xNewDateTimeLocal func(int, int, int, int, int, float64) uintptr | |||
| 296 | 280 | // This call is equivalent to calling g_date_time_new() with the time | |
| 297 | 281 | // zone returned by g_time_zone_new_local(). | |
| 298 | 282 | func NewDateTimeLocal(YearVar int, MonthVar int, DayVar int, HourVar int, MinuteVar int, SecondsVar float64) *DateTime { | |
| 299 | - | core.LazyRegister(&xNewDateTimeLocal, "GLIB", "g_date_time_new_local", false) | |
| 300 | - | ||
| 301 | 283 | cret := xNewDateTimeLocal(YearVar, MonthVar, DayVar, HourVar, MinuteVar, SecondsVar) | |
| 302 | 284 | if cret == 0 { | |
| 303 | 285 | return nil | |
| @@ -317,8 +299,6 @@ var xNewDateTimeNow func(*TimeZone) uintptr | |||
| 317 | 299 | // You should release the return value by calling g_date_time_unref() | |
| 318 | 300 | // when you are done with it. | |
| 319 | 301 | func NewDateTimeNow(TzVar *TimeZone) *DateTime { | |
| 320 | - | core.LazyRegister(&xNewDateTimeNow, "GLIB", "g_date_time_new_now", false) | |
| 321 | - | ||
| 322 | 302 | cret := xNewDateTimeNow(TzVar) | |
| 323 | 303 | if cret == 0 { | |
| 324 | 304 | return nil | |
| @@ -334,8 +314,6 @@ var xNewDateTimeNowLocal func() uintptr | |||
| 334 | 314 | // This is equivalent to calling g_date_time_new_now() with the time | |
| 335 | 315 | // zone returned by g_time_zone_new_local(). | |
| 336 | 316 | func NewDateTimeNowLocal() *DateTime { | |
| 337 | - | core.LazyRegister(&xNewDateTimeNowLocal, "GLIB", "g_date_time_new_now_local", false) | |
| 338 | - | ||
| 339 | 317 | cret := xNewDateTimeNowLocal() | |
| 340 | 318 | if cret == 0 { | |
| 341 | 319 | return nil | |
| @@ -350,8 +328,6 @@ var xNewDateTimeNowUtc func() uintptr | |||
| 350 | 328 | // This is equivalent to calling g_date_time_new_now() with the time | |
| 351 | 329 | // zone returned by g_time_zone_new_utc(). | |
| 352 | 330 | func NewDateTimeNowUtc() *DateTime { | |
| 353 | - | core.LazyRegister(&xNewDateTimeNowUtc, "GLIB", "g_date_time_new_now_utc", false) | |
| 354 | - | ||
| 355 | 331 | cret := xNewDateTimeNowUtc() | |
| 356 | 332 | if cret == 0 { | |
| 357 | 333 | return nil | |
| @@ -367,8 +343,6 @@ var xNewDateTimeUtc func(int, int, int, int, int, float64) uintptr | |||
| 367 | 343 | // This call is equivalent to calling g_date_time_new() with the time | |
| 368 | 344 | // zone returned by g_time_zone_new_utc(). | |
| 369 | 345 | func NewDateTimeUtc(YearVar int, MonthVar int, DayVar int, HourVar int, MinuteVar int, SecondsVar float64) *DateTime { | |
| 370 | - | core.LazyRegister(&xNewDateTimeUtc, "GLIB", "g_date_time_new_utc", false) | |
| 371 | - | ||
| 372 | 346 | cret := xNewDateTimeUtc(YearVar, MonthVar, DayVar, HourVar, MinuteVar, SecondsVar) | |
| 373 | 347 | if cret == 0 { | |
| 374 | 348 | return nil | |
| @@ -380,8 +354,6 @@ var xDateTimeAdd func(uintptr, TimeSpan) uintptr | |||
| 380 | 354 | ||
| 381 | 355 | // Creates a copy of @datetime and adds the specified timespan to the copy. | |
| 382 | 356 | func (x *DateTime) Add(TimespanVar TimeSpan) *DateTime { | |
| 383 | - | core.LazyRegister(&xDateTimeAdd, "GLIB", "g_date_time_add", false) | |
| 384 | - | ||
| 385 | 357 | cret := xDateTimeAdd(x.GoPointer(), TimespanVar) | |
| 386 | 358 | if cret == 0 { | |
| 387 | 359 | return nil | |
| @@ -394,8 +366,6 @@ var xDateTimeAddDays func(uintptr, int) uintptr | |||
| 394 | 366 | // Creates a copy of @datetime and adds the specified number of days to the | |
| 395 | 367 | // copy. Add negative values to subtract days. | |
| 396 | 368 | func (x *DateTime) AddDays(DaysVar int) *DateTime { | |
| 397 | - | core.LazyRegister(&xDateTimeAddDays, "GLIB", "g_date_time_add_days", false) | |
| 398 | - | ||
| 399 | 369 | cret := xDateTimeAddDays(x.GoPointer(), DaysVar) | |
| 400 | 370 | if cret == 0 { | |
| 401 | 371 | return nil | |
| @@ -408,8 +378,6 @@ var xDateTimeAddFull func(uintptr, int, int, int, int, int, float64) uintptr | |||
| 408 | 378 | // Creates a new #GDateTime adding the specified values to the current date and | |
| 409 | 379 | // time in @datetime. Add negative values to subtract. | |
| 410 | 380 | func (x *DateTime) AddFull(YearsVar int, MonthsVar int, DaysVar int, HoursVar int, MinutesVar int, SecondsVar float64) *DateTime { | |
| 411 | - | core.LazyRegister(&xDateTimeAddFull, "GLIB", "g_date_time_add_full", false) | |
| 412 | - | ||
| 413 | 381 | cret := xDateTimeAddFull(x.GoPointer(), YearsVar, MonthsVar, DaysVar, HoursVar, MinutesVar, SecondsVar) | |
| 414 | 382 | if cret == 0 { | |
| 415 | 383 | return nil | |
| @@ -422,8 +390,6 @@ var xDateTimeAddHours func(uintptr, int) uintptr | |||
| 422 | 390 | // Creates a copy of @datetime and adds the specified number of hours. | |
| 423 | 391 | // Add negative values to subtract hours. | |
| 424 | 392 | func (x *DateTime) AddHours(HoursVar int) *DateTime { | |
| 425 | - | core.LazyRegister(&xDateTimeAddHours, "GLIB", "g_date_time_add_hours", false) | |
| 426 | - | ||
| 427 | 393 | cret := xDateTimeAddHours(x.GoPointer(), HoursVar) | |
| 428 | 394 | if cret == 0 { | |
| 429 | 395 | return nil | |
| @@ -436,8 +402,6 @@ var xDateTimeAddMinutes func(uintptr, int) uintptr | |||
| 436 | 402 | // Creates a copy of @datetime adding the specified number of minutes. | |
| 437 | 403 | // Add negative values to subtract minutes. | |
| 438 | 404 | func (x *DateTime) AddMinutes(MinutesVar int) *DateTime { | |
| 439 | - | core.LazyRegister(&xDateTimeAddMinutes, "GLIB", "g_date_time_add_minutes", false) | |
| 440 | - | ||
| 441 | 405 | cret := xDateTimeAddMinutes(x.GoPointer(), MinutesVar) | |
| 442 | 406 | if cret == 0 { | |
| 443 | 407 | return nil | |
| @@ -455,8 +419,6 @@ var xDateTimeAddMonths func(uintptr, int) uintptr | |||
| 455 | 419 | // 31st January 2018, the result would be 28th February 2018. In 2020 (a leap | |
| 456 | 420 | // year), the result would be 29th February. | |
| 457 | 421 | func (x *DateTime) AddMonths(MonthsVar int) *DateTime { | |
| 458 | - | core.LazyRegister(&xDateTimeAddMonths, "GLIB", "g_date_time_add_months", false) | |
| 459 | - | ||
| 460 | 422 | cret := xDateTimeAddMonths(x.GoPointer(), MonthsVar) | |
| 461 | 423 | if cret == 0 { | |
| 462 | 424 | return nil | |
| @@ -469,8 +431,6 @@ var xDateTimeAddSeconds func(uintptr, float64) uintptr | |||
| 469 | 431 | // Creates a copy of @datetime and adds the specified number of seconds. | |
| 470 | 432 | // Add negative values to subtract seconds. | |
| 471 | 433 | func (x *DateTime) AddSeconds(SecondsVar float64) *DateTime { | |
| 472 | - | core.LazyRegister(&xDateTimeAddSeconds, "GLIB", "g_date_time_add_seconds", false) | |
| 473 | - | ||
| 474 | 434 | cret := xDateTimeAddSeconds(x.GoPointer(), SecondsVar) | |
| 475 | 435 | if cret == 0 { | |
| 476 | 436 | return nil | |
| @@ -483,8 +443,6 @@ var xDateTimeAddWeeks func(uintptr, int) uintptr | |||
| 483 | 443 | // Creates a copy of @datetime and adds the specified number of weeks to the | |
| 484 | 444 | // copy. Add negative values to subtract weeks. | |
| 485 | 445 | func (x *DateTime) AddWeeks(WeeksVar int) *DateTime { | |
| 486 | - | core.LazyRegister(&xDateTimeAddWeeks, "GLIB", "g_date_time_add_weeks", false) | |
| 487 | - | ||
| 488 | 446 | cret := xDateTimeAddWeeks(x.GoPointer(), WeeksVar) | |
| 489 | 447 | if cret == 0 { | |
| 490 | 448 | return nil | |
| @@ -500,8 +458,6 @@ var xDateTimeAddYears func(uintptr, int) uintptr | |||
| 500 | 458 | // As with g_date_time_add_months(), if the resulting date would be 29th | |
| 501 | 459 | // February on a non-leap year, the day will be clamped to 28th February. | |
| 502 | 460 | func (x *DateTime) AddYears(YearsVar int) *DateTime { | |
| 503 | - | core.LazyRegister(&xDateTimeAddYears, "GLIB", "g_date_time_add_years", false) | |
| 504 | - | ||
| 505 | 461 | cret := xDateTimeAddYears(x.GoPointer(), YearsVar) | |
| 506 | 462 | if cret == 0 { | |
| 507 | 463 | return nil | |
| @@ -514,8 +470,6 @@ var xDateTimeCompare func(uintptr, uintptr) int | |||
| 514 | 470 | // A comparison function for #GDateTimes that is suitable | |
| 515 | 471 | // as a #GCompareFunc. Both #GDateTimes must be non-%NULL. | |
| 516 | 472 | func (x *DateTime) Compare(Dt2Var uintptr) int { | |
| 517 | - | core.LazyRegister(&xDateTimeCompare, "GLIB", "g_date_time_compare", false) | |
| 518 | - | ||
| 519 | 473 | cret := xDateTimeCompare(x.GoPointer(), Dt2Var) | |
| 520 | 474 | return cret | |
| 521 | 475 | } | |
| @@ -526,8 +480,6 @@ var xDateTimeDifference func(uintptr, *DateTime) TimeSpan | |||
| 526 | 480 | // #GTimeSpan that is returned is effectively @end - @begin (ie: | |
| 527 | 481 | // positive if the first parameter is larger). | |
| 528 | 482 | func (x *DateTime) Difference(BeginVar *DateTime) TimeSpan { | |
| 529 | - | core.LazyRegister(&xDateTimeDifference, "GLIB", "g_date_time_difference", false) | |
| 530 | - | ||
| 531 | 483 | cret := xDateTimeDifference(x.GoPointer(), BeginVar) | |
| 532 | 484 | return cret | |
| 533 | 485 | } | |
| @@ -539,8 +491,6 @@ var xDateTimeEqual func(uintptr, uintptr) bool | |||
| 539 | 491 | // Equal here means that they represent the same moment after converting | |
| 540 | 492 | // them to the same time zone. | |
| 541 | 493 | func (x *DateTime) Equal(Dt2Var uintptr) bool { | |
| 542 | - | core.LazyRegister(&xDateTimeEqual, "GLIB", "g_date_time_equal", false) | |
| 543 | - | ||
| 544 | 494 | cret := xDateTimeEqual(x.GoPointer(), Dt2Var) | |
| 545 | 495 | return cret | |
| 546 | 496 | } | |
| @@ -672,8 +622,6 @@ var xDateTimeFormat func(uintptr, string) string | |||
| 672 | 622 | // specifier | |
| 673 | 623 | // - `%EY`: the full alternative year representation | |
| 674 | 624 | func (x *DateTime) Format(FormatVar string) string { | |
| 675 | - | core.LazyRegister(&xDateTimeFormat, "GLIB", "g_date_time_format", false) | |
| 676 | - | ||
| 677 | 625 | cret := xDateTimeFormat(x.GoPointer(), FormatVar) | |
| 678 | 626 | return cret | |
| 679 | 627 | } | |
| @@ -686,8 +634,6 @@ var xDateTimeFormatIso8601 func(uintptr) string | |||
| 686 | 634 | // | |
| 687 | 635 | // Since GLib 2.66, this will output to sub-second precision if needed. | |
| 688 | 636 | func (x *DateTime) FormatIso8601() string { | |
| 689 | - | core.LazyRegister(&xDateTimeFormatIso8601, "GLIB", "g_date_time_format_iso8601", false) | |
| 690 | - | ||
| 691 | 637 | cret := xDateTimeFormatIso8601(x.GoPointer()) | |
| 692 | 638 | return cret | |
| 693 | 639 | } | |
| @@ -697,8 +643,6 @@ var xDateTimeGetDayOfMonth func(uintptr) int | |||
| 697 | 643 | // Retrieves the day of the month represented by @datetime in the gregorian | |
| 698 | 644 | // calendar. | |
| 699 | 645 | func (x *DateTime) GetDayOfMonth() int { | |
| 700 | - | core.LazyRegister(&xDateTimeGetDayOfMonth, "GLIB", "g_date_time_get_day_of_month", false) | |
| 701 | - | ||
| 702 | 646 | cret := xDateTimeGetDayOfMonth(x.GoPointer()) | |
| 703 | 647 | return cret | |
| 704 | 648 | } | |
| @@ -708,8 +652,6 @@ var xDateTimeGetDayOfWeek func(uintptr) int | |||
| 708 | 652 | // Retrieves the ISO 8601 day of the week on which @datetime falls (1 is | |
| 709 | 653 | // Monday, 2 is Tuesday... 7 is Sunday). | |
| 710 | 654 | func (x *DateTime) GetDayOfWeek() int { | |
| 711 | - | core.LazyRegister(&xDateTimeGetDayOfWeek, "GLIB", "g_date_time_get_day_of_week", false) | |
| 712 | - | ||
| 713 | 655 | cret := xDateTimeGetDayOfWeek(x.GoPointer()) | |
| 714 | 656 | return cret | |
| 715 | 657 | } | |
| @@ -719,8 +661,6 @@ var xDateTimeGetDayOfYear func(uintptr) int | |||
| 719 | 661 | // Retrieves the day of the year represented by @datetime in the Gregorian | |
| 720 | 662 | // calendar. | |
| 721 | 663 | func (x *DateTime) GetDayOfYear() int { | |
| 722 | - | core.LazyRegister(&xDateTimeGetDayOfYear, "GLIB", "g_date_time_get_day_of_year", false) | |
| 723 | - | ||
| 724 | 664 | cret := xDateTimeGetDayOfYear(x.GoPointer()) | |
| 725 | 665 | return cret | |
| 726 | 666 | } | |
| @@ -729,8 +669,6 @@ var xDateTimeGetHour func(uintptr) int | |||
| 729 | 669 | ||
| 730 | 670 | // Retrieves the hour of the day represented by @datetime | |
| 731 | 671 | func (x *DateTime) GetHour() int { | |
| 732 | - | core.LazyRegister(&xDateTimeGetHour, "GLIB", "g_date_time_get_hour", false) | |
| 733 | - | ||
| 734 | 672 | cret := xDateTimeGetHour(x.GoPointer()) | |
| 735 | 673 | return cret | |
| 736 | 674 | } | |
| @@ -739,8 +677,6 @@ var xDateTimeGetMicrosecond func(uintptr) int | |||
| 739 | 677 | ||
| 740 | 678 | // Retrieves the microsecond of the date represented by @datetime | |
| 741 | 679 | func (x *DateTime) GetMicrosecond() int { | |
| 742 | - | core.LazyRegister(&xDateTimeGetMicrosecond, "GLIB", "g_date_time_get_microsecond", false) | |
| 743 | - | ||
| 744 | 680 | cret := xDateTimeGetMicrosecond(x.GoPointer()) | |
| 745 | 681 | return cret | |
| 746 | 682 | } | |
| @@ -749,8 +685,6 @@ var xDateTimeGetMinute func(uintptr) int | |||
| 749 | 685 | ||
| 750 | 686 | // Retrieves the minute of the hour represented by @datetime | |
| 751 | 687 | func (x *DateTime) GetMinute() int { | |
| 752 | - | core.LazyRegister(&xDateTimeGetMinute, "GLIB", "g_date_time_get_minute", false) | |
| 753 | - | ||
| 754 | 688 | cret := xDateTimeGetMinute(x.GoPointer()) | |
| 755 | 689 | return cret | |
| 756 | 690 | } | |
| @@ -760,8 +694,6 @@ var xDateTimeGetMonth func(uintptr) int | |||
| 760 | 694 | // Retrieves the month of the year represented by @datetime in the Gregorian | |
| 761 | 695 | // calendar. | |
| 762 | 696 | func (x *DateTime) GetMonth() int { | |
| 763 | - | core.LazyRegister(&xDateTimeGetMonth, "GLIB", "g_date_time_get_month", false) | |
| 764 | - | ||
| 765 | 697 | cret := xDateTimeGetMonth(x.GoPointer()) | |
| 766 | 698 | return cret | |
| 767 | 699 | } | |
| @@ -770,8 +702,6 @@ var xDateTimeGetSecond func(uintptr) int | |||
| 770 | 702 | ||
| 771 | 703 | // Retrieves the second of the minute represented by @datetime | |
| 772 | 704 | func (x *DateTime) GetSecond() int { | |
| 773 | - | core.LazyRegister(&xDateTimeGetSecond, "GLIB", "g_date_time_get_second", false) | |
| 774 | - | ||
| 775 | 705 | cret := xDateTimeGetSecond(x.GoPointer()) | |
| 776 | 706 | return cret | |
| 777 | 707 | } | |
| @@ -781,8 +711,6 @@ var xDateTimeGetSeconds func(uintptr) float64 | |||
| 781 | 711 | // Retrieves the number of seconds since the start of the last minute, | |
| 782 | 712 | // including the fractional part. | |
| 783 | 713 | func (x *DateTime) GetSeconds() float64 { | |
| 784 | - | core.LazyRegister(&xDateTimeGetSeconds, "GLIB", "g_date_time_get_seconds", false) | |
| 785 | - | ||
| 786 | 714 | cret := xDateTimeGetSeconds(x.GoPointer()) | |
| 787 | 715 | return cret | |
| 788 | 716 | } | |
| @@ -791,8 +719,6 @@ var xDateTimeGetTimezone func(uintptr) uintptr | |||
| 791 | 719 | ||
| 792 | 720 | // Get the time zone for this @datetime. | |
| 793 | 721 | func (x *DateTime) GetTimezone() *TimeZone { | |
| 794 | - | core.LazyRegister(&xDateTimeGetTimezone, "GLIB", "g_date_time_get_timezone", false) | |
| 795 | - | ||
| 796 | 722 | cret := xDateTimeGetTimezone(x.GoPointer()) | |
| 797 | 723 | if cret == 0 { | |
| 798 | 724 | return nil | |
| @@ -809,8 +735,6 @@ var xDateTimeGetTimezoneAbbreviation func(uintptr) string | |||
| 809 | 735 | // months and "EDT" during the summer months when daylight savings | |
| 810 | 736 | // time is in effect. | |
| 811 | 737 | func (x *DateTime) GetTimezoneAbbreviation() string { | |
| 812 | - | core.LazyRegister(&xDateTimeGetTimezoneAbbreviation, "GLIB", "g_date_time_get_timezone_abbreviation", false) | |
| 813 | - | ||
| 814 | 738 | cret := xDateTimeGetTimezoneAbbreviation(x.GoPointer()) | |
| 815 | 739 | return cret | |
| 816 | 740 | } | |
| @@ -826,8 +750,6 @@ var xDateTimeGetUtcOffset func(uintptr) TimeSpan | |||
| 826 | 750 | // | |
| 827 | 751 | // If @datetime represents UTC time, then the offset is always zero. | |
| 828 | 752 | func (x *DateTime) GetUtcOffset() TimeSpan { | |
| 829 | - | core.LazyRegister(&xDateTimeGetUtcOffset, "GLIB", "g_date_time_get_utc_offset", false) | |
| 830 | - | ||
| 831 | 753 | cret := xDateTimeGetUtcOffset(x.GoPointer()) | |
| 832 | 754 | return cret | |
| 833 | 755 | } | |
| @@ -866,8 +788,6 @@ var xDateTimeGetWeekNumberingYear func(uintptr) int | |||
| 866 | 788 | // Note that January 1 0001 in the proleptic Gregorian calendar is a | |
| 867 | 789 | // Monday, so this function never returns 0. | |
| 868 | 790 | func (x *DateTime) GetWeekNumberingYear() int { | |
| 869 | - | core.LazyRegister(&xDateTimeGetWeekNumberingYear, "GLIB", "g_date_time_get_week_numbering_year", false) | |
| 870 | - | ||
| 871 | 791 | cret := xDateTimeGetWeekNumberingYear(x.GoPointer()) | |
| 872 | 792 | return cret | |
| 873 | 793 | } | |
| @@ -890,8 +810,6 @@ var xDateTimeGetWeekOfYear func(uintptr) int | |||
| 890 | 810 | // considered as being part of the first ISO 8601 week of the next year | |
| 891 | 811 | // if 4 or more days of that week are contained within the new year. | |
| 892 | 812 | func (x *DateTime) GetWeekOfYear() int { | |
| 893 | - | core.LazyRegister(&xDateTimeGetWeekOfYear, "GLIB", "g_date_time_get_week_of_year", false) | |
| 894 | - | ||
| 895 | 813 | cret := xDateTimeGetWeekOfYear(x.GoPointer()) | |
| 896 | 814 | return cret | |
| 897 | 815 | } | |
| @@ -900,8 +818,6 @@ var xDateTimeGetYear func(uintptr) int | |||
| 900 | 818 | ||
| 901 | 819 | // Retrieves the year represented by @datetime in the Gregorian calendar. | |
| 902 | 820 | func (x *DateTime) GetYear() int { | |
| 903 | - | core.LazyRegister(&xDateTimeGetYear, "GLIB", "g_date_time_get_year", false) | |
| 904 | - | ||
| 905 | 821 | cret := xDateTimeGetYear(x.GoPointer()) | |
| 906 | 822 | return cret | |
| 907 | 823 | } | |
| @@ -910,8 +826,6 @@ var xDateTimeGetYmd func(uintptr, *int, *int, *int) | |||
| 910 | 826 | ||
| 911 | 827 | // Retrieves the Gregorian day, month, and year of a given #GDateTime. | |
| 912 | 828 | func (x *DateTime) GetYmd(YearVar *int, MonthVar *int, DayVar *int) { | |
| 913 | - | core.LazyRegister(&xDateTimeGetYmd, "GLIB", "g_date_time_get_ymd", false) | |
| 914 | - | ||
| 915 | 829 | xDateTimeGetYmd(x.GoPointer(), YearVar, MonthVar, DayVar) | |
| 916 | 830 | } | |
| 917 | 831 | ||
| @@ -919,8 +833,6 @@ var xDateTimeHash func(uintptr) uint | |||
| 919 | 833 | ||
| 920 | 834 | // Hashes @datetime into a #guint, suitable for use within #GHashTable. | |
| 921 | 835 | func (x *DateTime) Hash() uint { | |
| 922 | - | core.LazyRegister(&xDateTimeHash, "GLIB", "g_date_time_hash", false) | |
| 923 | - | ||
| 924 | 836 | cret := xDateTimeHash(x.GoPointer()) | |
| 925 | 837 | return cret | |
| 926 | 838 | } | |
| @@ -930,8 +842,6 @@ var xDateTimeIsDaylightSavings func(uintptr) bool | |||
| 930 | 842 | // Determines if daylight savings time is in effect at the time and in | |
| 931 | 843 | // the time zone of @datetime. | |
| 932 | 844 | func (x *DateTime) IsDaylightSavings() bool { | |
| 933 | - | core.LazyRegister(&xDateTimeIsDaylightSavings, "GLIB", "g_date_time_is_daylight_savings", false) | |
| 934 | - | ||
| 935 | 845 | cret := xDateTimeIsDaylightSavings(x.GoPointer()) | |
| 936 | 846 | return cret | |
| 937 | 847 | } | |
| @@ -940,8 +850,6 @@ var xDateTimeRef func(uintptr) uintptr | |||
| 940 | 850 | ||
| 941 | 851 | // Atomically increments the reference count of @datetime by one. | |
| 942 | 852 | func (x *DateTime) Ref() *DateTime { | |
| 943 | - | core.LazyRegister(&xDateTimeRef, "GLIB", "g_date_time_ref", false) | |
| 944 | - | ||
| 945 | 853 | cret := xDateTimeRef(x.GoPointer()) | |
| 946 | 854 | if cret == 0 { | |
| 947 | 855 | return nil | |
| @@ -957,8 +865,6 @@ var xDateTimeToLocal func(uintptr) uintptr | |||
| 957 | 865 | // This call is equivalent to calling g_date_time_to_timezone() with the | |
| 958 | 866 | // time zone returned by g_time_zone_new_local(). | |
| 959 | 867 | func (x *DateTime) ToLocal() *DateTime { | |
| 960 | - | core.LazyRegister(&xDateTimeToLocal, "GLIB", "g_date_time_to_local", false) | |
| 961 | - | ||
| 962 | 868 | cret := xDateTimeToLocal(x.GoPointer()) | |
| 963 | 869 | if cret == 0 { | |
| 964 | 870 | return nil | |
| @@ -982,8 +888,6 @@ var xDateTimeToTimeval func(uintptr, *TimeVal) bool | |||
| 982 | 888 | // | |
| 983 | 889 | // On systems where 'long' is 64bit, this function never fails. | |
| 984 | 890 | func (x *DateTime) ToTimeval(TvVar *TimeVal) bool { | |
| 985 | - | core.LazyRegister(&xDateTimeToTimeval, "GLIB", "g_date_time_to_timeval", false) | |
| 986 | - | ||
| 987 | 891 | cret := xDateTimeToTimeval(x.GoPointer(), TvVar) | |
| 988 | 892 | return cret | |
| 989 | 893 | } | |
| @@ -997,8 +901,6 @@ var xDateTimeToTimezone func(uintptr, *TimeZone) uintptr | |||
| 997 | 901 | // example, converting 0001-01-01 00:00:00 UTC to a time zone west of | |
| 998 | 902 | // Greenwich will fail (due to the year 0 being out of range). | |
| 999 | 903 | func (x *DateTime) ToTimezone(TzVar *TimeZone) *DateTime { | |
| 1000 | - | core.LazyRegister(&xDateTimeToTimezone, "GLIB", "g_date_time_to_timezone", false) | |
| 1001 | - | ||
| 1002 | 904 | cret := xDateTimeToTimezone(x.GoPointer(), TzVar) | |
| 1003 | 905 | if cret == 0 { | |
| 1004 | 906 | return nil | |
| @@ -1014,8 +916,6 @@ var xDateTimeToUnix func(uintptr) int64 | |||
| 1014 | 916 | // Unix time is the number of seconds that have elapsed since 1970-01-01 | |
| 1015 | 917 | // 00:00:00 UTC, regardless of the time zone associated with @datetime. | |
| 1016 | 918 | func (x *DateTime) ToUnix() int64 { | |
| 1017 | - | core.LazyRegister(&xDateTimeToUnix, "GLIB", "g_date_time_to_unix", false) | |
| 1018 | - | ||
| 1019 | 919 | cret := xDateTimeToUnix(x.GoPointer()) | |
| 1020 | 920 | return cret | |
| 1021 | 921 | } | |
| @@ -1027,8 +927,6 @@ var xDateTimeToUnixUsec func(uintptr) int64 | |||
| 1027 | 927 | // Unix time is the number of microseconds that have elapsed since 1970-01-01 | |
| 1028 | 928 | // 00:00:00 UTC, regardless of the time zone associated with @datetime. | |
| 1029 | 929 | func (x *DateTime) ToUnixUsec() int64 { | |
| 1030 | - | core.LazyRegister(&xDateTimeToUnixUsec, "GLIB", "g_date_time_to_unix_usec", false) | |
| 1031 | - | ||
| 1032 | 930 | cret := xDateTimeToUnixUsec(x.GoPointer()) | |
| 1033 | 931 | return cret | |
| 1034 | 932 | } | |
| @@ -1041,8 +939,6 @@ var xDateTimeToUtc func(uintptr) uintptr | |||
| 1041 | 939 | // This call is equivalent to calling g_date_time_to_timezone() with the | |
| 1042 | 940 | // time zone returned by g_time_zone_new_utc(). | |
| 1043 | 941 | func (x *DateTime) ToUtc() *DateTime { | |
| 1044 | - | core.LazyRegister(&xDateTimeToUtc, "GLIB", "g_date_time_to_utc", false) | |
| 1045 | - | ||
| 1046 | 942 | cret := xDateTimeToUtc(x.GoPointer()) | |
| 1047 | 943 | if cret == 0 { | |
| 1048 | 944 | return nil | |
| @@ -1057,8 +953,6 @@ var xDateTimeUnref func(uintptr) | |||
| 1057 | 953 | // When the reference count reaches zero, the resources allocated by | |
| 1058 | 954 | // @datetime are freed | |
| 1059 | 955 | func (x *DateTime) Unref() { | |
| 1060 | - | core.LazyRegister(&xDateTimeUnref, "GLIB", "g_date_time_unref", false) | |
| 1061 | - | ||
| 1062 | 956 | xDateTimeUnref(x.GoPointer()) | |
| 1063 | 957 | } | |
| 1064 | 958 | ||
| @@ -1081,4 +975,69 @@ const ( | |||
| 1081 | 975 | func init() { | |
| 1082 | 976 | core.SetPackageName("GLIB", "glib-2.0") | |
| 1083 | 977 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | |
| 978 | + | var libs []uintptr | |
| 979 | + | for _, libPath := range core.GetPaths("GLIB") { | |
| 980 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 981 | + | if err != nil { | |
| 982 | + | panic(err) | |
| 983 | + | } | |
| 984 | + | libs = append(libs, lib) | |
| 985 | + | } | |
| 986 | + | ||
| 987 | + | core.PuregoSafeRegister(&xDateTimeGLibType, libs, "g_date_time_get_type") | |
| 988 | + | ||
| 989 | + | core.PuregoSafeRegister(&xNewDateTime, libs, "g_date_time_new") | |
| 990 | + | core.PuregoSafeRegister(&xNewDateTimeFromIso8601, libs, "g_date_time_new_from_iso8601") | |
| 991 | + | core.PuregoSafeRegister(&xNewDateTimeFromTimevalLocal, libs, "g_date_time_new_from_timeval_local") | |
| 992 | + | core.PuregoSafeRegister(&xNewDateTimeFromTimevalUtc, libs, "g_date_time_new_from_timeval_utc") | |
| 993 | + | core.PuregoSafeRegister(&xNewDateTimeFromUnixLocal, libs, "g_date_time_new_from_unix_local") | |
| 994 | + | core.PuregoSafeRegister(&xNewDateTimeFromUnixLocalUsec, libs, "g_date_time_new_from_unix_local_usec") | |
| 995 | + | core.PuregoSafeRegister(&xNewDateTimeFromUnixUtc, libs, "g_date_time_new_from_unix_utc") | |
| 996 | + | core.PuregoSafeRegister(&xNewDateTimeFromUnixUtcUsec, libs, "g_date_time_new_from_unix_utc_usec") | |
| 997 | + | core.PuregoSafeRegister(&xNewDateTimeLocal, libs, "g_date_time_new_local") | |
| 998 | + | core.PuregoSafeRegister(&xNewDateTimeNow, libs, "g_date_time_new_now") | |
| 999 | + | core.PuregoSafeRegister(&xNewDateTimeNowLocal, libs, "g_date_time_new_now_local") | |
| 1000 | + | core.PuregoSafeRegister(&xNewDateTimeNowUtc, libs, "g_date_time_new_now_utc") | |
| 1001 | + | core.PuregoSafeRegister(&xNewDateTimeUtc, libs, "g_date_time_new_utc") | |
| 1002 | + | ||
| 1003 | + | core.PuregoSafeRegister(&xDateTimeAdd, libs, "g_date_time_add") | |
| 1004 | + | core.PuregoSafeRegister(&xDateTimeAddDays, libs, "g_date_time_add_days") | |
| 1005 | + | core.PuregoSafeRegister(&xDateTimeAddFull, libs, "g_date_time_add_full") | |
| 1006 | + | core.PuregoSafeRegister(&xDateTimeAddHours, libs, "g_date_time_add_hours") | |
| 1007 | + | core.PuregoSafeRegister(&xDateTimeAddMinutes, libs, "g_date_time_add_minutes") | |
| 1008 | + | core.PuregoSafeRegister(&xDateTimeAddMonths, libs, "g_date_time_add_months") | |
| 1009 | + | core.PuregoSafeRegister(&xDateTimeAddSeconds, libs, "g_date_time_add_seconds") | |
| 1010 | + | core.PuregoSafeRegister(&xDateTimeAddWeeks, libs, "g_date_time_add_weeks") | |
| 1011 | + | core.PuregoSafeRegister(&xDateTimeAddYears, libs, "g_date_time_add_years") | |
| 1012 | + | core.PuregoSafeRegister(&xDateTimeCompare, libs, "g_date_time_compare") | |
| 1013 | + | core.PuregoSafeRegister(&xDateTimeDifference, libs, "g_date_time_difference") | |
| 1014 | + | core.PuregoSafeRegister(&xDateTimeEqual, libs, "g_date_time_equal") | |
| 1015 | + | core.PuregoSafeRegister(&xDateTimeFormat, libs, "g_date_time_format") | |
| 1016 | + | core.PuregoSafeRegister(&xDateTimeFormatIso8601, libs, "g_date_time_format_iso8601") | |
| 1017 | + | core.PuregoSafeRegister(&xDateTimeGetDayOfMonth, libs, "g_date_time_get_day_of_month") | |
| 1018 | + | core.PuregoSafeRegister(&xDateTimeGetDayOfWeek, libs, "g_date_time_get_day_of_week") | |
| 1019 | + | core.PuregoSafeRegister(&xDateTimeGetDayOfYear, libs, "g_date_time_get_day_of_year") | |
| 1020 | + | core.PuregoSafeRegister(&xDateTimeGetHour, libs, "g_date_time_get_hour") | |
| 1021 | + | core.PuregoSafeRegister(&xDateTimeGetMicrosecond, libs, "g_date_time_get_microsecond") | |
| 1022 | + | core.PuregoSafeRegister(&xDateTimeGetMinute, libs, "g_date_time_get_minute") | |
| 1023 | + | core.PuregoSafeRegister(&xDateTimeGetMonth, libs, "g_date_time_get_month") | |
| 1024 | + | core.PuregoSafeRegister(&xDateTimeGetSecond, libs, "g_date_time_get_second") | |
| 1025 | + | core.PuregoSafeRegister(&xDateTimeGetSeconds, libs, "g_date_time_get_seconds") | |
| 1026 | + | core.PuregoSafeRegister(&xDateTimeGetTimezone, libs, "g_date_time_get_timezone") | |
| 1027 | + | core.PuregoSafeRegister(&xDateTimeGetTimezoneAbbreviation, libs, "g_date_time_get_timezone_abbreviation") | |
| 1028 | + | core.PuregoSafeRegister(&xDateTimeGetUtcOffset, libs, "g_date_time_get_utc_offset") | |
| 1029 | + | core.PuregoSafeRegister(&xDateTimeGetWeekNumberingYear, libs, "g_date_time_get_week_numbering_year") | |
| 1030 | + | core.PuregoSafeRegister(&xDateTimeGetWeekOfYear, libs, "g_date_time_get_week_of_year") | |
| 1031 | + | core.PuregoSafeRegister(&xDateTimeGetYear, libs, "g_date_time_get_year") | |
| 1032 | + | core.PuregoSafeRegister(&xDateTimeGetYmd, libs, "g_date_time_get_ymd") | |
| 1033 | + | core.PuregoSafeRegister(&xDateTimeHash, libs, "g_date_time_hash") | |
| 1034 | + | core.PuregoSafeRegister(&xDateTimeIsDaylightSavings, libs, "g_date_time_is_daylight_savings") | |
| 1035 | + | core.PuregoSafeRegister(&xDateTimeRef, libs, "g_date_time_ref") | |
| 1036 | + | core.PuregoSafeRegister(&xDateTimeToLocal, libs, "g_date_time_to_local") | |
| 1037 | + | core.PuregoSafeRegister(&xDateTimeToTimeval, libs, "g_date_time_to_timeval") | |
| 1038 | + | core.PuregoSafeRegister(&xDateTimeToTimezone, libs, "g_date_time_to_timezone") | |
| 1039 | + | core.PuregoSafeRegister(&xDateTimeToUnix, libs, "g_date_time_to_unix") | |
| 1040 | + | core.PuregoSafeRegister(&xDateTimeToUnixUsec, libs, "g_date_time_to_unix_usec") | |
| 1041 | + | core.PuregoSafeRegister(&xDateTimeToUtc, libs, "g_date_time_to_utc") | |
| 1042 | + | core.PuregoSafeRegister(&xDateTimeUnref, libs, "g_date_time_unref") | |
| 1084 | 1043 | } | |
| @@ -5,6 +5,7 @@ import ( | |||||
| 5 | "structs" | 5 | "structs" | ||
| 6 | "unsafe" | 6 | "unsafe" | ||
| 7 | 7 | ||||
| 8 | + | "github.com/bnema/purego" | |||
| 8 | "github.com/bnema/puregotk/pkg/core" | 9 | "github.com/bnema/puregotk/pkg/core" | ||
| 9 | "github.com/bnema/puregotk/v4/gobject/types" | 10 | "github.com/bnema/puregotk/v4/gobject/types" | ||
| 10 | ) | 11 | ) | ||
| @@ -41,7 +42,6 @@ type DateTime struct { | |||||
| 41 | var xDateTimeGLibType func() types.GType | 42 | var xDateTimeGLibType func() types.GType | ||
| 42 | 43 | ||||
| 43 | func DateTimeGLibType() types.GType { | 44 | func DateTimeGLibType() types.GType { | ||
| 44 | - | core.LazyRegister(&xDateTimeGLibType, "GLIB", "g_date_time_get_type", false) | |||
| 45 | return xDateTimeGLibType() | 45 | return xDateTimeGLibType() | ||
| 46 | } | 46 | } | ||
| 47 | 47 | ||||
| @@ -88,8 +88,6 @@ var xNewDateTime func(*TimeZone, int, int, int, int, int, float64) uintptr | |||||
| 88 | // You should release the return value by calling g_date_time_unref() | 88 | // You should release the return value by calling g_date_time_unref() | ||
| 89 | // when you are done with it. | 89 | // when you are done with it. | ||
| 90 | func NewDateTime(TzVar *TimeZone, YearVar int, MonthVar int, DayVar int, HourVar int, MinuteVar int, SecondsVar float64) *DateTime { | 90 | func NewDateTime(TzVar *TimeZone, YearVar int, MonthVar int, DayVar int, HourVar int, MinuteVar int, SecondsVar float64) *DateTime { | ||
| 91 | - | core.LazyRegister(&xNewDateTime, "GLIB", "g_date_time_new", false) | |||
| 92 | - | ||||
| 93 | cret := xNewDateTime(TzVar, YearVar, MonthVar, DayVar, HourVar, MinuteVar, SecondsVar) | 91 | cret := xNewDateTime(TzVar, YearVar, MonthVar, DayVar, HourVar, MinuteVar, SecondsVar) | ||
| 94 | if cret == 0 { | 92 | if cret == 0 { | ||
| 95 | return nil | 93 | return nil | ||
| @@ -143,8 +141,6 @@ var xNewDateTimeFromIso8601 func(string, *TimeZone) uintptr | |||||
| 143 | // You should release the return value by calling g_date_time_unref() | 141 | // You should release the return value by calling g_date_time_unref() | ||
| 144 | // when you are done with it. | 142 | // when you are done with it. | ||
| 145 | func NewDateTimeFromIso8601(TextVar string, DefaultTzVar *TimeZone) *DateTime { | 143 | func NewDateTimeFromIso8601(TextVar string, DefaultTzVar *TimeZone) *DateTime { | ||
| 146 | - | core.LazyRegister(&xNewDateTimeFromIso8601, "GLIB", "g_date_time_new_from_iso8601", false) | |||
| 147 | - | ||||
| 148 | cret := xNewDateTimeFromIso8601(TextVar, DefaultTzVar) | 144 | cret := xNewDateTimeFromIso8601(TextVar, DefaultTzVar) | ||
| 149 | if cret == 0 { | 145 | if cret == 0 { | ||
| 150 | return nil | 146 | return nil | ||
| @@ -167,8 +163,6 @@ var xNewDateTimeFromTimevalLocal func(*TimeVal) uintptr | |||||
| 167 | // You should release the return value by calling g_date_time_unref() | 163 | // You should release the return value by calling g_date_time_unref() | ||
| 168 | // when you are done with it. | 164 | // when you are done with it. | ||
| 169 | func NewDateTimeFromTimevalLocal(TvVar *TimeVal) *DateTime { | 165 | func NewDateTimeFromTimevalLocal(TvVar *TimeVal) *DateTime { | ||
| 170 | - | core.LazyRegister(&xNewDateTimeFromTimevalLocal, "GLIB", "g_date_time_new_from_timeval_local", false) | |||
| 171 | - | ||||
| 172 | cret := xNewDateTimeFromTimevalLocal(TvVar) | 166 | cret := xNewDateTimeFromTimevalLocal(TvVar) | ||
| 173 | if cret == 0 { | 167 | if cret == 0 { | ||
| 174 | return nil | 168 | return nil | ||
| @@ -189,8 +183,6 @@ var xNewDateTimeFromTimevalUtc func(*TimeVal) uintptr | |||||
| 189 | // You should release the return value by calling g_date_time_unref() | 183 | // You should release the return value by calling g_date_time_unref() | ||
| 190 | // when you are done with it. | 184 | // when you are done with it. | ||
| 191 | func NewDateTimeFromTimevalUtc(TvVar *TimeVal) *DateTime { | 185 | func NewDateTimeFromTimevalUtc(TvVar *TimeVal) *DateTime { | ||
| 192 | - | core.LazyRegister(&xNewDateTimeFromTimevalUtc, "GLIB", "g_date_time_new_from_timeval_utc", false) | |||
| 193 | - | ||||
| 194 | cret := xNewDateTimeFromTimevalUtc(TvVar) | 186 | cret := xNewDateTimeFromTimevalUtc(TvVar) | ||
| 195 | if cret == 0 { | 187 | if cret == 0 { | ||
| 196 | return nil | 188 | return nil | ||
| @@ -212,8 +204,6 @@ var xNewDateTimeFromUnixLocal func(int64) uintptr | |||||
| 212 | // You should release the return value by calling g_date_time_unref() | 204 | // You should release the return value by calling g_date_time_unref() | ||
| 213 | // when you are done with it. | 205 | // when you are done with it. | ||
| 214 | func NewDateTimeFromUnixLocal(TVar int64) *DateTime { | 206 | func NewDateTimeFromUnixLocal(TVar int64) *DateTime { | ||
| 215 | - | core.LazyRegister(&xNewDateTimeFromUnixLocal, "GLIB", "g_date_time_new_from_unix_local", false) | |||
| 216 | - | ||||
| 217 | cret := xNewDateTimeFromUnixLocal(TVar) | 207 | cret := xNewDateTimeFromUnixLocal(TVar) | ||
| 218 | if cret == 0 { | 208 | if cret == 0 { | ||
| 219 | return nil | 209 | return nil | ||
| @@ -235,8 +225,6 @@ var xNewDateTimeFromUnixLocalUsec func(int64) uintptr | |||||
| 235 | // You should release the return value by calling [method@GLib.DateTime.unref] | 225 | // You should release the return value by calling [method@GLib.DateTime.unref] | ||
| 236 | // when you are done with it. | 226 | // when you are done with it. | ||
| 237 | func NewDateTimeFromUnixLocalUsec(UsecsVar int64) *DateTime { | 227 | func NewDateTimeFromUnixLocalUsec(UsecsVar int64) *DateTime { | ||
| 238 | - | core.LazyRegister(&xNewDateTimeFromUnixLocalUsec, "GLIB", "g_date_time_new_from_unix_local_usec", false) | |||
| 239 | - | ||||
| 240 | cret := xNewDateTimeFromUnixLocalUsec(UsecsVar) | 228 | cret := xNewDateTimeFromUnixLocalUsec(UsecsVar) | ||
| 241 | if cret == 0 { | 229 | if cret == 0 { | ||
| 242 | return nil | 230 | return nil | ||
| @@ -257,8 +245,6 @@ var xNewDateTimeFromUnixUtc func(int64) uintptr | |||||
| 257 | // You should release the return value by calling g_date_time_unref() | 245 | // You should release the return value by calling g_date_time_unref() | ||
| 258 | // when you are done with it. | 246 | // when you are done with it. | ||
| 259 | func NewDateTimeFromUnixUtc(TVar int64) *DateTime { | 247 | func NewDateTimeFromUnixUtc(TVar int64) *DateTime { | ||
| 260 | - | core.LazyRegister(&xNewDateTimeFromUnixUtc, "GLIB", "g_date_time_new_from_unix_utc", false) | |||
| 261 | - | ||||
| 262 | cret := xNewDateTimeFromUnixUtc(TVar) | 248 | cret := xNewDateTimeFromUnixUtc(TVar) | ||
| 263 | if cret == 0 { | 249 | if cret == 0 { | ||
| 264 | return nil | 250 | return nil | ||
| @@ -279,8 +265,6 @@ var xNewDateTimeFromUnixUtcUsec func(int64) uintptr | |||||
| 279 | // You should release the return value by calling [method@GLib.DateTime.unref] | 265 | // You should release the return value by calling [method@GLib.DateTime.unref] | ||
| 280 | // when you are done with it. | 266 | // when you are done with it. | ||
| 281 | func NewDateTimeFromUnixUtcUsec(UsecsVar int64) *DateTime { | 267 | func NewDateTimeFromUnixUtcUsec(UsecsVar int64) *DateTime { | ||
| 282 | - | core.LazyRegister(&xNewDateTimeFromUnixUtcUsec, "GLIB", "g_date_time_new_from_unix_utc_usec", false) | |||
| 283 | - | ||||
| 284 | cret := xNewDateTimeFromUnixUtcUsec(UsecsVar) | 268 | cret := xNewDateTimeFromUnixUtcUsec(UsecsVar) | ||
| 285 | if cret == 0 { | 269 | if cret == 0 { | ||
| 286 | return nil | 270 | return nil | ||
| @@ -296,8 +280,6 @@ var xNewDateTimeLocal func(int, int, int, int, int, float64) uintptr | |||||
| 296 | // This call is equivalent to calling g_date_time_new() with the time | 280 | // This call is equivalent to calling g_date_time_new() with the time | ||
| 297 | // zone returned by g_time_zone_new_local(). | 281 | // zone returned by g_time_zone_new_local(). | ||
| 298 | func NewDateTimeLocal(YearVar int, MonthVar int, DayVar int, HourVar int, MinuteVar int, SecondsVar float64) *DateTime { | 282 | func NewDateTimeLocal(YearVar int, MonthVar int, DayVar int, HourVar int, MinuteVar int, SecondsVar float64) *DateTime { | ||
| 299 | - | core.LazyRegister(&xNewDateTimeLocal, "GLIB", "g_date_time_new_local", false) | |||
| 300 | - | ||||
| 301 | cret := xNewDateTimeLocal(YearVar, MonthVar, DayVar, HourVar, MinuteVar, SecondsVar) | 283 | cret := xNewDateTimeLocal(YearVar, MonthVar, DayVar, HourVar, MinuteVar, SecondsVar) | ||
| 302 | if cret == 0 { | 284 | if cret == 0 { | ||
| 303 | return nil | 285 | return nil | ||
| @@ -317,8 +299,6 @@ var xNewDateTimeNow func(*TimeZone) uintptr | |||||
| 317 | // You should release the return value by calling g_date_time_unref() | 299 | // You should release the return value by calling g_date_time_unref() | ||
| 318 | // when you are done with it. | 300 | // when you are done with it. | ||
| 319 | func NewDateTimeNow(TzVar *TimeZone) *DateTime { | 301 | func NewDateTimeNow(TzVar *TimeZone) *DateTime { | ||
| 320 | - | core.LazyRegister(&xNewDateTimeNow, "GLIB", "g_date_time_new_now", false) | |||
| 321 | - | ||||
| 322 | cret := xNewDateTimeNow(TzVar) | 302 | cret := xNewDateTimeNow(TzVar) | ||
| 323 | if cret == 0 { | 303 | if cret == 0 { | ||
| 324 | return nil | 304 | return nil | ||
| @@ -334,8 +314,6 @@ var xNewDateTimeNowLocal func() uintptr | |||||
| 334 | // This is equivalent to calling g_date_time_new_now() with the time | 314 | // This is equivalent to calling g_date_time_new_now() with the time | ||
| 335 | // zone returned by g_time_zone_new_local(). | 315 | // zone returned by g_time_zone_new_local(). | ||
| 336 | func NewDateTimeNowLocal() *DateTime { | 316 | func NewDateTimeNowLocal() *DateTime { | ||
| 337 | - | core.LazyRegister(&xNewDateTimeNowLocal, "GLIB", "g_date_time_new_now_local", false) | |||
| 338 | - | ||||
| 339 | cret := xNewDateTimeNowLocal() | 317 | cret := xNewDateTimeNowLocal() | ||
| 340 | if cret == 0 { | 318 | if cret == 0 { | ||
| 341 | return nil | 319 | return nil | ||
| @@ -350,8 +328,6 @@ var xNewDateTimeNowUtc func() uintptr | |||||
| 350 | // This is equivalent to calling g_date_time_new_now() with the time | 328 | // This is equivalent to calling g_date_time_new_now() with the time | ||
| 351 | // zone returned by g_time_zone_new_utc(). | 329 | // zone returned by g_time_zone_new_utc(). | ||
| 352 | func NewDateTimeNowUtc() *DateTime { | 330 | func NewDateTimeNowUtc() *DateTime { | ||
| 353 | - | core.LazyRegister(&xNewDateTimeNowUtc, "GLIB", "g_date_time_new_now_utc", false) | |||
| 354 | - | ||||
| 355 | cret := xNewDateTimeNowUtc() | 331 | cret := xNewDateTimeNowUtc() | ||
| 356 | if cret == 0 { | 332 | if cret == 0 { | ||
| 357 | return nil | 333 | return nil | ||
| @@ -367,8 +343,6 @@ var xNewDateTimeUtc func(int, int, int, int, int, float64) uintptr | |||||
| 367 | // This call is equivalent to calling g_date_time_new() with the time | 343 | // This call is equivalent to calling g_date_time_new() with the time | ||
| 368 | // zone returned by g_time_zone_new_utc(). | 344 | // zone returned by g_time_zone_new_utc(). | ||
| 369 | func NewDateTimeUtc(YearVar int, MonthVar int, DayVar int, HourVar int, MinuteVar int, SecondsVar float64) *DateTime { | 345 | func NewDateTimeUtc(YearVar int, MonthVar int, DayVar int, HourVar int, MinuteVar int, SecondsVar float64) *DateTime { | ||
| 370 | - | core.LazyRegister(&xNewDateTimeUtc, "GLIB", "g_date_time_new_utc", false) | |||
| 371 | - | ||||
| 372 | cret := xNewDateTimeUtc(YearVar, MonthVar, DayVar, HourVar, MinuteVar, SecondsVar) | 346 | cret := xNewDateTimeUtc(YearVar, MonthVar, DayVar, HourVar, MinuteVar, SecondsVar) | ||
| 373 | if cret == 0 { | 347 | if cret == 0 { | ||
| 374 | return nil | 348 | return nil | ||
| @@ -380,8 +354,6 @@ var xDateTimeAdd func(uintptr, TimeSpan) uintptr | |||||
| 380 | 354 | ||||
| 381 | // Creates a copy of @datetime and adds the specified timespan to the copy. | 355 | // Creates a copy of @datetime and adds the specified timespan to the copy. | ||
| 382 | func (x *DateTime) Add(TimespanVar TimeSpan) *DateTime { | 356 | func (x *DateTime) Add(TimespanVar TimeSpan) *DateTime { | ||
| 383 | - | core.LazyRegister(&xDateTimeAdd, "GLIB", "g_date_time_add", false) | |||
| 384 | - | ||||
| 385 | cret := xDateTimeAdd(x.GoPointer(), TimespanVar) | 357 | cret := xDateTimeAdd(x.GoPointer(), TimespanVar) | ||
| 386 | if cret == 0 { | 358 | if cret == 0 { | ||
| 387 | return nil | 359 | return nil | ||
| @@ -394,8 +366,6 @@ var xDateTimeAddDays func(uintptr, int) uintptr | |||||
| 394 | // Creates a copy of @datetime and adds the specified number of days to the | 366 | // Creates a copy of @datetime and adds the specified number of days to the | ||
| 395 | // copy. Add negative values to subtract days. | 367 | // copy. Add negative values to subtract days. | ||
| 396 | func (x *DateTime) AddDays(DaysVar int) *DateTime { | 368 | func (x *DateTime) AddDays(DaysVar int) *DateTime { | ||
| 397 | - | core.LazyRegister(&xDateTimeAddDays, "GLIB", "g_date_time_add_days", false) | |||
| 398 | - | ||||
| 399 | cret := xDateTimeAddDays(x.GoPointer(), DaysVar) | 369 | cret := xDateTimeAddDays(x.GoPointer(), DaysVar) | ||
| 400 | if cret == 0 { | 370 | if cret == 0 { | ||
| 401 | return nil | 371 | return nil | ||
| @@ -408,8 +378,6 @@ var xDateTimeAddFull func(uintptr, int, int, int, int, int, float64) uintptr | |||||
| 408 | // Creates a new #GDateTime adding the specified values to the current date and | 378 | // Creates a new #GDateTime adding the specified values to the current date and | ||
| 409 | // time in @datetime. Add negative values to subtract. | 379 | // time in @datetime. Add negative values to subtract. | ||
| 410 | func (x *DateTime) AddFull(YearsVar int, MonthsVar int, DaysVar int, HoursVar int, MinutesVar int, SecondsVar float64) *DateTime { | 380 | func (x *DateTime) AddFull(YearsVar int, MonthsVar int, DaysVar int, HoursVar int, MinutesVar int, SecondsVar float64) *DateTime { | ||
| 411 | - | core.LazyRegister(&xDateTimeAddFull, "GLIB", "g_date_time_add_full", false) | |||
| 412 | - | ||||
| 413 | cret := xDateTimeAddFull(x.GoPointer(), YearsVar, MonthsVar, DaysVar, HoursVar, MinutesVar, SecondsVar) | 381 | cret := xDateTimeAddFull(x.GoPointer(), YearsVar, MonthsVar, DaysVar, HoursVar, MinutesVar, SecondsVar) | ||
| 414 | if cret == 0 { | 382 | if cret == 0 { | ||
| 415 | return nil | 383 | return nil | ||
| @@ -422,8 +390,6 @@ var xDateTimeAddHours func(uintptr, int) uintptr | |||||
| 422 | // Creates a copy of @datetime and adds the specified number of hours. | 390 | // Creates a copy of @datetime and adds the specified number of hours. | ||
| 423 | // Add negative values to subtract hours. | 391 | // Add negative values to subtract hours. | ||
| 424 | func (x *DateTime) AddHours(HoursVar int) *DateTime { | 392 | func (x *DateTime) AddHours(HoursVar int) *DateTime { | ||
| 425 | - | core.LazyRegister(&xDateTimeAddHours, "GLIB", "g_date_time_add_hours", false) | |||
| 426 | - | ||||
| 427 | cret := xDateTimeAddHours(x.GoPointer(), HoursVar) | 393 | cret := xDateTimeAddHours(x.GoPointer(), HoursVar) | ||
| 428 | if cret == 0 { | 394 | if cret == 0 { | ||
| 429 | return nil | 395 | return nil | ||
| @@ -436,8 +402,6 @@ var xDateTimeAddMinutes func(uintptr, int) uintptr | |||||
| 436 | // Creates a copy of @datetime adding the specified number of minutes. | 402 | // Creates a copy of @datetime adding the specified number of minutes. | ||
| 437 | // Add negative values to subtract minutes. | 403 | // Add negative values to subtract minutes. | ||
| 438 | func (x *DateTime) AddMinutes(MinutesVar int) *DateTime { | 404 | func (x *DateTime) AddMinutes(MinutesVar int) *DateTime { | ||
| 439 | - | core.LazyRegister(&xDateTimeAddMinutes, "GLIB", "g_date_time_add_minutes", false) | |||
| 440 | - | ||||
| 441 | cret := xDateTimeAddMinutes(x.GoPointer(), MinutesVar) | 405 | cret := xDateTimeAddMinutes(x.GoPointer(), MinutesVar) | ||
| 442 | if cret == 0 { | 406 | if cret == 0 { | ||
| 443 | return nil | 407 | return nil | ||
| @@ -455,8 +419,6 @@ var xDateTimeAddMonths func(uintptr, int) uintptr | |||||
| 455 | // 31st January 2018, the result would be 28th February 2018. In 2020 (a leap | 419 | // 31st January 2018, the result would be 28th February 2018. In 2020 (a leap | ||
| 456 | // year), the result would be 29th February. | 420 | // year), the result would be 29th February. | ||
| 457 | func (x *DateTime) AddMonths(MonthsVar int) *DateTime { | 421 | func (x *DateTime) AddMonths(MonthsVar int) *DateTime { | ||
| 458 | - | core.LazyRegister(&xDateTimeAddMonths, "GLIB", "g_date_time_add_months", false) | |||
| 459 | - | ||||
| 460 | cret := xDateTimeAddMonths(x.GoPointer(), MonthsVar) | 422 | cret := xDateTimeAddMonths(x.GoPointer(), MonthsVar) | ||
| 461 | if cret == 0 { | 423 | if cret == 0 { | ||
| 462 | return nil | 424 | return nil | ||
| @@ -469,8 +431,6 @@ var xDateTimeAddSeconds func(uintptr, float64) uintptr | |||||
| 469 | // Creates a copy of @datetime and adds the specified number of seconds. | 431 | // Creates a copy of @datetime and adds the specified number of seconds. | ||
| 470 | // Add negative values to subtract seconds. | 432 | // Add negative values to subtract seconds. | ||
| 471 | func (x *DateTime) AddSeconds(SecondsVar float64) *DateTime { | 433 | func (x *DateTime) AddSeconds(SecondsVar float64) *DateTime { | ||
| 472 | - | core.LazyRegister(&xDateTimeAddSeconds, "GLIB", "g_date_time_add_seconds", false) | |||
| 473 | - | ||||
| 474 | cret := xDateTimeAddSeconds(x.GoPointer(), SecondsVar) | 434 | cret := xDateTimeAddSeconds(x.GoPointer(), SecondsVar) | ||
| 475 | if cret == 0 { | 435 | if cret == 0 { | ||
| 476 | return nil | 436 | return nil | ||
| @@ -483,8 +443,6 @@ var xDateTimeAddWeeks func(uintptr, int) uintptr | |||||
| 483 | // Creates a copy of @datetime and adds the specified number of weeks to the | 443 | // Creates a copy of @datetime and adds the specified number of weeks to the | ||
| 484 | // copy. Add negative values to subtract weeks. | 444 | // copy. Add negative values to subtract weeks. | ||
| 485 | func (x *DateTime) AddWeeks(WeeksVar int) *DateTime { | 445 | func (x *DateTime) AddWeeks(WeeksVar int) *DateTime { | ||
| 486 | - | core.LazyRegister(&xDateTimeAddWeeks, "GLIB", "g_date_time_add_weeks", false) | |||
| 487 | - | ||||
| 488 | cret := xDateTimeAddWeeks(x.GoPointer(), WeeksVar) | 446 | cret := xDateTimeAddWeeks(x.GoPointer(), WeeksVar) | ||
| 489 | if cret == 0 { | 447 | if cret == 0 { | ||
| 490 | return nil | 448 | return nil | ||
| @@ -500,8 +458,6 @@ var xDateTimeAddYears func(uintptr, int) uintptr | |||||
| 500 | // As with g_date_time_add_months(), if the resulting date would be 29th | 458 | // As with g_date_time_add_months(), if the resulting date would be 29th | ||
| 501 | // February on a non-leap year, the day will be clamped to 28th February. | 459 | // February on a non-leap year, the day will be clamped to 28th February. | ||
| 502 | func (x *DateTime) AddYears(YearsVar int) *DateTime { | 460 | func (x *DateTime) AddYears(YearsVar int) *DateTime { | ||
| 503 | - | core.LazyRegister(&xDateTimeAddYears, "GLIB", "g_date_time_add_years", false) | |||
| 504 | - | ||||
| 505 | cret := xDateTimeAddYears(x.GoPointer(), YearsVar) | 461 | cret := xDateTimeAddYears(x.GoPointer(), YearsVar) | ||
| 506 | if cret == 0 { | 462 | if cret == 0 { | ||
| 507 | return nil | 463 | return nil | ||
| @@ -514,8 +470,6 @@ var xDateTimeCompare func(uintptr, uintptr) int | |||||
| 514 | // A comparison function for #GDateTimes that is suitable | 470 | // A comparison function for #GDateTimes that is suitable | ||
| 515 | // as a #GCompareFunc. Both #GDateTimes must be non-%NULL. | 471 | // as a #GCompareFunc. Both #GDateTimes must be non-%NULL. | ||
| 516 | func (x *DateTime) Compare(Dt2Var uintptr) int { | 472 | func (x *DateTime) Compare(Dt2Var uintptr) int { | ||
| 517 | - | core.LazyRegister(&xDateTimeCompare, "GLIB", "g_date_time_compare", false) | |||
| 518 | - | ||||
| 519 | cret := xDateTimeCompare(x.GoPointer(), Dt2Var) | 473 | cret := xDateTimeCompare(x.GoPointer(), Dt2Var) | ||
| 520 | return cret | 474 | return cret | ||
| 521 | } | 475 | } | ||
| @@ -526,8 +480,6 @@ var xDateTimeDifference func(uintptr, *DateTime) TimeSpan | |||||
| 526 | // #GTimeSpan that is returned is effectively @end - @begin (ie: | 480 | // #GTimeSpan that is returned is effectively @end - @begin (ie: | ||
| 527 | // positive if the first parameter is larger). | 481 | // positive if the first parameter is larger). | ||
| 528 | func (x *DateTime) Difference(BeginVar *DateTime) TimeSpan { | 482 | func (x *DateTime) Difference(BeginVar *DateTime) TimeSpan { | ||
| 529 | - | core.LazyRegister(&xDateTimeDifference, "GLIB", "g_date_time_difference", false) | |||
| 530 | - | ||||
| 531 | cret := xDateTimeDifference(x.GoPointer(), BeginVar) | 483 | cret := xDateTimeDifference(x.GoPointer(), BeginVar) | ||
| 532 | return cret | 484 | return cret | ||
| 533 | } | 485 | } | ||
| @@ -539,8 +491,6 @@ var xDateTimeEqual func(uintptr, uintptr) bool | |||||
| 539 | // Equal here means that they represent the same moment after converting | 491 | // Equal here means that they represent the same moment after converting | ||
| 540 | // them to the same time zone. | 492 | // them to the same time zone. | ||
| 541 | func (x *DateTime) Equal(Dt2Var uintptr) bool { | 493 | func (x *DateTime) Equal(Dt2Var uintptr) bool { | ||
| 542 | - | core.LazyRegister(&xDateTimeEqual, "GLIB", "g_date_time_equal", false) | |||
| 543 | - | ||||
| 544 | cret := xDateTimeEqual(x.GoPointer(), Dt2Var) | 494 | cret := xDateTimeEqual(x.GoPointer(), Dt2Var) | ||
| 545 | return cret | 495 | return cret | ||
| 546 | } | 496 | } | ||
| @@ -672,8 +622,6 @@ var xDateTimeFormat func(uintptr, string) string | |||||
| 672 | // specifier | 622 | // specifier | ||
| 673 | // - `%EY`: the full alternative year representation | 623 | // - `%EY`: the full alternative year representation | ||
| 674 | func (x *DateTime) Format(FormatVar string) string { | 624 | func (x *DateTime) Format(FormatVar string) string { | ||
| 675 | - | core.LazyRegister(&xDateTimeFormat, "GLIB", "g_date_time_format", false) | |||
| 676 | - | ||||
| 677 | cret := xDateTimeFormat(x.GoPointer(), FormatVar) | 625 | cret := xDateTimeFormat(x.GoPointer(), FormatVar) | ||
| 678 | return cret | 626 | return cret | ||
| 679 | } | 627 | } | ||
| @@ -686,8 +634,6 @@ var xDateTimeFormatIso8601 func(uintptr) string | |||||
| 686 | // | 634 | // | ||
| 687 | // Since GLib 2.66, this will output to sub-second precision if needed. | 635 | // Since GLib 2.66, this will output to sub-second precision if needed. | ||
| 688 | func (x *DateTime) FormatIso8601() string { | 636 | func (x *DateTime) FormatIso8601() string { | ||
| 689 | - | core.LazyRegister(&xDateTimeFormatIso8601, "GLIB", "g_date_time_format_iso8601", false) | |||
| 690 | - | ||||
| 691 | cret := xDateTimeFormatIso8601(x.GoPointer()) | 637 | cret := xDateTimeFormatIso8601(x.GoPointer()) | ||
| 692 | return cret | 638 | return cret | ||
| 693 | } | 639 | } | ||
| @@ -697,8 +643,6 @@ var xDateTimeGetDayOfMonth func(uintptr) int | |||||
| 697 | // Retrieves the day of the month represented by @datetime in the gregorian | 643 | // Retrieves the day of the month represented by @datetime in the gregorian | ||
| 698 | // calendar. | 644 | // calendar. | ||
| 699 | func (x *DateTime) GetDayOfMonth() int { | 645 | func (x *DateTime) GetDayOfMonth() int { | ||
| 700 | - | core.LazyRegister(&xDateTimeGetDayOfMonth, "GLIB", "g_date_time_get_day_of_month", false) | |||
| 701 | - | ||||
| 702 | cret := xDateTimeGetDayOfMonth(x.GoPointer()) | 646 | cret := xDateTimeGetDayOfMonth(x.GoPointer()) | ||
| 703 | return cret | 647 | return cret | ||
| 704 | } | 648 | } | ||
| @@ -708,8 +652,6 @@ var xDateTimeGetDayOfWeek func(uintptr) int | |||||
| 708 | // Retrieves the ISO 8601 day of the week on which @datetime falls (1 is | 652 | // Retrieves the ISO 8601 day of the week on which @datetime falls (1 is | ||
| 709 | // Monday, 2 is Tuesday... 7 is Sunday). | 653 | // Monday, 2 is Tuesday... 7 is Sunday). | ||
| 710 | func (x *DateTime) GetDayOfWeek() int { | 654 | func (x *DateTime) GetDayOfWeek() int { | ||
| 711 | - | core.LazyRegister(&xDateTimeGetDayOfWeek, "GLIB", "g_date_time_get_day_of_week", false) | |||
| 712 | - | ||||
| 713 | cret := xDateTimeGetDayOfWeek(x.GoPointer()) | 655 | cret := xDateTimeGetDayOfWeek(x.GoPointer()) | ||
| 714 | return cret | 656 | return cret | ||
| 715 | } | 657 | } | ||
| @@ -719,8 +661,6 @@ var xDateTimeGetDayOfYear func(uintptr) int | |||||
| 719 | // Retrieves the day of the year represented by @datetime in the Gregorian | 661 | // Retrieves the day of the year represented by @datetime in the Gregorian | ||
| 720 | // calendar. | 662 | // calendar. | ||
| 721 | func (x *DateTime) GetDayOfYear() int { | 663 | func (x *DateTime) GetDayOfYear() int { | ||
| 722 | - | core.LazyRegister(&xDateTimeGetDayOfYear, "GLIB", "g_date_time_get_day_of_year", false) | |||
| 723 | - | ||||
| 724 | cret := xDateTimeGetDayOfYear(x.GoPointer()) | 664 | cret := xDateTimeGetDayOfYear(x.GoPointer()) | ||
| 725 | return cret | 665 | return cret | ||
| 726 | } | 666 | } | ||
| @@ -729,8 +669,6 @@ var xDateTimeGetHour func(uintptr) int | |||||
| 729 | 669 | ||||
| 730 | // Retrieves the hour of the day represented by @datetime | 670 | // Retrieves the hour of the day represented by @datetime | ||
| 731 | func (x *DateTime) GetHour() int { | 671 | func (x *DateTime) GetHour() int { | ||
| 732 | - | core.LazyRegister(&xDateTimeGetHour, "GLIB", "g_date_time_get_hour", false) | |||
| 733 | - | ||||
| 734 | cret := xDateTimeGetHour(x.GoPointer()) | 672 | cret := xDateTimeGetHour(x.GoPointer()) | ||
| 735 | return cret | 673 | return cret | ||
| 736 | } | 674 | } | ||
| @@ -739,8 +677,6 @@ var xDateTimeGetMicrosecond func(uintptr) int | |||||
| 739 | 677 | ||||
| 740 | // Retrieves the microsecond of the date represented by @datetime | 678 | // Retrieves the microsecond of the date represented by @datetime | ||
| 741 | func (x *DateTime) GetMicrosecond() int { | 679 | func (x *DateTime) GetMicrosecond() int { | ||
| 742 | - | core.LazyRegister(&xDateTimeGetMicrosecond, "GLIB", "g_date_time_get_microsecond", false) | |||
| 743 | - | ||||
| 744 | cret := xDateTimeGetMicrosecond(x.GoPointer()) | 680 | cret := xDateTimeGetMicrosecond(x.GoPointer()) | ||
| 745 | return cret | 681 | return cret | ||
| 746 | } | 682 | } | ||
| @@ -749,8 +685,6 @@ var xDateTimeGetMinute func(uintptr) int | |||||
| 749 | 685 | ||||
| 750 | // Retrieves the minute of the hour represented by @datetime | 686 | // Retrieves the minute of the hour represented by @datetime | ||
| 751 | func (x *DateTime) GetMinute() int { | 687 | func (x *DateTime) GetMinute() int { | ||
| 752 | - | core.LazyRegister(&xDateTimeGetMinute, "GLIB", "g_date_time_get_minute", false) | |||
| 753 | - | ||||
| 754 | cret := xDateTimeGetMinute(x.GoPointer()) | 688 | cret := xDateTimeGetMinute(x.GoPointer()) | ||
| 755 | return cret | 689 | return cret | ||
| 756 | } | 690 | } | ||
| @@ -760,8 +694,6 @@ var xDateTimeGetMonth func(uintptr) int | |||||
| 760 | // Retrieves the month of the year represented by @datetime in the Gregorian | 694 | // Retrieves the month of the year represented by @datetime in the Gregorian | ||
| 761 | // calendar. | 695 | // calendar. | ||
| 762 | func (x *DateTime) GetMonth() int { | 696 | func (x *DateTime) GetMonth() int { | ||
| 763 | - | core.LazyRegister(&xDateTimeGetMonth, "GLIB", "g_date_time_get_month", false) | |||
| 764 | - | ||||
| 765 | cret := xDateTimeGetMonth(x.GoPointer()) | 697 | cret := xDateTimeGetMonth(x.GoPointer()) | ||
| 766 | return cret | 698 | return cret | ||
| 767 | } | 699 | } | ||
| @@ -770,8 +702,6 @@ var xDateTimeGetSecond func(uintptr) int | |||||
| 770 | 702 | ||||
| 771 | // Retrieves the second of the minute represented by @datetime | 703 | // Retrieves the second of the minute represented by @datetime | ||
| 772 | func (x *DateTime) GetSecond() int { | 704 | func (x *DateTime) GetSecond() int { | ||
| 773 | - | core.LazyRegister(&xDateTimeGetSecond, "GLIB", "g_date_time_get_second", false) | |||
| 774 | - | ||||
| 775 | cret := xDateTimeGetSecond(x.GoPointer()) | 705 | cret := xDateTimeGetSecond(x.GoPointer()) | ||
| 776 | return cret | 706 | return cret | ||
| 777 | } | 707 | } | ||
| @@ -781,8 +711,6 @@ var xDateTimeGetSeconds func(uintptr) float64 | |||||
| 781 | // Retrieves the number of seconds since the start of the last minute, | 711 | // Retrieves the number of seconds since the start of the last minute, | ||
| 782 | // including the fractional part. | 712 | // including the fractional part. | ||
| 783 | func (x *DateTime) GetSeconds() float64 { | 713 | func (x *DateTime) GetSeconds() float64 { | ||
| 784 | - | core.LazyRegister(&xDateTimeGetSeconds, "GLIB", "g_date_time_get_seconds", false) | |||
| 785 | - | ||||
| 786 | cret := xDateTimeGetSeconds(x.GoPointer()) | 714 | cret := xDateTimeGetSeconds(x.GoPointer()) | ||
| 787 | return cret | 715 | return cret | ||
| 788 | } | 716 | } | ||
| @@ -791,8 +719,6 @@ var xDateTimeGetTimezone func(uintptr) uintptr | |||||
| 791 | 719 | ||||
| 792 | // Get the time zone for this @datetime. | 720 | // Get the time zone for this @datetime. | ||
| 793 | func (x *DateTime) GetTimezone() *TimeZone { | 721 | func (x *DateTime) GetTimezone() *TimeZone { | ||
| 794 | - | core.LazyRegister(&xDateTimeGetTimezone, "GLIB", "g_date_time_get_timezone", false) | |||
| 795 | - | ||||
| 796 | cret := xDateTimeGetTimezone(x.GoPointer()) | 722 | cret := xDateTimeGetTimezone(x.GoPointer()) | ||
| 797 | if cret == 0 { | 723 | if cret == 0 { | ||
| 798 | return nil | 724 | return nil | ||
| @@ -809,8 +735,6 @@ var xDateTimeGetTimezoneAbbreviation func(uintptr) string | |||||
| 809 | // months and "EDT" during the summer months when daylight savings | 735 | // months and "EDT" during the summer months when daylight savings | ||
| 810 | // time is in effect. | 736 | // time is in effect. | ||
| 811 | func (x *DateTime) GetTimezoneAbbreviation() string { | 737 | func (x *DateTime) GetTimezoneAbbreviation() string { | ||
| 812 | - | core.LazyRegister(&xDateTimeGetTimezoneAbbreviation, "GLIB", "g_date_time_get_timezone_abbreviation", false) | |||
| 813 | - | ||||
| 814 | cret := xDateTimeGetTimezoneAbbreviation(x.GoPointer()) | 738 | cret := xDateTimeGetTimezoneAbbreviation(x.GoPointer()) | ||
| 815 | return cret | 739 | return cret | ||
| 816 | } | 740 | } | ||
| @@ -826,8 +750,6 @@ var xDateTimeGetUtcOffset func(uintptr) TimeSpan | |||||
| 826 | // | 750 | // | ||
| 827 | // If @datetime represents UTC time, then the offset is always zero. | 751 | // If @datetime represents UTC time, then the offset is always zero. | ||
| 828 | func (x *DateTime) GetUtcOffset() TimeSpan { | 752 | func (x *DateTime) GetUtcOffset() TimeSpan { | ||
| 829 | - | core.LazyRegister(&xDateTimeGetUtcOffset, "GLIB", "g_date_time_get_utc_offset", false) | |||
| 830 | - | ||||
| 831 | cret := xDateTimeGetUtcOffset(x.GoPointer()) | 753 | cret := xDateTimeGetUtcOffset(x.GoPointer()) | ||
| 832 | return cret | 754 | return cret | ||
| 833 | } | 755 | } | ||
| @@ -866,8 +788,6 @@ var xDateTimeGetWeekNumberingYear func(uintptr) int | |||||
| 866 | // Note that January 1 0001 in the proleptic Gregorian calendar is a | 788 | // Note that January 1 0001 in the proleptic Gregorian calendar is a | ||
| 867 | // Monday, so this function never returns 0. | 789 | // Monday, so this function never returns 0. | ||
| 868 | func (x *DateTime) GetWeekNumberingYear() int { | 790 | func (x *DateTime) GetWeekNumberingYear() int { | ||
| 869 | - | core.LazyRegister(&xDateTimeGetWeekNumberingYear, "GLIB", "g_date_time_get_week_numbering_year", false) | |||
| 870 | - | ||||
| 871 | cret := xDateTimeGetWeekNumberingYear(x.GoPointer()) | 791 | cret := xDateTimeGetWeekNumberingYear(x.GoPointer()) | ||
| 872 | return cret | 792 | return cret | ||
| 873 | } | 793 | } | ||
| @@ -890,8 +810,6 @@ var xDateTimeGetWeekOfYear func(uintptr) int | |||||
| 890 | // considered as being part of the first ISO 8601 week of the next year | 810 | // considered as being part of the first ISO 8601 week of the next year | ||
| 891 | // if 4 or more days of that week are contained within the new year. | 811 | // if 4 or more days of that week are contained within the new year. | ||
| 892 | func (x *DateTime) GetWeekOfYear() int { | 812 | func (x *DateTime) GetWeekOfYear() int { | ||
| 893 | - | core.LazyRegister(&xDateTimeGetWeekOfYear, "GLIB", "g_date_time_get_week_of_year", false) | |||
| 894 | - | ||||
| 895 | cret := xDateTimeGetWeekOfYear(x.GoPointer()) | 813 | cret := xDateTimeGetWeekOfYear(x.GoPointer()) | ||
| 896 | return cret | 814 | return cret | ||
| 897 | } | 815 | } | ||
| @@ -900,8 +818,6 @@ var xDateTimeGetYear func(uintptr) int | |||||
| 900 | 818 | ||||
| 901 | // Retrieves the year represented by @datetime in the Gregorian calendar. | 819 | // Retrieves the year represented by @datetime in the Gregorian calendar. | ||
| 902 | func (x *DateTime) GetYear() int { | 820 | func (x *DateTime) GetYear() int { | ||
| 903 | - | core.LazyRegister(&xDateTimeGetYear, "GLIB", "g_date_time_get_year", false) | |||
| 904 | - | ||||
| 905 | cret := xDateTimeGetYear(x.GoPointer()) | 821 | cret := xDateTimeGetYear(x.GoPointer()) | ||
| 906 | return cret | 822 | return cret | ||
| 907 | } | 823 | } | ||
| @@ -910,8 +826,6 @@ var xDateTimeGetYmd func(uintptr, *int, *int, *int) | |||||
| 910 | 826 | ||||
| 911 | // Retrieves the Gregorian day, month, and year of a given #GDateTime. | 827 | // Retrieves the Gregorian day, month, and year of a given #GDateTime. | ||
| 912 | func (x *DateTime) GetYmd(YearVar *int, MonthVar *int, DayVar *int) { | 828 | func (x *DateTime) GetYmd(YearVar *int, MonthVar *int, DayVar *int) { | ||
| 913 | - | core.LazyRegister(&xDateTimeGetYmd, "GLIB", "g_date_time_get_ymd", false) | |||
| 914 | - | ||||
| 915 | xDateTimeGetYmd(x.GoPointer(), YearVar, MonthVar, DayVar) | 829 | xDateTimeGetYmd(x.GoPointer(), YearVar, MonthVar, DayVar) | ||
| 916 | } | 830 | } | ||
| 917 | 831 | ||||
| @@ -919,8 +833,6 @@ var xDateTimeHash func(uintptr) uint | |||||
| 919 | 833 | ||||
| 920 | // Hashes @datetime into a #guint, suitable for use within #GHashTable. | 834 | // Hashes @datetime into a #guint, suitable for use within #GHashTable. | ||
| 921 | func (x *DateTime) Hash() uint { | 835 | func (x *DateTime) Hash() uint { | ||
| 922 | - | core.LazyRegister(&xDateTimeHash, "GLIB", "g_date_time_hash", false) | |||
| 923 | - | ||||
| 924 | cret := xDateTimeHash(x.GoPointer()) | 836 | cret := xDateTimeHash(x.GoPointer()) | ||
| 925 | return cret | 837 | return cret | ||
| 926 | } | 838 | } | ||
| @@ -930,8 +842,6 @@ var xDateTimeIsDaylightSavings func(uintptr) bool | |||||
| 930 | // Determines if daylight savings time is in effect at the time and in | 842 | // Determines if daylight savings time is in effect at the time and in | ||
| 931 | // the time zone of @datetime. | 843 | // the time zone of @datetime. | ||
| 932 | func (x *DateTime) IsDaylightSavings() bool { | 844 | func (x *DateTime) IsDaylightSavings() bool { | ||
| 933 | - | core.LazyRegister(&xDateTimeIsDaylightSavings, "GLIB", "g_date_time_is_daylight_savings", false) | |||
| 934 | - | ||||
| 935 | cret := xDateTimeIsDaylightSavings(x.GoPointer()) | 845 | cret := xDateTimeIsDaylightSavings(x.GoPointer()) | ||
| 936 | return cret | 846 | return cret | ||
| 937 | } | 847 | } | ||
| @@ -940,8 +850,6 @@ var xDateTimeRef func(uintptr) uintptr | |||||
| 940 | 850 | ||||
| 941 | // Atomically increments the reference count of @datetime by one. | 851 | // Atomically increments the reference count of @datetime by one. | ||
| 942 | func (x *DateTime) Ref() *DateTime { | 852 | func (x *DateTime) Ref() *DateTime { | ||
| 943 | - | core.LazyRegister(&xDateTimeRef, "GLIB", "g_date_time_ref", false) | |||
| 944 | - | ||||
| 945 | cret := xDateTimeRef(x.GoPointer()) | 853 | cret := xDateTimeRef(x.GoPointer()) | ||
| 946 | if cret == 0 { | 854 | if cret == 0 { | ||
| 947 | return nil | 855 | return nil | ||
| @@ -957,8 +865,6 @@ var xDateTimeToLocal func(uintptr) uintptr | |||||
| 957 | // This call is equivalent to calling g_date_time_to_timezone() with the | 865 | // This call is equivalent to calling g_date_time_to_timezone() with the | ||
| 958 | // time zone returned by g_time_zone_new_local(). | 866 | // time zone returned by g_time_zone_new_local(). | ||
| 959 | func (x *DateTime) ToLocal() *DateTime { | 867 | func (x *DateTime) ToLocal() *DateTime { | ||
| 960 | - | core.LazyRegister(&xDateTimeToLocal, "GLIB", "g_date_time_to_local", false) | |||
| 961 | - | ||||
| 962 | cret := xDateTimeToLocal(x.GoPointer()) | 868 | cret := xDateTimeToLocal(x.GoPointer()) | ||
| 963 | if cret == 0 { | 869 | if cret == 0 { | ||
| 964 | return nil | 870 | return nil | ||
| @@ -982,8 +888,6 @@ var xDateTimeToTimeval func(uintptr, *TimeVal) bool | |||||
| 982 | // | 888 | // | ||
| 983 | // On systems where 'long' is 64bit, this function never fails. | 889 | // On systems where 'long' is 64bit, this function never fails. | ||
| 984 | func (x *DateTime) ToTimeval(TvVar *TimeVal) bool { | 890 | func (x *DateTime) ToTimeval(TvVar *TimeVal) bool { | ||
| 985 | - | core.LazyRegister(&xDateTimeToTimeval, "GLIB", "g_date_time_to_timeval", false) | |||
| 986 | - | ||||
| 987 | cret := xDateTimeToTimeval(x.GoPointer(), TvVar) | 891 | cret := xDateTimeToTimeval(x.GoPointer(), TvVar) | ||
| 988 | return cret | 892 | return cret | ||
| 989 | } | 893 | } | ||
| @@ -997,8 +901,6 @@ var xDateTimeToTimezone func(uintptr, *TimeZone) uintptr | |||||
| 997 | // example, converting 0001-01-01 00:00:00 UTC to a time zone west of | 901 | // example, converting 0001-01-01 00:00:00 UTC to a time zone west of | ||
| 998 | // Greenwich will fail (due to the year 0 being out of range). | 902 | // Greenwich will fail (due to the year 0 being out of range). | ||
| 999 | func (x *DateTime) ToTimezone(TzVar *TimeZone) *DateTime { | 903 | func (x *DateTime) ToTimezone(TzVar *TimeZone) *DateTime { | ||
| 1000 | - | core.LazyRegister(&xDateTimeToTimezone, "GLIB", "g_date_time_to_timezone", false) | |||
| 1001 | - | ||||
| 1002 | cret := xDateTimeToTimezone(x.GoPointer(), TzVar) | 904 | cret := xDateTimeToTimezone(x.GoPointer(), TzVar) | ||
| 1003 | if cret == 0 { | 905 | if cret == 0 { | ||
| 1004 | return nil | 906 | return nil | ||
| @@ -1014,8 +916,6 @@ var xDateTimeToUnix func(uintptr) int64 | |||||
| 1014 | // Unix time is the number of seconds that have elapsed since 1970-01-01 | 916 | // Unix time is the number of seconds that have elapsed since 1970-01-01 | ||
| 1015 | // 00:00:00 UTC, regardless of the time zone associated with @datetime. | 917 | // 00:00:00 UTC, regardless of the time zone associated with @datetime. | ||
| 1016 | func (x *DateTime) ToUnix() int64 { | 918 | func (x *DateTime) ToUnix() int64 { | ||
| 1017 | - | core.LazyRegister(&xDateTimeToUnix, "GLIB", "g_date_time_to_unix", false) | |||
| 1018 | - | ||||
| 1019 | cret := xDateTimeToUnix(x.GoPointer()) | 919 | cret := xDateTimeToUnix(x.GoPointer()) | ||
| 1020 | return cret | 920 | return cret | ||
| 1021 | } | 921 | } | ||
| @@ -1027,8 +927,6 @@ var xDateTimeToUnixUsec func(uintptr) int64 | |||||
| 1027 | // Unix time is the number of microseconds that have elapsed since 1970-01-01 | 927 | // Unix time is the number of microseconds that have elapsed since 1970-01-01 | ||
| 1028 | // 00:00:00 UTC, regardless of the time zone associated with @datetime. | 928 | // 00:00:00 UTC, regardless of the time zone associated with @datetime. | ||
| 1029 | func (x *DateTime) ToUnixUsec() int64 { | 929 | func (x *DateTime) ToUnixUsec() int64 { | ||
| 1030 | - | core.LazyRegister(&xDateTimeToUnixUsec, "GLIB", "g_date_time_to_unix_usec", false) | |||
| 1031 | - | ||||
| 1032 | cret := xDateTimeToUnixUsec(x.GoPointer()) | 930 | cret := xDateTimeToUnixUsec(x.GoPointer()) | ||
| 1033 | return cret | 931 | return cret | ||
| 1034 | } | 932 | } | ||
| @@ -1041,8 +939,6 @@ var xDateTimeToUtc func(uintptr) uintptr | |||||
| 1041 | // This call is equivalent to calling g_date_time_to_timezone() with the | 939 | // This call is equivalent to calling g_date_time_to_timezone() with the | ||
| 1042 | // time zone returned by g_time_zone_new_utc(). | 940 | // time zone returned by g_time_zone_new_utc(). | ||
| 1043 | func (x *DateTime) ToUtc() *DateTime { | 941 | func (x *DateTime) ToUtc() *DateTime { | ||
| 1044 | - | core.LazyRegister(&xDateTimeToUtc, "GLIB", "g_date_time_to_utc", false) | |||
| 1045 | - | ||||
| 1046 | cret := xDateTimeToUtc(x.GoPointer()) | 942 | cret := xDateTimeToUtc(x.GoPointer()) | ||
| 1047 | if cret == 0 { | 943 | if cret == 0 { | ||
| 1048 | return nil | 944 | return nil | ||
| @@ -1057,8 +953,6 @@ var xDateTimeUnref func(uintptr) | |||||
| 1057 | // When the reference count reaches zero, the resources allocated by | 953 | // When the reference count reaches zero, the resources allocated by | ||
| 1058 | // @datetime are freed | 954 | // @datetime are freed | ||
| 1059 | func (x *DateTime) Unref() { | 955 | func (x *DateTime) Unref() { | ||
| 1060 | - | core.LazyRegister(&xDateTimeUnref, "GLIB", "g_date_time_unref", false) | |||
| 1061 | - | ||||
| 1062 | xDateTimeUnref(x.GoPointer()) | 956 | xDateTimeUnref(x.GoPointer()) | ||
| 1063 | } | 957 | } | ||
| 1064 | 958 | ||||
| @@ -1081,4 +975,69 @@ const ( | |||||
| 1081 | func init() { | 975 | func init() { | ||
| 1082 | core.SetPackageName("GLIB", "glib-2.0") | 976 | core.SetPackageName("GLIB", "glib-2.0") | ||
| 1083 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | 977 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | ||
| 978 | + | var libs []uintptr | |||
| 979 | + | for _, libPath := range core.GetPaths("GLIB") { | |||
| 980 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 981 | + | if err != nil { | |||
| 982 | + | panic(err) | |||
| 983 | + | } | |||
| 984 | + | libs = append(libs, lib) | |||
| 985 | + | } | |||
| 986 | + | ||||
| 987 | + | core.PuregoSafeRegister(&xDateTimeGLibType, libs, "g_date_time_get_type") | |||
| 988 | + | ||||
| 989 | + | core.PuregoSafeRegister(&xNewDateTime, libs, "g_date_time_new") | |||
| 990 | + | core.PuregoSafeRegister(&xNewDateTimeFromIso8601, libs, "g_date_time_new_from_iso8601") | |||
| 991 | + | core.PuregoSafeRegister(&xNewDateTimeFromTimevalLocal, libs, "g_date_time_new_from_timeval_local") | |||
| 992 | + | core.PuregoSafeRegister(&xNewDateTimeFromTimevalUtc, libs, "g_date_time_new_from_timeval_utc") | |||
| 993 | + | core.PuregoSafeRegister(&xNewDateTimeFromUnixLocal, libs, "g_date_time_new_from_unix_local") | |||
| 994 | + | core.PuregoSafeRegister(&xNewDateTimeFromUnixLocalUsec, libs, "g_date_time_new_from_unix_local_usec") | |||
| 995 | + | core.PuregoSafeRegister(&xNewDateTimeFromUnixUtc, libs, "g_date_time_new_from_unix_utc") | |||
| 996 | + | core.PuregoSafeRegister(&xNewDateTimeFromUnixUtcUsec, libs, "g_date_time_new_from_unix_utc_usec") | |||
| 997 | + | core.PuregoSafeRegister(&xNewDateTimeLocal, libs, "g_date_time_new_local") | |||
| 998 | + | core.PuregoSafeRegister(&xNewDateTimeNow, libs, "g_date_time_new_now") | |||
| 999 | + | core.PuregoSafeRegister(&xNewDateTimeNowLocal, libs, "g_date_time_new_now_local") | |||
| 1000 | + | core.PuregoSafeRegister(&xNewDateTimeNowUtc, libs, "g_date_time_new_now_utc") | |||
| 1001 | + | core.PuregoSafeRegister(&xNewDateTimeUtc, libs, "g_date_time_new_utc") | |||
| 1002 | + | ||||
| 1003 | + | core.PuregoSafeRegister(&xDateTimeAdd, libs, "g_date_time_add") | |||
| 1004 | + | core.PuregoSafeRegister(&xDateTimeAddDays, libs, "g_date_time_add_days") | |||
| 1005 | + | core.PuregoSafeRegister(&xDateTimeAddFull, libs, "g_date_time_add_full") | |||
| 1006 | + | core.PuregoSafeRegister(&xDateTimeAddHours, libs, "g_date_time_add_hours") | |||
| 1007 | + | core.PuregoSafeRegister(&xDateTimeAddMinutes, libs, "g_date_time_add_minutes") | |||
| 1008 | + | core.PuregoSafeRegister(&xDateTimeAddMonths, libs, "g_date_time_add_months") | |||
| 1009 | + | core.PuregoSafeRegister(&xDateTimeAddSeconds, libs, "g_date_time_add_seconds") | |||
| 1010 | + | core.PuregoSafeRegister(&xDateTimeAddWeeks, libs, "g_date_time_add_weeks") | |||
| 1011 | + | core.PuregoSafeRegister(&xDateTimeAddYears, libs, "g_date_time_add_years") | |||
| 1012 | + | core.PuregoSafeRegister(&xDateTimeCompare, libs, "g_date_time_compare") | |||
| 1013 | + | core.PuregoSafeRegister(&xDateTimeDifference, libs, "g_date_time_difference") | |||
| 1014 | + | core.PuregoSafeRegister(&xDateTimeEqual, libs, "g_date_time_equal") | |||
| 1015 | + | core.PuregoSafeRegister(&xDateTimeFormat, libs, "g_date_time_format") | |||
| 1016 | + | core.PuregoSafeRegister(&xDateTimeFormatIso8601, libs, "g_date_time_format_iso8601") | |||
| 1017 | + | core.PuregoSafeRegister(&xDateTimeGetDayOfMonth, libs, "g_date_time_get_day_of_month") | |||
| 1018 | + | core.PuregoSafeRegister(&xDateTimeGetDayOfWeek, libs, "g_date_time_get_day_of_week") | |||
| 1019 | + | core.PuregoSafeRegister(&xDateTimeGetDayOfYear, libs, "g_date_time_get_day_of_year") | |||
| 1020 | + | core.PuregoSafeRegister(&xDateTimeGetHour, libs, "g_date_time_get_hour") | |||
| 1021 | + | core.PuregoSafeRegister(&xDateTimeGetMicrosecond, libs, "g_date_time_get_microsecond") | |||
| 1022 | + | core.PuregoSafeRegister(&xDateTimeGetMinute, libs, "g_date_time_get_minute") | |||
| 1023 | + | core.PuregoSafeRegister(&xDateTimeGetMonth, libs, "g_date_time_get_month") | |||
| 1024 | + | core.PuregoSafeRegister(&xDateTimeGetSecond, libs, "g_date_time_get_second") | |||
| 1025 | + | core.PuregoSafeRegister(&xDateTimeGetSeconds, libs, "g_date_time_get_seconds") | |||
| 1026 | + | core.PuregoSafeRegister(&xDateTimeGetTimezone, libs, "g_date_time_get_timezone") | |||
| 1027 | + | core.PuregoSafeRegister(&xDateTimeGetTimezoneAbbreviation, libs, "g_date_time_get_timezone_abbreviation") | |||
| 1028 | + | core.PuregoSafeRegister(&xDateTimeGetUtcOffset, libs, "g_date_time_get_utc_offset") | |||
| 1029 | + | core.PuregoSafeRegister(&xDateTimeGetWeekNumberingYear, libs, "g_date_time_get_week_numbering_year") | |||
| 1030 | + | core.PuregoSafeRegister(&xDateTimeGetWeekOfYear, libs, "g_date_time_get_week_of_year") | |||
| 1031 | + | core.PuregoSafeRegister(&xDateTimeGetYear, libs, "g_date_time_get_year") | |||
| 1032 | + | core.PuregoSafeRegister(&xDateTimeGetYmd, libs, "g_date_time_get_ymd") | |||
| 1033 | + | core.PuregoSafeRegister(&xDateTimeHash, libs, "g_date_time_hash") | |||
| 1034 | + | core.PuregoSafeRegister(&xDateTimeIsDaylightSavings, libs, "g_date_time_is_daylight_savings") | |||
| 1035 | + | core.PuregoSafeRegister(&xDateTimeRef, libs, "g_date_time_ref") | |||
| 1036 | + | core.PuregoSafeRegister(&xDateTimeToLocal, libs, "g_date_time_to_local") | |||
| 1037 | + | core.PuregoSafeRegister(&xDateTimeToTimeval, libs, "g_date_time_to_timeval") | |||
| 1038 | + | core.PuregoSafeRegister(&xDateTimeToTimezone, libs, "g_date_time_to_timezone") | |||
| 1039 | + | core.PuregoSafeRegister(&xDateTimeToUnix, libs, "g_date_time_to_unix") | |||
| 1040 | + | core.PuregoSafeRegister(&xDateTimeToUnixUsec, libs, "g_date_time_to_unix_usec") | |||
| 1041 | + | core.PuregoSafeRegister(&xDateTimeToUtc, libs, "g_date_time_to_utc") | |||
| 1042 | + | core.PuregoSafeRegister(&xDateTimeUnref, libs, "g_date_time_unref") | |||
| 1084 | } | 1043 | } | ||