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
| @@ -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 | ) | |
| @@ -67,7 +68,6 @@ type Date struct { | |||
| 67 | 68 | var xDateGLibType func() types.GType | |
| 68 | 69 | ||
| 69 | 70 | func DateGLibType() types.GType { | |
| 70 | - | core.LazyRegister(&xDateGLibType, "GLIB", "g_date_get_type", false) | |
| 71 | 71 | return xDateGLibType() | |
| 72 | 72 | } | |
| 73 | 73 | ||
| @@ -90,8 +90,6 @@ var xNewDate func() uintptr | |||
| 90 | 90 | // be cleared (as if you'd called g_date_clear()) but invalid (it won't | |
| 91 | 91 | // represent an existing day). Free the return value with g_date_free(). | |
| 92 | 92 | func NewDate() *Date { | |
| 93 | - | core.LazyRegister(&xNewDate, "GLIB", "g_date_new", false) | |
| 94 | - | ||
| 95 | 93 | cret := xNewDate() | |
| 96 | 94 | if cret == 0 { | |
| 97 | 95 | return nil | |
| @@ -107,8 +105,6 @@ var xNewDateDmy func(DateDay, DateMonth, DateYear) uintptr | |||
| 107 | 105 | // if needed to validate it. The returned #GDate is guaranteed to be non-%NULL | |
| 108 | 106 | // and valid. | |
| 109 | 107 | func NewDateDmy(DayVar DateDay, MonthVar DateMonth, YearVar DateYear) *Date { | |
| 110 | - | core.LazyRegister(&xNewDateDmy, "GLIB", "g_date_new_dmy", false) | |
| 111 | - | ||
| 112 | 108 | cret := xNewDateDmy(DayVar, MonthVar, YearVar) | |
| 113 | 109 | if cret == 0 { | |
| 114 | 110 | return nil | |
| @@ -124,8 +120,6 @@ var xNewDateJulian func(uint32) uintptr | |||
| 124 | 120 | // needed to validate it. The returned #GDate is guaranteed to be non-%NULL and | |
| 125 | 121 | // valid. | |
| 126 | 122 | func NewDateJulian(JulianDayVar uint32) *Date { | |
| 127 | - | core.LazyRegister(&xNewDateJulian, "GLIB", "g_date_new_julian", false) | |
| 128 | - | ||
| 129 | 123 | cret := xNewDateJulian(JulianDayVar) | |
| 130 | 124 | if cret == 0 { | |
| 131 | 125 | return nil | |
| @@ -139,8 +133,6 @@ var xDateAddDays func(uintptr, uint) | |||
| 139 | 133 | // To move forward by weeks, add weeks*7 days. | |
| 140 | 134 | // The date must be valid. | |
| 141 | 135 | func (x *Date) AddDays(NDaysVar uint) { | |
| 142 | - | core.LazyRegister(&xDateAddDays, "GLIB", "g_date_add_days", false) | |
| 143 | - | ||
| 144 | 136 | xDateAddDays(x.GoPointer(), NDaysVar) | |
| 145 | 137 | } | |
| 146 | 138 | ||
| @@ -152,8 +144,6 @@ var xDateAddMonths func(uintptr, uint) | |||
| 152 | 144 | // (because the destination month may not have | |
| 153 | 145 | // the current day in it). The date must be valid. | |
| 154 | 146 | func (x *Date) AddMonths(NMonthsVar uint) { | |
| 155 | - | core.LazyRegister(&xDateAddMonths, "GLIB", "g_date_add_months", false) | |
| 156 | - | ||
| 157 | 147 | xDateAddMonths(x.GoPointer(), NMonthsVar) | |
| 158 | 148 | } | |
| 159 | 149 | ||
| @@ -164,8 +154,6 @@ var xDateAddYears func(uintptr, uint) | |||
| 164 | 154 | // year is not a leap year, the date will be changed | |
| 165 | 155 | // to February 28. The date must be valid. | |
| 166 | 156 | func (x *Date) AddYears(NYearsVar uint) { | |
| 167 | - | core.LazyRegister(&xDateAddYears, "GLIB", "g_date_add_years", false) | |
| 168 | - | ||
| 169 | 157 | xDateAddYears(x.GoPointer(), NYearsVar) | |
| 170 | 158 | } | |
| 171 | 159 | ||
| @@ -177,8 +165,6 @@ var xDateClamp func(uintptr, *Date, *Date) | |||
| 177 | 165 | // Either of @min_date and @max_date may be %NULL. | |
| 178 | 166 | // All non-%NULL dates must be valid. | |
| 179 | 167 | func (x *Date) Clamp(MinDateVar *Date, MaxDateVar *Date) { | |
| 180 | - | core.LazyRegister(&xDateClamp, "GLIB", "g_date_clamp", false) | |
| 181 | - | ||
| 182 | 168 | xDateClamp(x.GoPointer(), MinDateVar, MaxDateVar) | |
| 183 | 169 | } | |
| 184 | 170 | ||
| @@ -189,8 +175,6 @@ var xDateClear func(uintptr, uint) | |||
| 189 | 175 | // not contain garbage. Useful to init a date declared on the stack. | |
| 190 | 176 | // Validity can be tested with g_date_valid(). | |
| 191 | 177 | func (x *Date) Clear(NDatesVar uint) { | |
| 192 | - | core.LazyRegister(&xDateClear, "GLIB", "g_date_clear", false) | |
| 193 | - | ||
| 194 | 178 | xDateClear(x.GoPointer(), NDatesVar) | |
| 195 | 179 | } | |
| 196 | 180 | ||
| @@ -199,8 +183,6 @@ var xDateCompare func(uintptr, *Date) int | |||
| 199 | 183 | // qsort()-style comparison function for dates. | |
| 200 | 184 | // Both dates must be valid. | |
| 201 | 185 | func (x *Date) Compare(RhsVar *Date) int { | |
| 202 | - | core.LazyRegister(&xDateCompare, "GLIB", "g_date_compare", false) | |
| 203 | - | ||
| 204 | 186 | cret := xDateCompare(x.GoPointer(), RhsVar) | |
| 205 | 187 | return cret | |
| 206 | 188 | } | |
| @@ -211,8 +193,6 @@ var xDateCopy func(uintptr) uintptr | |||
| 211 | 193 | // (as determined by g_date_valid()), the invalid state will be copied | |
| 212 | 194 | // as is into the new object. | |
| 213 | 195 | func (x *Date) Copy() *Date { | |
| 214 | - | core.LazyRegister(&xDateCopy, "GLIB", "g_date_copy", false) | |
| 215 | - | ||
| 216 | 196 | cret := xDateCopy(x.GoPointer()) | |
| 217 | 197 | if cret == 0 { | |
| 218 | 198 | return nil | |
| @@ -226,8 +206,6 @@ var xDateDaysBetween func(uintptr, *Date) int | |||
| 226 | 206 | // If @date2 is prior to @date1, the returned value is negative. | |
| 227 | 207 | // Both dates must be valid. | |
| 228 | 208 | func (x *Date) DaysBetween(Date2Var *Date) int { | |
| 229 | - | core.LazyRegister(&xDateDaysBetween, "GLIB", "g_date_days_between", false) | |
| 230 | - | ||
| 231 | 209 | cret := xDateDaysBetween(x.GoPointer(), Date2Var) | |
| 232 | 210 | return cret | |
| 233 | 211 | } | |
| @@ -236,8 +214,6 @@ var xDateFree func(uintptr) | |||
| 236 | 214 | ||
| 237 | 215 | // Frees a #GDate returned from g_date_new(). | |
| 238 | 216 | func (x *Date) Free() { | |
| 239 | - | core.LazyRegister(&xDateFree, "GLIB", "g_date_free", false) | |
| 240 | - | ||
| 241 | 217 | xDateFree(x.GoPointer()) | |
| 242 | 218 | } | |
| 243 | 219 | ||
| @@ -245,8 +221,6 @@ var xDateGetDay func(uintptr) DateDay | |||
| 245 | 221 | ||
| 246 | 222 | // Returns the day of the month. The date must be valid. | |
| 247 | 223 | func (x *Date) GetDay() DateDay { | |
| 248 | - | core.LazyRegister(&xDateGetDay, "GLIB", "g_date_get_day", false) | |
| 249 | - | ||
| 250 | 224 | cret := xDateGetDay(x.GoPointer()) | |
| 251 | 225 | return cret | |
| 252 | 226 | } | |
| @@ -256,8 +230,6 @@ var xDateGetDayOfYear func(uintptr) uint | |||
| 256 | 230 | // Returns the day of the year, where Jan 1 is the first day of the | |
| 257 | 231 | // year. The date must be valid. | |
| 258 | 232 | func (x *Date) GetDayOfYear() uint { | |
| 259 | - | core.LazyRegister(&xDateGetDayOfYear, "GLIB", "g_date_get_day_of_year", false) | |
| 260 | - | ||
| 261 | 233 | cret := xDateGetDayOfYear(x.GoPointer()) | |
| 262 | 234 | return cret | |
| 263 | 235 | } | |
| @@ -267,8 +239,6 @@ var xDateGetIso8601WeekOfYear func(uintptr) uint | |||
| 267 | 239 | // Returns the week of the year, where weeks are interpreted according | |
| 268 | 240 | // to ISO 8601. | |
| 269 | 241 | func (x *Date) GetIso8601WeekOfYear() uint { | |
| 270 | - | core.LazyRegister(&xDateGetIso8601WeekOfYear, "GLIB", "g_date_get_iso8601_week_of_year", false) | |
| 271 | - | ||
| 272 | 242 | cret := xDateGetIso8601WeekOfYear(x.GoPointer()) | |
| 273 | 243 | return cret | |
| 274 | 244 | } | |
| @@ -280,8 +250,6 @@ var xDateGetJulian func(uintptr) uint32 | |||
| 280 | 250 | // January 1, Year 1 is Julian day 1; January 2, Year 1 is Julian day 2, | |
| 281 | 251 | // etc. The date must be valid. | |
| 282 | 252 | func (x *Date) GetJulian() uint32 { | |
| 283 | - | core.LazyRegister(&xDateGetJulian, "GLIB", "g_date_get_julian", false) | |
| 284 | - | ||
| 285 | 253 | cret := xDateGetJulian(x.GoPointer()) | |
| 286 | 254 | return cret | |
| 287 | 255 | } | |
| @@ -292,8 +260,6 @@ var xDateGetMondayWeekOfYear func(uintptr) uint | |||
| 292 | 260 | // Monday. If the date is before the first Monday of the year, return 0. | |
| 293 | 261 | // The date must be valid. | |
| 294 | 262 | func (x *Date) GetMondayWeekOfYear() uint { | |
| 295 | - | core.LazyRegister(&xDateGetMondayWeekOfYear, "GLIB", "g_date_get_monday_week_of_year", false) | |
| 296 | - | ||
| 297 | 263 | cret := xDateGetMondayWeekOfYear(x.GoPointer()) | |
| 298 | 264 | return cret | |
| 299 | 265 | } | |
| @@ -302,8 +268,6 @@ var xDateGetMonth func(uintptr) DateMonth | |||
| 302 | 268 | ||
| 303 | 269 | // Returns the month of the year. The date must be valid. | |
| 304 | 270 | func (x *Date) GetMonth() DateMonth { | |
| 305 | - | core.LazyRegister(&xDateGetMonth, "GLIB", "g_date_get_month", false) | |
| 306 | - | ||
| 307 | 271 | cret := xDateGetMonth(x.GoPointer()) | |
| 308 | 272 | return cret | |
| 309 | 273 | } | |
| @@ -314,8 +278,6 @@ var xDateGetSundayWeekOfYear func(uintptr) uint | |||
| 314 | 278 | // weeks are understood to begin on Sunday. The date must be valid. | |
| 315 | 279 | // Can return 0 if the day is before the first Sunday of the year. | |
| 316 | 280 | func (x *Date) GetSundayWeekOfYear() uint { | |
| 317 | - | core.LazyRegister(&xDateGetSundayWeekOfYear, "GLIB", "g_date_get_sunday_week_of_year", false) | |
| 318 | - | ||
| 319 | 281 | cret := xDateGetSundayWeekOfYear(x.GoPointer()) | |
| 320 | 282 | return cret | |
| 321 | 283 | } | |
| @@ -331,8 +293,6 @@ var xDateGetWeekOfYear func(uintptr, DateWeekday) uint | |||
| 331 | 293 | // before the first Monday in January if @first_day_of_week is | |
| 332 | 294 | // [enum@GLib.DateWeekday.MONDAY]) then zero will be returned. | |
| 333 | 295 | func (x *Date) GetWeekOfYear(FirstDayOfWeekVar DateWeekday) uint { | |
| 334 | - | core.LazyRegister(&xDateGetWeekOfYear, "GLIB", "g_date_get_week_of_year", false) | |
| 335 | - | ||
| 336 | 296 | cret := xDateGetWeekOfYear(x.GoPointer(), FirstDayOfWeekVar) | |
| 337 | 297 | return cret | |
| 338 | 298 | } | |
| @@ -341,8 +301,6 @@ var xDateGetWeekday func(uintptr) DateWeekday | |||
| 341 | 301 | ||
| 342 | 302 | // Returns the day of the week for a #GDate. The date must be valid. | |
| 343 | 303 | func (x *Date) GetWeekday() DateWeekday { | |
| 344 | - | core.LazyRegister(&xDateGetWeekday, "GLIB", "g_date_get_weekday", false) | |
| 345 | - | ||
| 346 | 304 | cret := xDateGetWeekday(x.GoPointer()) | |
| 347 | 305 | return cret | |
| 348 | 306 | } | |
| @@ -351,8 +309,6 @@ var xDateGetYear func(uintptr) DateYear | |||
| 351 | 309 | ||
| 352 | 310 | // Returns the year of a #GDate. The date must be valid. | |
| 353 | 311 | func (x *Date) GetYear() DateYear { | |
| 354 | - | core.LazyRegister(&xDateGetYear, "GLIB", "g_date_get_year", false) | |
| 355 | - | ||
| 356 | 312 | cret := xDateGetYear(x.GoPointer()) | |
| 357 | 313 | return cret | |
| 358 | 314 | } | |
| @@ -362,8 +318,6 @@ var xDateIsFirstOfMonth func(uintptr) bool | |||
| 362 | 318 | // Returns %TRUE if the date is on the first of a month. | |
| 363 | 319 | // The date must be valid. | |
| 364 | 320 | func (x *Date) IsFirstOfMonth() bool { | |
| 365 | - | core.LazyRegister(&xDateIsFirstOfMonth, "GLIB", "g_date_is_first_of_month", false) | |
| 366 | - | ||
| 367 | 321 | cret := xDateIsFirstOfMonth(x.GoPointer()) | |
| 368 | 322 | return cret | |
| 369 | 323 | } | |
| @@ -373,8 +327,6 @@ var xDateIsLastOfMonth func(uintptr) bool | |||
| 373 | 327 | // Returns %TRUE if the date is the last day of the month. | |
| 374 | 328 | // The date must be valid. | |
| 375 | 329 | func (x *Date) IsLastOfMonth() bool { | |
| 376 | - | core.LazyRegister(&xDateIsLastOfMonth, "GLIB", "g_date_is_last_of_month", false) | |
| 377 | - | ||
| 378 | 330 | cret := xDateIsLastOfMonth(x.GoPointer()) | |
| 379 | 331 | return cret | |
| 380 | 332 | } | |
| @@ -384,8 +336,6 @@ var xDateOrder func(uintptr, *Date) | |||
| 384 | 336 | // Checks if @date1 is less than or equal to @date2, | |
| 385 | 337 | // and swap the values if this is not the case. | |
| 386 | 338 | func (x *Date) Order(Date2Var *Date) { | |
| 387 | - | core.LazyRegister(&xDateOrder, "GLIB", "g_date_order", false) | |
| 388 | - | ||
| 389 | 339 | xDateOrder(x.GoPointer(), Date2Var) | |
| 390 | 340 | } | |
| 391 | 341 | ||
| @@ -394,8 +344,6 @@ var xDateSetDay func(uintptr, DateDay) | |||
| 394 | 344 | // Sets the day of the month for a #GDate. If the resulting | |
| 395 | 345 | // day-month-year triplet is invalid, the date will be invalid. | |
| 396 | 346 | func (x *Date) SetDay(DayVar DateDay) { | |
| 397 | - | core.LazyRegister(&xDateSetDay, "GLIB", "g_date_set_day", false) | |
| 398 | - | ||
| 399 | 347 | xDateSetDay(x.GoPointer(), DayVar) | |
| 400 | 348 | } | |
| 401 | 349 | ||
| @@ -406,8 +354,6 @@ var xDateSetDmy func(uintptr, DateDay, DateMonth, DateYear) | |||
| 406 | 354 | // sure it is, call g_date_valid_dmy() to check before you | |
| 407 | 355 | // set it. | |
| 408 | 356 | func (x *Date) SetDmy(DayVar DateDay, MonthVar DateMonth, YVar DateYear) { | |
| 409 | - | core.LazyRegister(&xDateSetDmy, "GLIB", "g_date_set_dmy", false) | |
| 410 | - | ||
| 411 | 357 | xDateSetDmy(x.GoPointer(), DayVar, MonthVar, YVar) | |
| 412 | 358 | } | |
| 413 | 359 | ||
| @@ -415,8 +361,6 @@ var xDateSetJulian func(uintptr, uint32) | |||
| 415 | 361 | ||
| 416 | 362 | // Sets the value of a #GDate from a Julian day number. | |
| 417 | 363 | func (x *Date) SetJulian(JulianDateVar uint32) { | |
| 418 | - | core.LazyRegister(&xDateSetJulian, "GLIB", "g_date_set_julian", false) | |
| 419 | - | ||
| 420 | 364 | xDateSetJulian(x.GoPointer(), JulianDateVar) | |
| 421 | 365 | } | |
| 422 | 366 | ||
| @@ -425,8 +369,6 @@ var xDateSetMonth func(uintptr, DateMonth) | |||
| 425 | 369 | // Sets the month of the year for a #GDate. If the resulting | |
| 426 | 370 | // day-month-year triplet is invalid, the date will be invalid. | |
| 427 | 371 | func (x *Date) SetMonth(MonthVar DateMonth) { | |
| 428 | - | core.LazyRegister(&xDateSetMonth, "GLIB", "g_date_set_month", false) | |
| 429 | - | ||
| 430 | 372 | xDateSetMonth(x.GoPointer(), MonthVar) | |
| 431 | 373 | } | |
| 432 | 374 | ||
| @@ -444,8 +386,6 @@ var xDateSetParse func(uintptr, string) | |||
| 444 | 386 | // means by a given string (and it does work pretty well in that | |
| 445 | 387 | // capacity). | |
| 446 | 388 | func (x *Date) SetParse(StrVar string) { | |
| 447 | - | core.LazyRegister(&xDateSetParse, "GLIB", "g_date_set_parse", false) | |
| 448 | - | ||
| 449 | 389 | xDateSetParse(x.GoPointer(), StrVar) | |
| 450 | 390 | } | |
| 451 | 391 | ||
| @@ -454,8 +394,6 @@ var xDateSetTime func(uintptr, Time) | |||
| 454 | 394 | // Sets the value of a date from a #GTime value. | |
| 455 | 395 | // The time to date conversion is done using the user's current timezone. | |
| 456 | 396 | func (x *Date) SetTime(TimeVar Time) { | |
| 457 | - | core.LazyRegister(&xDateSetTime, "GLIB", "g_date_set_time", false) | |
| 458 | - | ||
| 459 | 397 | xDateSetTime(x.GoPointer(), TimeVar) | |
| 460 | 398 | } | |
| 461 | 399 | ||
| @@ -475,8 +413,6 @@ var xDateSetTimeT func(uintptr, int) | |||
| 475 | 413 | // | |
| 476 | 414 | // ]| | |
| 477 | 415 | func (x *Date) SetTimeT(TimetVar int) { | |
| 478 | - | core.LazyRegister(&xDateSetTimeT, "GLIB", "g_date_set_time_t", false) | |
| 479 | - | ||
| 480 | 416 | xDateSetTimeT(x.GoPointer(), TimetVar) | |
| 481 | 417 | } | |
| 482 | 418 | ||
| @@ -488,8 +424,6 @@ var xDateSetTimeVal func(uintptr, *TimeVal) | |||
| 488 | 424 | // | |
| 489 | 425 | // The time to date conversion is done using the user's current timezone. | |
| 490 | 426 | func (x *Date) SetTimeVal(TimevalVar *TimeVal) { | |
| 491 | - | core.LazyRegister(&xDateSetTimeVal, "GLIB", "g_date_set_time_val", false) | |
| 492 | - | ||
| 493 | 427 | xDateSetTimeVal(x.GoPointer(), TimevalVar) | |
| 494 | 428 | } | |
| 495 | 429 | ||
| @@ -498,8 +432,6 @@ var xDateSetYear func(uintptr, DateYear) | |||
| 498 | 432 | // Sets the year for a #GDate. If the resulting day-month-year | |
| 499 | 433 | // triplet is invalid, the date will be invalid. | |
| 500 | 434 | func (x *Date) SetYear(YearVar DateYear) { | |
| 501 | - | core.LazyRegister(&xDateSetYear, "GLIB", "g_date_set_year", false) | |
| 502 | - | ||
| 503 | 435 | xDateSetYear(x.GoPointer(), YearVar) | |
| 504 | 436 | } | |
| 505 | 437 | ||
| @@ -509,8 +441,6 @@ var xDateSubtractDays func(uintptr, uint) | |||
| 509 | 441 | // To move by weeks, just move by weeks*7 days. | |
| 510 | 442 | // The date must be valid. | |
| 511 | 443 | func (x *Date) SubtractDays(NDaysVar uint) { | |
| 512 | - | core.LazyRegister(&xDateSubtractDays, "GLIB", "g_date_subtract_days", false) | |
| 513 | - | ||
| 514 | 444 | xDateSubtractDays(x.GoPointer(), NDaysVar) | |
| 515 | 445 | } | |
| 516 | 446 | ||
| @@ -521,8 +451,6 @@ var xDateSubtractMonths func(uintptr, uint) | |||
| 521 | 451 | // the destination month, the day of the month | |
| 522 | 452 | // may change. The date must be valid. | |
| 523 | 453 | func (x *Date) SubtractMonths(NMonthsVar uint) { | |
| 524 | - | core.LazyRegister(&xDateSubtractMonths, "GLIB", "g_date_subtract_months", false) | |
| 525 | - | ||
| 526 | 454 | xDateSubtractMonths(x.GoPointer(), NMonthsVar) | |
| 527 | 455 | } | |
| 528 | 456 | ||
| @@ -534,8 +462,6 @@ var xDateSubtractYears func(uintptr, uint) | |||
| 534 | 462 | // then the day is changed to February 29. The date | |
| 535 | 463 | // must be valid. | |
| 536 | 464 | func (x *Date) SubtractYears(NYearsVar uint) { | |
| 537 | - | core.LazyRegister(&xDateSubtractYears, "GLIB", "g_date_subtract_years", false) | |
| 538 | - | ||
| 539 | 465 | xDateSubtractYears(x.GoPointer(), NYearsVar) | |
| 540 | 466 | } | |
| 541 | 467 | ||
| @@ -544,8 +470,6 @@ var xDateToStructTm func(uintptr, uintptr) | |||
| 544 | 470 | // Fills in the date-related bits of a struct tm using the @date value. | |
| 545 | 471 | // Initializes the non-date parts with something safe but meaningless. | |
| 546 | 472 | func (x *Date) ToStructTm(TmVar uintptr) { | |
| 547 | - | core.LazyRegister(&xDateToStructTm, "GLIB", "g_date_to_struct_tm", false) | |
| 548 | - | ||
| 549 | 473 | xDateToStructTm(x.GoPointer(), TmVar) | |
| 550 | 474 | } | |
| 551 | 475 | ||
| @@ -555,8 +479,6 @@ var xDateValid func(uintptr) bool | |||
| 555 | 479 | // contain garbage; it should have been initialized with g_date_clear() | |
| 556 | 480 | // if it wasn't allocated by one of the g_date_new() variants. | |
| 557 | 481 | func (x *Date) Valid() bool { | |
| 558 | - | core.LazyRegister(&xDateValid, "GLIB", "g_date_valid", false) | |
| 559 | - | ||
| 560 | 482 | cret := xDateValid(x.GoPointer()) | |
| 561 | 483 | return cret | |
| 562 | 484 | } | |
| @@ -684,8 +606,6 @@ var xDateGetDaysInMonth func(DateMonth, DateYear) byte | |||
| 684 | 606 | // Returns the number of days in a month, taking leap | |
| 685 | 607 | // years into account. | |
| 686 | 608 | func DateGetDaysInMonth(MonthVar DateMonth, YearVar DateYear) byte { | |
| 687 | - | core.LazyRegister(&xDateGetDaysInMonth, "GLIB", "g_date_get_days_in_month", false) | |
| 688 | - | ||
| 689 | 609 | cret := xDateGetDaysInMonth(MonthVar, YearVar) | |
| 690 | 610 | return cret | |
| 691 | 611 | } | |
| @@ -700,8 +620,6 @@ var xDateGetMondayWeeksInYear func(DateYear) byte | |||
| 700 | 620 | // Mondays are in the year, i.e. there are 53 Mondays if | |
| 701 | 621 | // one of the extra days happens to be a Monday.) | |
| 702 | 622 | func DateGetMondayWeeksInYear(YearVar DateYear) byte { | |
| 703 | - | core.LazyRegister(&xDateGetMondayWeeksInYear, "GLIB", "g_date_get_monday_weeks_in_year", false) | |
| 704 | - | ||
| 705 | 623 | cret := xDateGetMondayWeeksInYear(YearVar) | |
| 706 | 624 | return cret | |
| 707 | 625 | } | |
| @@ -716,8 +634,6 @@ var xDateGetSundayWeeksInYear func(DateYear) byte | |||
| 716 | 634 | // Sundays are in the year, i.e. there are 53 Sundays if | |
| 717 | 635 | // one of the extra days happens to be a Sunday.) | |
| 718 | 636 | func DateGetSundayWeeksInYear(YearVar DateYear) byte { | |
| 719 | - | core.LazyRegister(&xDateGetSundayWeeksInYear, "GLIB", "g_date_get_sunday_weeks_in_year", false) | |
| 720 | - | ||
| 721 | 637 | cret := xDateGetSundayWeeksInYear(YearVar) | |
| 722 | 638 | return cret | |
| 723 | 639 | } | |
| @@ -734,8 +650,6 @@ var xDateGetWeeksInYear func(DateYear, DateWeekday) byte | |||
| 734 | 650 | // function effectively calculates how many @first_day_of_week days there are in | |
| 735 | 651 | // the year. | |
| 736 | 652 | func DateGetWeeksInYear(YearVar DateYear, FirstDayOfWeekVar DateWeekday) byte { | |
| 737 | - | core.LazyRegister(&xDateGetWeeksInYear, "GLIB", "g_date_get_weeks_in_year", false) | |
| 738 | - | ||
| 739 | 653 | cret := xDateGetWeeksInYear(YearVar, FirstDayOfWeekVar) | |
| 740 | 654 | return cret | |
| 741 | 655 | } | |
| @@ -749,8 +663,6 @@ var xDateIsLeapYear func(DateYear) bool | |||
| 749 | 663 | // is divisible by 100 it would be a leap year only if that year | |
| 750 | 664 | // is also divisible by 400. | |
| 751 | 665 | func DateIsLeapYear(YearVar DateYear) bool { | |
| 752 | - | core.LazyRegister(&xDateIsLeapYear, "GLIB", "g_date_is_leap_year", false) | |
| 753 | - | ||
| 754 | 666 | cret := xDateIsLeapYear(YearVar) | |
| 755 | 667 | return cret | |
| 756 | 668 | } | |
| @@ -771,8 +683,6 @@ var xDateStrftime func(string, uint, string, *Date) uint | |||
| 771 | 683 | // make the \%F provided by the C99 strftime() work on Windows | |
| 772 | 684 | // where the C library only complies to C89. | |
| 773 | 685 | func DateStrftime(SVar string, SlenVar uint, FormatVar string, DateVar *Date) uint { | |
| 774 | - | core.LazyRegister(&xDateStrftime, "GLIB", "g_date_strftime", false) | |
| 775 | - | ||
| 776 | 686 | cret := xDateStrftime(SVar, SlenVar, FormatVar, DateVar) | |
| 777 | 687 | return cret | |
| 778 | 688 | } | |
| @@ -782,8 +692,6 @@ var xDateValidDay func(DateDay) bool | |||
| 782 | 692 | // Returns %TRUE if the day of the month is valid (a day is valid if it's | |
| 783 | 693 | // between 1 and 31 inclusive). | |
| 784 | 694 | func DateValidDay(DayVar DateDay) bool { | |
| 785 | - | core.LazyRegister(&xDateValidDay, "GLIB", "g_date_valid_day", false) | |
| 786 | - | ||
| 787 | 695 | cret := xDateValidDay(DayVar) | |
| 788 | 696 | return cret | |
| 789 | 697 | } | |
| @@ -794,8 +702,6 @@ var xDateValidDmy func(DateDay, DateMonth, DateYear) bool | |||
| 794 | 702 | // in the range of days #GDate understands (Year 1 or later, no more than | |
| 795 | 703 | // a few thousand years in the future). | |
| 796 | 704 | func DateValidDmy(DayVar DateDay, MonthVar DateMonth, YearVar DateYear) bool { | |
| 797 | - | core.LazyRegister(&xDateValidDmy, "GLIB", "g_date_valid_dmy", false) | |
| 798 | - | ||
| 799 | 705 | cret := xDateValidDmy(DayVar, MonthVar, YearVar) | |
| 800 | 706 | return cret | |
| 801 | 707 | } | |
| @@ -805,8 +711,6 @@ var xDateValidJulian func(uint32) bool | |||
| 805 | 711 | // Returns %TRUE if the Julian day is valid. Anything greater than zero | |
| 806 | 712 | // is basically a valid Julian, though there is a 32-bit limit. | |
| 807 | 713 | func DateValidJulian(JulianDateVar uint32) bool { | |
| 808 | - | core.LazyRegister(&xDateValidJulian, "GLIB", "g_date_valid_julian", false) | |
| 809 | - | ||
| 810 | 714 | cret := xDateValidJulian(JulianDateVar) | |
| 811 | 715 | return cret | |
| 812 | 716 | } | |
| @@ -816,8 +720,6 @@ var xDateValidMonth func(DateMonth) bool | |||
| 816 | 720 | // Returns %TRUE if the month value is valid. The 12 #GDateMonth | |
| 817 | 721 | // enumeration values are the only valid months. | |
| 818 | 722 | func DateValidMonth(MonthVar DateMonth) bool { | |
| 819 | - | core.LazyRegister(&xDateValidMonth, "GLIB", "g_date_valid_month", false) | |
| 820 | - | ||
| 821 | 723 | cret := xDateValidMonth(MonthVar) | |
| 822 | 724 | return cret | |
| 823 | 725 | } | |
| @@ -827,8 +729,6 @@ var xDateValidWeekday func(DateWeekday) bool | |||
| 827 | 729 | // Returns %TRUE if the weekday is valid. The seven #GDateWeekday enumeration | |
| 828 | 730 | // values are the only valid weekdays. | |
| 829 | 731 | func DateValidWeekday(WeekdayVar DateWeekday) bool { | |
| 830 | - | core.LazyRegister(&xDateValidWeekday, "GLIB", "g_date_valid_weekday", false) | |
| 831 | - | ||
| 832 | 732 | cret := xDateValidWeekday(WeekdayVar) | |
| 833 | 733 | return cret | |
| 834 | 734 | } | |
| @@ -838,8 +738,6 @@ var xDateValidYear func(DateYear) bool | |||
| 838 | 738 | // Returns %TRUE if the year is valid. Any year greater than 0 is valid, | |
| 839 | 739 | // though there is a 16-bit limit to what #GDate will understand. | |
| 840 | 740 | func DateValidYear(YearVar DateYear) bool { | |
| 841 | - | core.LazyRegister(&xDateValidYear, "GLIB", "g_date_valid_year", false) | |
| 842 | - | ||
| 843 | 741 | cret := xDateValidYear(YearVar) | |
| 844 | 742 | return cret | |
| 845 | 743 | } | |
| @@ -847,4 +745,68 @@ func DateValidYear(YearVar DateYear) bool { | |||
| 847 | 745 | func init() { | |
| 848 | 746 | core.SetPackageName("GLIB", "glib-2.0") | |
| 849 | 747 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | |
| 748 | + | var libs []uintptr | |
| 749 | + | for _, libPath := range core.GetPaths("GLIB") { | |
| 750 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 751 | + | if err != nil { | |
| 752 | + | panic(err) | |
| 753 | + | } | |
| 754 | + | libs = append(libs, lib) | |
| 755 | + | } | |
| 756 | + | ||
| 757 | + | core.PuregoSafeRegister(&xDateGetDaysInMonth, libs, "g_date_get_days_in_month") | |
| 758 | + | core.PuregoSafeRegister(&xDateGetMondayWeeksInYear, libs, "g_date_get_monday_weeks_in_year") | |
| 759 | + | core.PuregoSafeRegister(&xDateGetSundayWeeksInYear, libs, "g_date_get_sunday_weeks_in_year") | |
| 760 | + | core.PuregoSafeRegister(&xDateGetWeeksInYear, libs, "g_date_get_weeks_in_year") | |
| 761 | + | core.PuregoSafeRegister(&xDateIsLeapYear, libs, "g_date_is_leap_year") | |
| 762 | + | core.PuregoSafeRegister(&xDateStrftime, libs, "g_date_strftime") | |
| 763 | + | core.PuregoSafeRegister(&xDateValidDay, libs, "g_date_valid_day") | |
| 764 | + | core.PuregoSafeRegister(&xDateValidDmy, libs, "g_date_valid_dmy") | |
| 765 | + | core.PuregoSafeRegister(&xDateValidJulian, libs, "g_date_valid_julian") | |
| 766 | + | core.PuregoSafeRegister(&xDateValidMonth, libs, "g_date_valid_month") | |
| 767 | + | core.PuregoSafeRegister(&xDateValidWeekday, libs, "g_date_valid_weekday") | |
| 768 | + | core.PuregoSafeRegister(&xDateValidYear, libs, "g_date_valid_year") | |
| 769 | + | ||
| 770 | + | core.PuregoSafeRegister(&xDateGLibType, libs, "g_date_get_type") | |
| 771 | + | ||
| 772 | + | core.PuregoSafeRegister(&xNewDate, libs, "g_date_new") | |
| 773 | + | core.PuregoSafeRegister(&xNewDateDmy, libs, "g_date_new_dmy") | |
| 774 | + | core.PuregoSafeRegister(&xNewDateJulian, libs, "g_date_new_julian") | |
| 775 | + | ||
| 776 | + | core.PuregoSafeRegister(&xDateAddDays, libs, "g_date_add_days") | |
| 777 | + | core.PuregoSafeRegister(&xDateAddMonths, libs, "g_date_add_months") | |
| 778 | + | core.PuregoSafeRegister(&xDateAddYears, libs, "g_date_add_years") | |
| 779 | + | core.PuregoSafeRegister(&xDateClamp, libs, "g_date_clamp") | |
| 780 | + | core.PuregoSafeRegister(&xDateClear, libs, "g_date_clear") | |
| 781 | + | core.PuregoSafeRegister(&xDateCompare, libs, "g_date_compare") | |
| 782 | + | core.PuregoSafeRegister(&xDateCopy, libs, "g_date_copy") | |
| 783 | + | core.PuregoSafeRegister(&xDateDaysBetween, libs, "g_date_days_between") | |
| 784 | + | core.PuregoSafeRegister(&xDateFree, libs, "g_date_free") | |
| 785 | + | core.PuregoSafeRegister(&xDateGetDay, libs, "g_date_get_day") | |
| 786 | + | core.PuregoSafeRegister(&xDateGetDayOfYear, libs, "g_date_get_day_of_year") | |
| 787 | + | core.PuregoSafeRegister(&xDateGetIso8601WeekOfYear, libs, "g_date_get_iso8601_week_of_year") | |
| 788 | + | core.PuregoSafeRegister(&xDateGetJulian, libs, "g_date_get_julian") | |
| 789 | + | core.PuregoSafeRegister(&xDateGetMondayWeekOfYear, libs, "g_date_get_monday_week_of_year") | |
| 790 | + | core.PuregoSafeRegister(&xDateGetMonth, libs, "g_date_get_month") | |
| 791 | + | core.PuregoSafeRegister(&xDateGetSundayWeekOfYear, libs, "g_date_get_sunday_week_of_year") | |
| 792 | + | core.PuregoSafeRegister(&xDateGetWeekOfYear, libs, "g_date_get_week_of_year") | |
| 793 | + | core.PuregoSafeRegister(&xDateGetWeekday, libs, "g_date_get_weekday") | |
| 794 | + | core.PuregoSafeRegister(&xDateGetYear, libs, "g_date_get_year") | |
| 795 | + | core.PuregoSafeRegister(&xDateIsFirstOfMonth, libs, "g_date_is_first_of_month") | |
| 796 | + | core.PuregoSafeRegister(&xDateIsLastOfMonth, libs, "g_date_is_last_of_month") | |
| 797 | + | core.PuregoSafeRegister(&xDateOrder, libs, "g_date_order") | |
| 798 | + | core.PuregoSafeRegister(&xDateSetDay, libs, "g_date_set_day") | |
| 799 | + | core.PuregoSafeRegister(&xDateSetDmy, libs, "g_date_set_dmy") | |
| 800 | + | core.PuregoSafeRegister(&xDateSetJulian, libs, "g_date_set_julian") | |
| 801 | + | core.PuregoSafeRegister(&xDateSetMonth, libs, "g_date_set_month") | |
| 802 | + | core.PuregoSafeRegister(&xDateSetParse, libs, "g_date_set_parse") | |
| 803 | + | core.PuregoSafeRegister(&xDateSetTime, libs, "g_date_set_time") | |
| 804 | + | core.PuregoSafeRegister(&xDateSetTimeT, libs, "g_date_set_time_t") | |
| 805 | + | core.PuregoSafeRegister(&xDateSetTimeVal, libs, "g_date_set_time_val") | |
| 806 | + | core.PuregoSafeRegister(&xDateSetYear, libs, "g_date_set_year") | |
| 807 | + | core.PuregoSafeRegister(&xDateSubtractDays, libs, "g_date_subtract_days") | |
| 808 | + | core.PuregoSafeRegister(&xDateSubtractMonths, libs, "g_date_subtract_months") | |
| 809 | + | core.PuregoSafeRegister(&xDateSubtractYears, libs, "g_date_subtract_years") | |
| 810 | + | core.PuregoSafeRegister(&xDateToStructTm, libs, "g_date_to_struct_tm") | |
| 811 | + | core.PuregoSafeRegister(&xDateValid, libs, "g_date_valid") | |
| 850 | 812 | } | |
| @@ -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 | ) | ||
| @@ -67,7 +68,6 @@ type Date struct { | |||||
| 67 | var xDateGLibType func() types.GType | 68 | var xDateGLibType func() types.GType | ||
| 68 | 69 | ||||
| 69 | func DateGLibType() types.GType { | 70 | func DateGLibType() types.GType { | ||
| 70 | - | core.LazyRegister(&xDateGLibType, "GLIB", "g_date_get_type", false) | |||
| 71 | return xDateGLibType() | 71 | return xDateGLibType() | ||
| 72 | } | 72 | } | ||
| 73 | 73 | ||||
| @@ -90,8 +90,6 @@ var xNewDate func() uintptr | |||||
| 90 | // be cleared (as if you'd called g_date_clear()) but invalid (it won't | 90 | // be cleared (as if you'd called g_date_clear()) but invalid (it won't | ||
| 91 | // represent an existing day). Free the return value with g_date_free(). | 91 | // represent an existing day). Free the return value with g_date_free(). | ||
| 92 | func NewDate() *Date { | 92 | func NewDate() *Date { | ||
| 93 | - | core.LazyRegister(&xNewDate, "GLIB", "g_date_new", false) | |||
| 94 | - | ||||
| 95 | cret := xNewDate() | 93 | cret := xNewDate() | ||
| 96 | if cret == 0 { | 94 | if cret == 0 { | ||
| 97 | return nil | 95 | return nil | ||
| @@ -107,8 +105,6 @@ var xNewDateDmy func(DateDay, DateMonth, DateYear) uintptr | |||||
| 107 | // if needed to validate it. The returned #GDate is guaranteed to be non-%NULL | 105 | // if needed to validate it. The returned #GDate is guaranteed to be non-%NULL | ||
| 108 | // and valid. | 106 | // and valid. | ||
| 109 | func NewDateDmy(DayVar DateDay, MonthVar DateMonth, YearVar DateYear) *Date { | 107 | func NewDateDmy(DayVar DateDay, MonthVar DateMonth, YearVar DateYear) *Date { | ||
| 110 | - | core.LazyRegister(&xNewDateDmy, "GLIB", "g_date_new_dmy", false) | |||
| 111 | - | ||||
| 112 | cret := xNewDateDmy(DayVar, MonthVar, YearVar) | 108 | cret := xNewDateDmy(DayVar, MonthVar, YearVar) | ||
| 113 | if cret == 0 { | 109 | if cret == 0 { | ||
| 114 | return nil | 110 | return nil | ||
| @@ -124,8 +120,6 @@ var xNewDateJulian func(uint32) uintptr | |||||
| 124 | // needed to validate it. The returned #GDate is guaranteed to be non-%NULL and | 120 | // needed to validate it. The returned #GDate is guaranteed to be non-%NULL and | ||
| 125 | // valid. | 121 | // valid. | ||
| 126 | func NewDateJulian(JulianDayVar uint32) *Date { | 122 | func NewDateJulian(JulianDayVar uint32) *Date { | ||
| 127 | - | core.LazyRegister(&xNewDateJulian, "GLIB", "g_date_new_julian", false) | |||
| 128 | - | ||||
| 129 | cret := xNewDateJulian(JulianDayVar) | 123 | cret := xNewDateJulian(JulianDayVar) | ||
| 130 | if cret == 0 { | 124 | if cret == 0 { | ||
| 131 | return nil | 125 | return nil | ||
| @@ -139,8 +133,6 @@ var xDateAddDays func(uintptr, uint) | |||||
| 139 | // To move forward by weeks, add weeks*7 days. | 133 | // To move forward by weeks, add weeks*7 days. | ||
| 140 | // The date must be valid. | 134 | // The date must be valid. | ||
| 141 | func (x *Date) AddDays(NDaysVar uint) { | 135 | func (x *Date) AddDays(NDaysVar uint) { | ||
| 142 | - | core.LazyRegister(&xDateAddDays, "GLIB", "g_date_add_days", false) | |||
| 143 | - | ||||
| 144 | xDateAddDays(x.GoPointer(), NDaysVar) | 136 | xDateAddDays(x.GoPointer(), NDaysVar) | ||
| 145 | } | 137 | } | ||
| 146 | 138 | ||||
| @@ -152,8 +144,6 @@ var xDateAddMonths func(uintptr, uint) | |||||
| 152 | // (because the destination month may not have | 144 | // (because the destination month may not have | ||
| 153 | // the current day in it). The date must be valid. | 145 | // the current day in it). The date must be valid. | ||
| 154 | func (x *Date) AddMonths(NMonthsVar uint) { | 146 | func (x *Date) AddMonths(NMonthsVar uint) { | ||
| 155 | - | core.LazyRegister(&xDateAddMonths, "GLIB", "g_date_add_months", false) | |||
| 156 | - | ||||
| 157 | xDateAddMonths(x.GoPointer(), NMonthsVar) | 147 | xDateAddMonths(x.GoPointer(), NMonthsVar) | ||
| 158 | } | 148 | } | ||
| 159 | 149 | ||||
| @@ -164,8 +154,6 @@ var xDateAddYears func(uintptr, uint) | |||||
| 164 | // year is not a leap year, the date will be changed | 154 | // year is not a leap year, the date will be changed | ||
| 165 | // to February 28. The date must be valid. | 155 | // to February 28. The date must be valid. | ||
| 166 | func (x *Date) AddYears(NYearsVar uint) { | 156 | func (x *Date) AddYears(NYearsVar uint) { | ||
| 167 | - | core.LazyRegister(&xDateAddYears, "GLIB", "g_date_add_years", false) | |||
| 168 | - | ||||
| 169 | xDateAddYears(x.GoPointer(), NYearsVar) | 157 | xDateAddYears(x.GoPointer(), NYearsVar) | ||
| 170 | } | 158 | } | ||
| 171 | 159 | ||||
| @@ -177,8 +165,6 @@ var xDateClamp func(uintptr, *Date, *Date) | |||||
| 177 | // Either of @min_date and @max_date may be %NULL. | 165 | // Either of @min_date and @max_date may be %NULL. | ||
| 178 | // All non-%NULL dates must be valid. | 166 | // All non-%NULL dates must be valid. | ||
| 179 | func (x *Date) Clamp(MinDateVar *Date, MaxDateVar *Date) { | 167 | func (x *Date) Clamp(MinDateVar *Date, MaxDateVar *Date) { | ||
| 180 | - | core.LazyRegister(&xDateClamp, "GLIB", "g_date_clamp", false) | |||
| 181 | - | ||||
| 182 | xDateClamp(x.GoPointer(), MinDateVar, MaxDateVar) | 168 | xDateClamp(x.GoPointer(), MinDateVar, MaxDateVar) | ||
| 183 | } | 169 | } | ||
| 184 | 170 | ||||
| @@ -189,8 +175,6 @@ var xDateClear func(uintptr, uint) | |||||
| 189 | // not contain garbage. Useful to init a date declared on the stack. | 175 | // not contain garbage. Useful to init a date declared on the stack. | ||
| 190 | // Validity can be tested with g_date_valid(). | 176 | // Validity can be tested with g_date_valid(). | ||
| 191 | func (x *Date) Clear(NDatesVar uint) { | 177 | func (x *Date) Clear(NDatesVar uint) { | ||
| 192 | - | core.LazyRegister(&xDateClear, "GLIB", "g_date_clear", false) | |||
| 193 | - | ||||
| 194 | xDateClear(x.GoPointer(), NDatesVar) | 178 | xDateClear(x.GoPointer(), NDatesVar) | ||
| 195 | } | 179 | } | ||
| 196 | 180 | ||||
| @@ -199,8 +183,6 @@ var xDateCompare func(uintptr, *Date) int | |||||
| 199 | // qsort()-style comparison function for dates. | 183 | // qsort()-style comparison function for dates. | ||
| 200 | // Both dates must be valid. | 184 | // Both dates must be valid. | ||
| 201 | func (x *Date) Compare(RhsVar *Date) int { | 185 | func (x *Date) Compare(RhsVar *Date) int { | ||
| 202 | - | core.LazyRegister(&xDateCompare, "GLIB", "g_date_compare", false) | |||
| 203 | - | ||||
| 204 | cret := xDateCompare(x.GoPointer(), RhsVar) | 186 | cret := xDateCompare(x.GoPointer(), RhsVar) | ||
| 205 | return cret | 187 | return cret | ||
| 206 | } | 188 | } | ||
| @@ -211,8 +193,6 @@ var xDateCopy func(uintptr) uintptr | |||||
| 211 | // (as determined by g_date_valid()), the invalid state will be copied | 193 | // (as determined by g_date_valid()), the invalid state will be copied | ||
| 212 | // as is into the new object. | 194 | // as is into the new object. | ||
| 213 | func (x *Date) Copy() *Date { | 195 | func (x *Date) Copy() *Date { | ||
| 214 | - | core.LazyRegister(&xDateCopy, "GLIB", "g_date_copy", false) | |||
| 215 | - | ||||
| 216 | cret := xDateCopy(x.GoPointer()) | 196 | cret := xDateCopy(x.GoPointer()) | ||
| 217 | if cret == 0 { | 197 | if cret == 0 { | ||
| 218 | return nil | 198 | return nil | ||
| @@ -226,8 +206,6 @@ var xDateDaysBetween func(uintptr, *Date) int | |||||
| 226 | // If @date2 is prior to @date1, the returned value is negative. | 206 | // If @date2 is prior to @date1, the returned value is negative. | ||
| 227 | // Both dates must be valid. | 207 | // Both dates must be valid. | ||
| 228 | func (x *Date) DaysBetween(Date2Var *Date) int { | 208 | func (x *Date) DaysBetween(Date2Var *Date) int { | ||
| 229 | - | core.LazyRegister(&xDateDaysBetween, "GLIB", "g_date_days_between", false) | |||
| 230 | - | ||||
| 231 | cret := xDateDaysBetween(x.GoPointer(), Date2Var) | 209 | cret := xDateDaysBetween(x.GoPointer(), Date2Var) | ||
| 232 | return cret | 210 | return cret | ||
| 233 | } | 211 | } | ||
| @@ -236,8 +214,6 @@ var xDateFree func(uintptr) | |||||
| 236 | 214 | ||||
| 237 | // Frees a #GDate returned from g_date_new(). | 215 | // Frees a #GDate returned from g_date_new(). | ||
| 238 | func (x *Date) Free() { | 216 | func (x *Date) Free() { | ||
| 239 | - | core.LazyRegister(&xDateFree, "GLIB", "g_date_free", false) | |||
| 240 | - | ||||
| 241 | xDateFree(x.GoPointer()) | 217 | xDateFree(x.GoPointer()) | ||
| 242 | } | 218 | } | ||
| 243 | 219 | ||||
| @@ -245,8 +221,6 @@ var xDateGetDay func(uintptr) DateDay | |||||
| 245 | 221 | ||||
| 246 | // Returns the day of the month. The date must be valid. | 222 | // Returns the day of the month. The date must be valid. | ||
| 247 | func (x *Date) GetDay() DateDay { | 223 | func (x *Date) GetDay() DateDay { | ||
| 248 | - | core.LazyRegister(&xDateGetDay, "GLIB", "g_date_get_day", false) | |||
| 249 | - | ||||
| 250 | cret := xDateGetDay(x.GoPointer()) | 224 | cret := xDateGetDay(x.GoPointer()) | ||
| 251 | return cret | 225 | return cret | ||
| 252 | } | 226 | } | ||
| @@ -256,8 +230,6 @@ var xDateGetDayOfYear func(uintptr) uint | |||||
| 256 | // Returns the day of the year, where Jan 1 is the first day of the | 230 | // Returns the day of the year, where Jan 1 is the first day of the | ||
| 257 | // year. The date must be valid. | 231 | // year. The date must be valid. | ||
| 258 | func (x *Date) GetDayOfYear() uint { | 232 | func (x *Date) GetDayOfYear() uint { | ||
| 259 | - | core.LazyRegister(&xDateGetDayOfYear, "GLIB", "g_date_get_day_of_year", false) | |||
| 260 | - | ||||
| 261 | cret := xDateGetDayOfYear(x.GoPointer()) | 233 | cret := xDateGetDayOfYear(x.GoPointer()) | ||
| 262 | return cret | 234 | return cret | ||
| 263 | } | 235 | } | ||
| @@ -267,8 +239,6 @@ var xDateGetIso8601WeekOfYear func(uintptr) uint | |||||
| 267 | // Returns the week of the year, where weeks are interpreted according | 239 | // Returns the week of the year, where weeks are interpreted according | ||
| 268 | // to ISO 8601. | 240 | // to ISO 8601. | ||
| 269 | func (x *Date) GetIso8601WeekOfYear() uint { | 241 | func (x *Date) GetIso8601WeekOfYear() uint { | ||
| 270 | - | core.LazyRegister(&xDateGetIso8601WeekOfYear, "GLIB", "g_date_get_iso8601_week_of_year", false) | |||
| 271 | - | ||||
| 272 | cret := xDateGetIso8601WeekOfYear(x.GoPointer()) | 242 | cret := xDateGetIso8601WeekOfYear(x.GoPointer()) | ||
| 273 | return cret | 243 | return cret | ||
| 274 | } | 244 | } | ||
| @@ -280,8 +250,6 @@ var xDateGetJulian func(uintptr) uint32 | |||||
| 280 | // January 1, Year 1 is Julian day 1; January 2, Year 1 is Julian day 2, | 250 | // January 1, Year 1 is Julian day 1; January 2, Year 1 is Julian day 2, | ||
| 281 | // etc. The date must be valid. | 251 | // etc. The date must be valid. | ||
| 282 | func (x *Date) GetJulian() uint32 { | 252 | func (x *Date) GetJulian() uint32 { | ||
| 283 | - | core.LazyRegister(&xDateGetJulian, "GLIB", "g_date_get_julian", false) | |||
| 284 | - | ||||
| 285 | cret := xDateGetJulian(x.GoPointer()) | 253 | cret := xDateGetJulian(x.GoPointer()) | ||
| 286 | return cret | 254 | return cret | ||
| 287 | } | 255 | } | ||
| @@ -292,8 +260,6 @@ var xDateGetMondayWeekOfYear func(uintptr) uint | |||||
| 292 | // Monday. If the date is before the first Monday of the year, return 0. | 260 | // Monday. If the date is before the first Monday of the year, return 0. | ||
| 293 | // The date must be valid. | 261 | // The date must be valid. | ||
| 294 | func (x *Date) GetMondayWeekOfYear() uint { | 262 | func (x *Date) GetMondayWeekOfYear() uint { | ||
| 295 | - | core.LazyRegister(&xDateGetMondayWeekOfYear, "GLIB", "g_date_get_monday_week_of_year", false) | |||
| 296 | - | ||||
| 297 | cret := xDateGetMondayWeekOfYear(x.GoPointer()) | 263 | cret := xDateGetMondayWeekOfYear(x.GoPointer()) | ||
| 298 | return cret | 264 | return cret | ||
| 299 | } | 265 | } | ||
| @@ -302,8 +268,6 @@ var xDateGetMonth func(uintptr) DateMonth | |||||
| 302 | 268 | ||||
| 303 | // Returns the month of the year. The date must be valid. | 269 | // Returns the month of the year. The date must be valid. | ||
| 304 | func (x *Date) GetMonth() DateMonth { | 270 | func (x *Date) GetMonth() DateMonth { | ||
| 305 | - | core.LazyRegister(&xDateGetMonth, "GLIB", "g_date_get_month", false) | |||
| 306 | - | ||||
| 307 | cret := xDateGetMonth(x.GoPointer()) | 271 | cret := xDateGetMonth(x.GoPointer()) | ||
| 308 | return cret | 272 | return cret | ||
| 309 | } | 273 | } | ||
| @@ -314,8 +278,6 @@ var xDateGetSundayWeekOfYear func(uintptr) uint | |||||
| 314 | // weeks are understood to begin on Sunday. The date must be valid. | 278 | // weeks are understood to begin on Sunday. The date must be valid. | ||
| 315 | // Can return 0 if the day is before the first Sunday of the year. | 279 | // Can return 0 if the day is before the first Sunday of the year. | ||
| 316 | func (x *Date) GetSundayWeekOfYear() uint { | 280 | func (x *Date) GetSundayWeekOfYear() uint { | ||
| 317 | - | core.LazyRegister(&xDateGetSundayWeekOfYear, "GLIB", "g_date_get_sunday_week_of_year", false) | |||
| 318 | - | ||||
| 319 | cret := xDateGetSundayWeekOfYear(x.GoPointer()) | 281 | cret := xDateGetSundayWeekOfYear(x.GoPointer()) | ||
| 320 | return cret | 282 | return cret | ||
| 321 | } | 283 | } | ||
| @@ -331,8 +293,6 @@ var xDateGetWeekOfYear func(uintptr, DateWeekday) uint | |||||
| 331 | // before the first Monday in January if @first_day_of_week is | 293 | // before the first Monday in January if @first_day_of_week is | ||
| 332 | // [enum@GLib.DateWeekday.MONDAY]) then zero will be returned. | 294 | // [enum@GLib.DateWeekday.MONDAY]) then zero will be returned. | ||
| 333 | func (x *Date) GetWeekOfYear(FirstDayOfWeekVar DateWeekday) uint { | 295 | func (x *Date) GetWeekOfYear(FirstDayOfWeekVar DateWeekday) uint { | ||
| 334 | - | core.LazyRegister(&xDateGetWeekOfYear, "GLIB", "g_date_get_week_of_year", false) | |||
| 335 | - | ||||
| 336 | cret := xDateGetWeekOfYear(x.GoPointer(), FirstDayOfWeekVar) | 296 | cret := xDateGetWeekOfYear(x.GoPointer(), FirstDayOfWeekVar) | ||
| 337 | return cret | 297 | return cret | ||
| 338 | } | 298 | } | ||
| @@ -341,8 +301,6 @@ var xDateGetWeekday func(uintptr) DateWeekday | |||||
| 341 | 301 | ||||
| 342 | // Returns the day of the week for a #GDate. The date must be valid. | 302 | // Returns the day of the week for a #GDate. The date must be valid. | ||
| 343 | func (x *Date) GetWeekday() DateWeekday { | 303 | func (x *Date) GetWeekday() DateWeekday { | ||
| 344 | - | core.LazyRegister(&xDateGetWeekday, "GLIB", "g_date_get_weekday", false) | |||
| 345 | - | ||||
| 346 | cret := xDateGetWeekday(x.GoPointer()) | 304 | cret := xDateGetWeekday(x.GoPointer()) | ||
| 347 | return cret | 305 | return cret | ||
| 348 | } | 306 | } | ||
| @@ -351,8 +309,6 @@ var xDateGetYear func(uintptr) DateYear | |||||
| 351 | 309 | ||||
| 352 | // Returns the year of a #GDate. The date must be valid. | 310 | // Returns the year of a #GDate. The date must be valid. | ||
| 353 | func (x *Date) GetYear() DateYear { | 311 | func (x *Date) GetYear() DateYear { | ||
| 354 | - | core.LazyRegister(&xDateGetYear, "GLIB", "g_date_get_year", false) | |||
| 355 | - | ||||
| 356 | cret := xDateGetYear(x.GoPointer()) | 312 | cret := xDateGetYear(x.GoPointer()) | ||
| 357 | return cret | 313 | return cret | ||
| 358 | } | 314 | } | ||
| @@ -362,8 +318,6 @@ var xDateIsFirstOfMonth func(uintptr) bool | |||||
| 362 | // Returns %TRUE if the date is on the first of a month. | 318 | // Returns %TRUE if the date is on the first of a month. | ||
| 363 | // The date must be valid. | 319 | // The date must be valid. | ||
| 364 | func (x *Date) IsFirstOfMonth() bool { | 320 | func (x *Date) IsFirstOfMonth() bool { | ||
| 365 | - | core.LazyRegister(&xDateIsFirstOfMonth, "GLIB", "g_date_is_first_of_month", false) | |||
| 366 | - | ||||
| 367 | cret := xDateIsFirstOfMonth(x.GoPointer()) | 321 | cret := xDateIsFirstOfMonth(x.GoPointer()) | ||
| 368 | return cret | 322 | return cret | ||
| 369 | } | 323 | } | ||
| @@ -373,8 +327,6 @@ var xDateIsLastOfMonth func(uintptr) bool | |||||
| 373 | // Returns %TRUE if the date is the last day of the month. | 327 | // Returns %TRUE if the date is the last day of the month. | ||
| 374 | // The date must be valid. | 328 | // The date must be valid. | ||
| 375 | func (x *Date) IsLastOfMonth() bool { | 329 | func (x *Date) IsLastOfMonth() bool { | ||
| 376 | - | core.LazyRegister(&xDateIsLastOfMonth, "GLIB", "g_date_is_last_of_month", false) | |||
| 377 | - | ||||
| 378 | cret := xDateIsLastOfMonth(x.GoPointer()) | 330 | cret := xDateIsLastOfMonth(x.GoPointer()) | ||
| 379 | return cret | 331 | return cret | ||
| 380 | } | 332 | } | ||
| @@ -384,8 +336,6 @@ var xDateOrder func(uintptr, *Date) | |||||
| 384 | // Checks if @date1 is less than or equal to @date2, | 336 | // Checks if @date1 is less than or equal to @date2, | ||
| 385 | // and swap the values if this is not the case. | 337 | // and swap the values if this is not the case. | ||
| 386 | func (x *Date) Order(Date2Var *Date) { | 338 | func (x *Date) Order(Date2Var *Date) { | ||
| 387 | - | core.LazyRegister(&xDateOrder, "GLIB", "g_date_order", false) | |||
| 388 | - | ||||
| 389 | xDateOrder(x.GoPointer(), Date2Var) | 339 | xDateOrder(x.GoPointer(), Date2Var) | ||
| 390 | } | 340 | } | ||
| 391 | 341 | ||||
| @@ -394,8 +344,6 @@ var xDateSetDay func(uintptr, DateDay) | |||||
| 394 | // Sets the day of the month for a #GDate. If the resulting | 344 | // Sets the day of the month for a #GDate. If the resulting | ||
| 395 | // day-month-year triplet is invalid, the date will be invalid. | 345 | // day-month-year triplet is invalid, the date will be invalid. | ||
| 396 | func (x *Date) SetDay(DayVar DateDay) { | 346 | func (x *Date) SetDay(DayVar DateDay) { | ||
| 397 | - | core.LazyRegister(&xDateSetDay, "GLIB", "g_date_set_day", false) | |||
| 398 | - | ||||
| 399 | xDateSetDay(x.GoPointer(), DayVar) | 347 | xDateSetDay(x.GoPointer(), DayVar) | ||
| 400 | } | 348 | } | ||
| 401 | 349 | ||||
| @@ -406,8 +354,6 @@ var xDateSetDmy func(uintptr, DateDay, DateMonth, DateYear) | |||||
| 406 | // sure it is, call g_date_valid_dmy() to check before you | 354 | // sure it is, call g_date_valid_dmy() to check before you | ||
| 407 | // set it. | 355 | // set it. | ||
| 408 | func (x *Date) SetDmy(DayVar DateDay, MonthVar DateMonth, YVar DateYear) { | 356 | func (x *Date) SetDmy(DayVar DateDay, MonthVar DateMonth, YVar DateYear) { | ||
| 409 | - | core.LazyRegister(&xDateSetDmy, "GLIB", "g_date_set_dmy", false) | |||
| 410 | - | ||||
| 411 | xDateSetDmy(x.GoPointer(), DayVar, MonthVar, YVar) | 357 | xDateSetDmy(x.GoPointer(), DayVar, MonthVar, YVar) | ||
| 412 | } | 358 | } | ||
| 413 | 359 | ||||
| @@ -415,8 +361,6 @@ var xDateSetJulian func(uintptr, uint32) | |||||
| 415 | 361 | ||||
| 416 | // Sets the value of a #GDate from a Julian day number. | 362 | // Sets the value of a #GDate from a Julian day number. | ||
| 417 | func (x *Date) SetJulian(JulianDateVar uint32) { | 363 | func (x *Date) SetJulian(JulianDateVar uint32) { | ||
| 418 | - | core.LazyRegister(&xDateSetJulian, "GLIB", "g_date_set_julian", false) | |||
| 419 | - | ||||
| 420 | xDateSetJulian(x.GoPointer(), JulianDateVar) | 364 | xDateSetJulian(x.GoPointer(), JulianDateVar) | ||
| 421 | } | 365 | } | ||
| 422 | 366 | ||||
| @@ -425,8 +369,6 @@ var xDateSetMonth func(uintptr, DateMonth) | |||||
| 425 | // Sets the month of the year for a #GDate. If the resulting | 369 | // Sets the month of the year for a #GDate. If the resulting | ||
| 426 | // day-month-year triplet is invalid, the date will be invalid. | 370 | // day-month-year triplet is invalid, the date will be invalid. | ||
| 427 | func (x *Date) SetMonth(MonthVar DateMonth) { | 371 | func (x *Date) SetMonth(MonthVar DateMonth) { | ||
| 428 | - | core.LazyRegister(&xDateSetMonth, "GLIB", "g_date_set_month", false) | |||
| 429 | - | ||||
| 430 | xDateSetMonth(x.GoPointer(), MonthVar) | 372 | xDateSetMonth(x.GoPointer(), MonthVar) | ||
| 431 | } | 373 | } | ||
| 432 | 374 | ||||
| @@ -444,8 +386,6 @@ var xDateSetParse func(uintptr, string) | |||||
| 444 | // means by a given string (and it does work pretty well in that | 386 | // means by a given string (and it does work pretty well in that | ||
| 445 | // capacity). | 387 | // capacity). | ||
| 446 | func (x *Date) SetParse(StrVar string) { | 388 | func (x *Date) SetParse(StrVar string) { | ||
| 447 | - | core.LazyRegister(&xDateSetParse, "GLIB", "g_date_set_parse", false) | |||
| 448 | - | ||||
| 449 | xDateSetParse(x.GoPointer(), StrVar) | 389 | xDateSetParse(x.GoPointer(), StrVar) | ||
| 450 | } | 390 | } | ||
| 451 | 391 | ||||
| @@ -454,8 +394,6 @@ var xDateSetTime func(uintptr, Time) | |||||
| 454 | // Sets the value of a date from a #GTime value. | 394 | // Sets the value of a date from a #GTime value. | ||
| 455 | // The time to date conversion is done using the user's current timezone. | 395 | // The time to date conversion is done using the user's current timezone. | ||
| 456 | func (x *Date) SetTime(TimeVar Time) { | 396 | func (x *Date) SetTime(TimeVar Time) { | ||
| 457 | - | core.LazyRegister(&xDateSetTime, "GLIB", "g_date_set_time", false) | |||
| 458 | - | ||||
| 459 | xDateSetTime(x.GoPointer(), TimeVar) | 397 | xDateSetTime(x.GoPointer(), TimeVar) | ||
| 460 | } | 398 | } | ||
| 461 | 399 | ||||
| @@ -475,8 +413,6 @@ var xDateSetTimeT func(uintptr, int) | |||||
| 475 | // | 413 | // | ||
| 476 | // ]| | 414 | // ]| | ||
| 477 | func (x *Date) SetTimeT(TimetVar int) { | 415 | func (x *Date) SetTimeT(TimetVar int) { | ||
| 478 | - | core.LazyRegister(&xDateSetTimeT, "GLIB", "g_date_set_time_t", false) | |||
| 479 | - | ||||
| 480 | xDateSetTimeT(x.GoPointer(), TimetVar) | 416 | xDateSetTimeT(x.GoPointer(), TimetVar) | ||
| 481 | } | 417 | } | ||
| 482 | 418 | ||||
| @@ -488,8 +424,6 @@ var xDateSetTimeVal func(uintptr, *TimeVal) | |||||
| 488 | // | 424 | // | ||
| 489 | // The time to date conversion is done using the user's current timezone. | 425 | // The time to date conversion is done using the user's current timezone. | ||
| 490 | func (x *Date) SetTimeVal(TimevalVar *TimeVal) { | 426 | func (x *Date) SetTimeVal(TimevalVar *TimeVal) { | ||
| 491 | - | core.LazyRegister(&xDateSetTimeVal, "GLIB", "g_date_set_time_val", false) | |||
| 492 | - | ||||
| 493 | xDateSetTimeVal(x.GoPointer(), TimevalVar) | 427 | xDateSetTimeVal(x.GoPointer(), TimevalVar) | ||
| 494 | } | 428 | } | ||
| 495 | 429 | ||||
| @@ -498,8 +432,6 @@ var xDateSetYear func(uintptr, DateYear) | |||||
| 498 | // Sets the year for a #GDate. If the resulting day-month-year | 432 | // Sets the year for a #GDate. If the resulting day-month-year | ||
| 499 | // triplet is invalid, the date will be invalid. | 433 | // triplet is invalid, the date will be invalid. | ||
| 500 | func (x *Date) SetYear(YearVar DateYear) { | 434 | func (x *Date) SetYear(YearVar DateYear) { | ||
| 501 | - | core.LazyRegister(&xDateSetYear, "GLIB", "g_date_set_year", false) | |||
| 502 | - | ||||
| 503 | xDateSetYear(x.GoPointer(), YearVar) | 435 | xDateSetYear(x.GoPointer(), YearVar) | ||
| 504 | } | 436 | } | ||
| 505 | 437 | ||||
| @@ -509,8 +441,6 @@ var xDateSubtractDays func(uintptr, uint) | |||||
| 509 | // To move by weeks, just move by weeks*7 days. | 441 | // To move by weeks, just move by weeks*7 days. | ||
| 510 | // The date must be valid. | 442 | // The date must be valid. | ||
| 511 | func (x *Date) SubtractDays(NDaysVar uint) { | 443 | func (x *Date) SubtractDays(NDaysVar uint) { | ||
| 512 | - | core.LazyRegister(&xDateSubtractDays, "GLIB", "g_date_subtract_days", false) | |||
| 513 | - | ||||
| 514 | xDateSubtractDays(x.GoPointer(), NDaysVar) | 444 | xDateSubtractDays(x.GoPointer(), NDaysVar) | ||
| 515 | } | 445 | } | ||
| 516 | 446 | ||||
| @@ -521,8 +451,6 @@ var xDateSubtractMonths func(uintptr, uint) | |||||
| 521 | // the destination month, the day of the month | 451 | // the destination month, the day of the month | ||
| 522 | // may change. The date must be valid. | 452 | // may change. The date must be valid. | ||
| 523 | func (x *Date) SubtractMonths(NMonthsVar uint) { | 453 | func (x *Date) SubtractMonths(NMonthsVar uint) { | ||
| 524 | - | core.LazyRegister(&xDateSubtractMonths, "GLIB", "g_date_subtract_months", false) | |||
| 525 | - | ||||
| 526 | xDateSubtractMonths(x.GoPointer(), NMonthsVar) | 454 | xDateSubtractMonths(x.GoPointer(), NMonthsVar) | ||
| 527 | } | 455 | } | ||
| 528 | 456 | ||||
| @@ -534,8 +462,6 @@ var xDateSubtractYears func(uintptr, uint) | |||||
| 534 | // then the day is changed to February 29. The date | 462 | // then the day is changed to February 29. The date | ||
| 535 | // must be valid. | 463 | // must be valid. | ||
| 536 | func (x *Date) SubtractYears(NYearsVar uint) { | 464 | func (x *Date) SubtractYears(NYearsVar uint) { | ||
| 537 | - | core.LazyRegister(&xDateSubtractYears, "GLIB", "g_date_subtract_years", false) | |||
| 538 | - | ||||
| 539 | xDateSubtractYears(x.GoPointer(), NYearsVar) | 465 | xDateSubtractYears(x.GoPointer(), NYearsVar) | ||
| 540 | } | 466 | } | ||
| 541 | 467 | ||||
| @@ -544,8 +470,6 @@ var xDateToStructTm func(uintptr, uintptr) | |||||
| 544 | // Fills in the date-related bits of a struct tm using the @date value. | 470 | // Fills in the date-related bits of a struct tm using the @date value. | ||
| 545 | // Initializes the non-date parts with something safe but meaningless. | 471 | // Initializes the non-date parts with something safe but meaningless. | ||
| 546 | func (x *Date) ToStructTm(TmVar uintptr) { | 472 | func (x *Date) ToStructTm(TmVar uintptr) { | ||
| 547 | - | core.LazyRegister(&xDateToStructTm, "GLIB", "g_date_to_struct_tm", false) | |||
| 548 | - | ||||
| 549 | xDateToStructTm(x.GoPointer(), TmVar) | 473 | xDateToStructTm(x.GoPointer(), TmVar) | ||
| 550 | } | 474 | } | ||
| 551 | 475 | ||||
| @@ -555,8 +479,6 @@ var xDateValid func(uintptr) bool | |||||
| 555 | // contain garbage; it should have been initialized with g_date_clear() | 479 | // contain garbage; it should have been initialized with g_date_clear() | ||
| 556 | // if it wasn't allocated by one of the g_date_new() variants. | 480 | // if it wasn't allocated by one of the g_date_new() variants. | ||
| 557 | func (x *Date) Valid() bool { | 481 | func (x *Date) Valid() bool { | ||
| 558 | - | core.LazyRegister(&xDateValid, "GLIB", "g_date_valid", false) | |||
| 559 | - | ||||
| 560 | cret := xDateValid(x.GoPointer()) | 482 | cret := xDateValid(x.GoPointer()) | ||
| 561 | return cret | 483 | return cret | ||
| 562 | } | 484 | } | ||
| @@ -684,8 +606,6 @@ var xDateGetDaysInMonth func(DateMonth, DateYear) byte | |||||
| 684 | // Returns the number of days in a month, taking leap | 606 | // Returns the number of days in a month, taking leap | ||
| 685 | // years into account. | 607 | // years into account. | ||
| 686 | func DateGetDaysInMonth(MonthVar DateMonth, YearVar DateYear) byte { | 608 | func DateGetDaysInMonth(MonthVar DateMonth, YearVar DateYear) byte { | ||
| 687 | - | core.LazyRegister(&xDateGetDaysInMonth, "GLIB", "g_date_get_days_in_month", false) | |||
| 688 | - | ||||
| 689 | cret := xDateGetDaysInMonth(MonthVar, YearVar) | 609 | cret := xDateGetDaysInMonth(MonthVar, YearVar) | ||
| 690 | return cret | 610 | return cret | ||
| 691 | } | 611 | } | ||
| @@ -700,8 +620,6 @@ var xDateGetMondayWeeksInYear func(DateYear) byte | |||||
| 700 | // Mondays are in the year, i.e. there are 53 Mondays if | 620 | // Mondays are in the year, i.e. there are 53 Mondays if | ||
| 701 | // one of the extra days happens to be a Monday.) | 621 | // one of the extra days happens to be a Monday.) | ||
| 702 | func DateGetMondayWeeksInYear(YearVar DateYear) byte { | 622 | func DateGetMondayWeeksInYear(YearVar DateYear) byte { | ||
| 703 | - | core.LazyRegister(&xDateGetMondayWeeksInYear, "GLIB", "g_date_get_monday_weeks_in_year", false) | |||
| 704 | - | ||||
| 705 | cret := xDateGetMondayWeeksInYear(YearVar) | 623 | cret := xDateGetMondayWeeksInYear(YearVar) | ||
| 706 | return cret | 624 | return cret | ||
| 707 | } | 625 | } | ||
| @@ -716,8 +634,6 @@ var xDateGetSundayWeeksInYear func(DateYear) byte | |||||
| 716 | // Sundays are in the year, i.e. there are 53 Sundays if | 634 | // Sundays are in the year, i.e. there are 53 Sundays if | ||
| 717 | // one of the extra days happens to be a Sunday.) | 635 | // one of the extra days happens to be a Sunday.) | ||
| 718 | func DateGetSundayWeeksInYear(YearVar DateYear) byte { | 636 | func DateGetSundayWeeksInYear(YearVar DateYear) byte { | ||
| 719 | - | core.LazyRegister(&xDateGetSundayWeeksInYear, "GLIB", "g_date_get_sunday_weeks_in_year", false) | |||
| 720 | - | ||||
| 721 | cret := xDateGetSundayWeeksInYear(YearVar) | 637 | cret := xDateGetSundayWeeksInYear(YearVar) | ||
| 722 | return cret | 638 | return cret | ||
| 723 | } | 639 | } | ||
| @@ -734,8 +650,6 @@ var xDateGetWeeksInYear func(DateYear, DateWeekday) byte | |||||
| 734 | // function effectively calculates how many @first_day_of_week days there are in | 650 | // function effectively calculates how many @first_day_of_week days there are in | ||
| 735 | // the year. | 651 | // the year. | ||
| 736 | func DateGetWeeksInYear(YearVar DateYear, FirstDayOfWeekVar DateWeekday) byte { | 652 | func DateGetWeeksInYear(YearVar DateYear, FirstDayOfWeekVar DateWeekday) byte { | ||
| 737 | - | core.LazyRegister(&xDateGetWeeksInYear, "GLIB", "g_date_get_weeks_in_year", false) | |||
| 738 | - | ||||
| 739 | cret := xDateGetWeeksInYear(YearVar, FirstDayOfWeekVar) | 653 | cret := xDateGetWeeksInYear(YearVar, FirstDayOfWeekVar) | ||
| 740 | return cret | 654 | return cret | ||
| 741 | } | 655 | } | ||
| @@ -749,8 +663,6 @@ var xDateIsLeapYear func(DateYear) bool | |||||
| 749 | // is divisible by 100 it would be a leap year only if that year | 663 | // is divisible by 100 it would be a leap year only if that year | ||
| 750 | // is also divisible by 400. | 664 | // is also divisible by 400. | ||
| 751 | func DateIsLeapYear(YearVar DateYear) bool { | 665 | func DateIsLeapYear(YearVar DateYear) bool { | ||
| 752 | - | core.LazyRegister(&xDateIsLeapYear, "GLIB", "g_date_is_leap_year", false) | |||
| 753 | - | ||||
| 754 | cret := xDateIsLeapYear(YearVar) | 666 | cret := xDateIsLeapYear(YearVar) | ||
| 755 | return cret | 667 | return cret | ||
| 756 | } | 668 | } | ||
| @@ -771,8 +683,6 @@ var xDateStrftime func(string, uint, string, *Date) uint | |||||
| 771 | // make the \%F provided by the C99 strftime() work on Windows | 683 | // make the \%F provided by the C99 strftime() work on Windows | ||
| 772 | // where the C library only complies to C89. | 684 | // where the C library only complies to C89. | ||
| 773 | func DateStrftime(SVar string, SlenVar uint, FormatVar string, DateVar *Date) uint { | 685 | func DateStrftime(SVar string, SlenVar uint, FormatVar string, DateVar *Date) uint { | ||
| 774 | - | core.LazyRegister(&xDateStrftime, "GLIB", "g_date_strftime", false) | |||
| 775 | - | ||||
| 776 | cret := xDateStrftime(SVar, SlenVar, FormatVar, DateVar) | 686 | cret := xDateStrftime(SVar, SlenVar, FormatVar, DateVar) | ||
| 777 | return cret | 687 | return cret | ||
| 778 | } | 688 | } | ||
| @@ -782,8 +692,6 @@ var xDateValidDay func(DateDay) bool | |||||
| 782 | // Returns %TRUE if the day of the month is valid (a day is valid if it's | 692 | // Returns %TRUE if the day of the month is valid (a day is valid if it's | ||
| 783 | // between 1 and 31 inclusive). | 693 | // between 1 and 31 inclusive). | ||
| 784 | func DateValidDay(DayVar DateDay) bool { | 694 | func DateValidDay(DayVar DateDay) bool { | ||
| 785 | - | core.LazyRegister(&xDateValidDay, "GLIB", "g_date_valid_day", false) | |||
| 786 | - | ||||
| 787 | cret := xDateValidDay(DayVar) | 695 | cret := xDateValidDay(DayVar) | ||
| 788 | return cret | 696 | return cret | ||
| 789 | } | 697 | } | ||
| @@ -794,8 +702,6 @@ var xDateValidDmy func(DateDay, DateMonth, DateYear) bool | |||||
| 794 | // in the range of days #GDate understands (Year 1 or later, no more than | 702 | // in the range of days #GDate understands (Year 1 or later, no more than | ||
| 795 | // a few thousand years in the future). | 703 | // a few thousand years in the future). | ||
| 796 | func DateValidDmy(DayVar DateDay, MonthVar DateMonth, YearVar DateYear) bool { | 704 | func DateValidDmy(DayVar DateDay, MonthVar DateMonth, YearVar DateYear) bool { | ||
| 797 | - | core.LazyRegister(&xDateValidDmy, "GLIB", "g_date_valid_dmy", false) | |||
| 798 | - | ||||
| 799 | cret := xDateValidDmy(DayVar, MonthVar, YearVar) | 705 | cret := xDateValidDmy(DayVar, MonthVar, YearVar) | ||
| 800 | return cret | 706 | return cret | ||
| 801 | } | 707 | } | ||
| @@ -805,8 +711,6 @@ var xDateValidJulian func(uint32) bool | |||||
| 805 | // Returns %TRUE if the Julian day is valid. Anything greater than zero | 711 | // Returns %TRUE if the Julian day is valid. Anything greater than zero | ||
| 806 | // is basically a valid Julian, though there is a 32-bit limit. | 712 | // is basically a valid Julian, though there is a 32-bit limit. | ||
| 807 | func DateValidJulian(JulianDateVar uint32) bool { | 713 | func DateValidJulian(JulianDateVar uint32) bool { | ||
| 808 | - | core.LazyRegister(&xDateValidJulian, "GLIB", "g_date_valid_julian", false) | |||
| 809 | - | ||||
| 810 | cret := xDateValidJulian(JulianDateVar) | 714 | cret := xDateValidJulian(JulianDateVar) | ||
| 811 | return cret | 715 | return cret | ||
| 812 | } | 716 | } | ||
| @@ -816,8 +720,6 @@ var xDateValidMonth func(DateMonth) bool | |||||
| 816 | // Returns %TRUE if the month value is valid. The 12 #GDateMonth | 720 | // Returns %TRUE if the month value is valid. The 12 #GDateMonth | ||
| 817 | // enumeration values are the only valid months. | 721 | // enumeration values are the only valid months. | ||
| 818 | func DateValidMonth(MonthVar DateMonth) bool { | 722 | func DateValidMonth(MonthVar DateMonth) bool { | ||
| 819 | - | core.LazyRegister(&xDateValidMonth, "GLIB", "g_date_valid_month", false) | |||
| 820 | - | ||||
| 821 | cret := xDateValidMonth(MonthVar) | 723 | cret := xDateValidMonth(MonthVar) | ||
| 822 | return cret | 724 | return cret | ||
| 823 | } | 725 | } | ||
| @@ -827,8 +729,6 @@ var xDateValidWeekday func(DateWeekday) bool | |||||
| 827 | // Returns %TRUE if the weekday is valid. The seven #GDateWeekday enumeration | 729 | // Returns %TRUE if the weekday is valid. The seven #GDateWeekday enumeration | ||
| 828 | // values are the only valid weekdays. | 730 | // values are the only valid weekdays. | ||
| 829 | func DateValidWeekday(WeekdayVar DateWeekday) bool { | 731 | func DateValidWeekday(WeekdayVar DateWeekday) bool { | ||
| 830 | - | core.LazyRegister(&xDateValidWeekday, "GLIB", "g_date_valid_weekday", false) | |||
| 831 | - | ||||
| 832 | cret := xDateValidWeekday(WeekdayVar) | 732 | cret := xDateValidWeekday(WeekdayVar) | ||
| 833 | return cret | 733 | return cret | ||
| 834 | } | 734 | } | ||
| @@ -838,8 +738,6 @@ var xDateValidYear func(DateYear) bool | |||||
| 838 | // Returns %TRUE if the year is valid. Any year greater than 0 is valid, | 738 | // Returns %TRUE if the year is valid. Any year greater than 0 is valid, | ||
| 839 | // though there is a 16-bit limit to what #GDate will understand. | 739 | // though there is a 16-bit limit to what #GDate will understand. | ||
| 840 | func DateValidYear(YearVar DateYear) bool { | 740 | func DateValidYear(YearVar DateYear) bool { | ||
| 841 | - | core.LazyRegister(&xDateValidYear, "GLIB", "g_date_valid_year", false) | |||
| 842 | - | ||||
| 843 | cret := xDateValidYear(YearVar) | 741 | cret := xDateValidYear(YearVar) | ||
| 844 | return cret | 742 | return cret | ||
| 845 | } | 743 | } | ||
| @@ -847,4 +745,68 @@ func DateValidYear(YearVar DateYear) bool { | |||||
| 847 | func init() { | 745 | func init() { | ||
| 848 | core.SetPackageName("GLIB", "glib-2.0") | 746 | core.SetPackageName("GLIB", "glib-2.0") | ||
| 849 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | 747 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | ||
| 748 | + | var libs []uintptr | |||
| 749 | + | for _, libPath := range core.GetPaths("GLIB") { | |||
| 750 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 751 | + | if err != nil { | |||
| 752 | + | panic(err) | |||
| 753 | + | } | |||
| 754 | + | libs = append(libs, lib) | |||
| 755 | + | } | |||
| 756 | + | ||||
| 757 | + | core.PuregoSafeRegister(&xDateGetDaysInMonth, libs, "g_date_get_days_in_month") | |||
| 758 | + | core.PuregoSafeRegister(&xDateGetMondayWeeksInYear, libs, "g_date_get_monday_weeks_in_year") | |||
| 759 | + | core.PuregoSafeRegister(&xDateGetSundayWeeksInYear, libs, "g_date_get_sunday_weeks_in_year") | |||
| 760 | + | core.PuregoSafeRegister(&xDateGetWeeksInYear, libs, "g_date_get_weeks_in_year") | |||
| 761 | + | core.PuregoSafeRegister(&xDateIsLeapYear, libs, "g_date_is_leap_year") | |||
| 762 | + | core.PuregoSafeRegister(&xDateStrftime, libs, "g_date_strftime") | |||
| 763 | + | core.PuregoSafeRegister(&xDateValidDay, libs, "g_date_valid_day") | |||
| 764 | + | core.PuregoSafeRegister(&xDateValidDmy, libs, "g_date_valid_dmy") | |||
| 765 | + | core.PuregoSafeRegister(&xDateValidJulian, libs, "g_date_valid_julian") | |||
| 766 | + | core.PuregoSafeRegister(&xDateValidMonth, libs, "g_date_valid_month") | |||
| 767 | + | core.PuregoSafeRegister(&xDateValidWeekday, libs, "g_date_valid_weekday") | |||
| 768 | + | core.PuregoSafeRegister(&xDateValidYear, libs, "g_date_valid_year") | |||
| 769 | + | ||||
| 770 | + | core.PuregoSafeRegister(&xDateGLibType, libs, "g_date_get_type") | |||
| 771 | + | ||||
| 772 | + | core.PuregoSafeRegister(&xNewDate, libs, "g_date_new") | |||
| 773 | + | core.PuregoSafeRegister(&xNewDateDmy, libs, "g_date_new_dmy") | |||
| 774 | + | core.PuregoSafeRegister(&xNewDateJulian, libs, "g_date_new_julian") | |||
| 775 | + | ||||
| 776 | + | core.PuregoSafeRegister(&xDateAddDays, libs, "g_date_add_days") | |||
| 777 | + | core.PuregoSafeRegister(&xDateAddMonths, libs, "g_date_add_months") | |||
| 778 | + | core.PuregoSafeRegister(&xDateAddYears, libs, "g_date_add_years") | |||
| 779 | + | core.PuregoSafeRegister(&xDateClamp, libs, "g_date_clamp") | |||
| 780 | + | core.PuregoSafeRegister(&xDateClear, libs, "g_date_clear") | |||
| 781 | + | core.PuregoSafeRegister(&xDateCompare, libs, "g_date_compare") | |||
| 782 | + | core.PuregoSafeRegister(&xDateCopy, libs, "g_date_copy") | |||
| 783 | + | core.PuregoSafeRegister(&xDateDaysBetween, libs, "g_date_days_between") | |||
| 784 | + | core.PuregoSafeRegister(&xDateFree, libs, "g_date_free") | |||
| 785 | + | core.PuregoSafeRegister(&xDateGetDay, libs, "g_date_get_day") | |||
| 786 | + | core.PuregoSafeRegister(&xDateGetDayOfYear, libs, "g_date_get_day_of_year") | |||
| 787 | + | core.PuregoSafeRegister(&xDateGetIso8601WeekOfYear, libs, "g_date_get_iso8601_week_of_year") | |||
| 788 | + | core.PuregoSafeRegister(&xDateGetJulian, libs, "g_date_get_julian") | |||
| 789 | + | core.PuregoSafeRegister(&xDateGetMondayWeekOfYear, libs, "g_date_get_monday_week_of_year") | |||
| 790 | + | core.PuregoSafeRegister(&xDateGetMonth, libs, "g_date_get_month") | |||
| 791 | + | core.PuregoSafeRegister(&xDateGetSundayWeekOfYear, libs, "g_date_get_sunday_week_of_year") | |||
| 792 | + | core.PuregoSafeRegister(&xDateGetWeekOfYear, libs, "g_date_get_week_of_year") | |||
| 793 | + | core.PuregoSafeRegister(&xDateGetWeekday, libs, "g_date_get_weekday") | |||
| 794 | + | core.PuregoSafeRegister(&xDateGetYear, libs, "g_date_get_year") | |||
| 795 | + | core.PuregoSafeRegister(&xDateIsFirstOfMonth, libs, "g_date_is_first_of_month") | |||
| 796 | + | core.PuregoSafeRegister(&xDateIsLastOfMonth, libs, "g_date_is_last_of_month") | |||
| 797 | + | core.PuregoSafeRegister(&xDateOrder, libs, "g_date_order") | |||
| 798 | + | core.PuregoSafeRegister(&xDateSetDay, libs, "g_date_set_day") | |||
| 799 | + | core.PuregoSafeRegister(&xDateSetDmy, libs, "g_date_set_dmy") | |||
| 800 | + | core.PuregoSafeRegister(&xDateSetJulian, libs, "g_date_set_julian") | |||
| 801 | + | core.PuregoSafeRegister(&xDateSetMonth, libs, "g_date_set_month") | |||
| 802 | + | core.PuregoSafeRegister(&xDateSetParse, libs, "g_date_set_parse") | |||
| 803 | + | core.PuregoSafeRegister(&xDateSetTime, libs, "g_date_set_time") | |||
| 804 | + | core.PuregoSafeRegister(&xDateSetTimeT, libs, "g_date_set_time_t") | |||
| 805 | + | core.PuregoSafeRegister(&xDateSetTimeVal, libs, "g_date_set_time_val") | |||
| 806 | + | core.PuregoSafeRegister(&xDateSetYear, libs, "g_date_set_year") | |||
| 807 | + | core.PuregoSafeRegister(&xDateSubtractDays, libs, "g_date_subtract_days") | |||
| 808 | + | core.PuregoSafeRegister(&xDateSubtractMonths, libs, "g_date_subtract_months") | |||
| 809 | + | core.PuregoSafeRegister(&xDateSubtractYears, libs, "g_date_subtract_years") | |||
| 810 | + | core.PuregoSafeRegister(&xDateToStructTm, libs, "g_date_to_struct_tm") | |||
| 811 | + | core.PuregoSafeRegister(&xDateValid, libs, "g_date_valid") | |||
| 850 | } | 812 | } | ||