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
| @@ -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" | |
| 10 | 11 | "github.com/bnema/puregotk/v4/gobject/types" | |
| @@ -51,7 +52,6 @@ type WindowTitle struct { | |||
| 51 | 52 | var xWindowTitleGLibType func() types.GType | |
| 52 | 53 | ||
| 53 | 54 | func WindowTitleGLibType() types.GType { | |
| 54 | - | core.LazyRegister(&xWindowTitleGLibType, "ADW", "adw_window_title_get_type", false) | |
| 55 | 55 | return xWindowTitleGLibType() | |
| 56 | 56 | } | |
| 57 | 57 | ||
| @@ -65,7 +65,6 @@ var xNewWindowTitle func(string, string) uintptr | |||
| 65 | 65 | ||
| 66 | 66 | // Creates a new `AdwWindowTitle`. | |
| 67 | 67 | func NewWindowTitle(TitleVar string, SubtitleVar string) *WindowTitle { | |
| 68 | - | core.LazyRegister(&xNewWindowTitle, "ADW", "adw_window_title_new", false) | |
| 69 | 68 | var cls *WindowTitle | |
| 70 | 69 | ||
| 71 | 70 | cret := xNewWindowTitle(TitleVar, SubtitleVar) | |
| @@ -83,8 +82,6 @@ var xWindowTitleGetSubtitle func(uintptr) string | |||
| 83 | 82 | ||
| 84 | 83 | // Gets the subtitle of @self. | |
| 85 | 84 | func (x *WindowTitle) GetSubtitle() string { | |
| 86 | - | core.LazyRegister(&xWindowTitleGetSubtitle, "ADW", "adw_window_title_get_subtitle", false) | |
| 87 | - | ||
| 88 | 85 | cret := xWindowTitleGetSubtitle(x.GoPointer()) | |
| 89 | 86 | return cret | |
| 90 | 87 | } | |
| @@ -93,8 +90,6 @@ var xWindowTitleGetTitle func(uintptr) string | |||
| 93 | 90 | ||
| 94 | 91 | // Gets the title of @self. | |
| 95 | 92 | func (x *WindowTitle) GetTitle() string { | |
| 96 | - | core.LazyRegister(&xWindowTitleGetTitle, "ADW", "adw_window_title_get_title", false) | |
| 97 | - | ||
| 98 | 93 | cret := xWindowTitleGetTitle(x.GoPointer()) | |
| 99 | 94 | return cret | |
| 100 | 95 | } | |
| @@ -105,8 +100,6 @@ var xWindowTitleSetSubtitle func(uintptr, string) | |||
| 105 | 100 | // | |
| 106 | 101 | // The subtitle should give the user additional details. | |
| 107 | 102 | func (x *WindowTitle) SetSubtitle(SubtitleVar string) { | |
| 108 | - | core.LazyRegister(&xWindowTitleSetSubtitle, "ADW", "adw_window_title_set_subtitle", false) | |
| 109 | - | ||
| 110 | 103 | xWindowTitleSetSubtitle(x.GoPointer(), SubtitleVar) | |
| 111 | 104 | } | |
| 112 | 105 | ||
| @@ -117,8 +110,6 @@ var xWindowTitleSetTitle func(uintptr, string) | |||
| 117 | 110 | // The title typically identifies the current view or content item, and | |
| 118 | 111 | // generally does not use the application name. | |
| 119 | 112 | func (x *WindowTitle) SetTitle(TitleVar string) { | |
| 120 | - | core.LazyRegister(&xWindowTitleSetTitle, "ADW", "adw_window_title_set_title", false) | |
| 121 | - | ||
| 122 | 113 | xWindowTitleSetTitle(x.GoPointer(), TitleVar) | |
| 123 | 114 | } | |
| 124 | 115 | ||
| @@ -440,4 +431,21 @@ func (x *WindowTitle) GetBuildableId() string { | |||
| 440 | 431 | func init() { | |
| 441 | 432 | core.SetPackageName("ADW", "libadwaita-1") | |
| 442 | 433 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | |
| 434 | + | var libs []uintptr | |
| 435 | + | for _, libPath := range core.GetPaths("ADW") { | |
| 436 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 437 | + | if err != nil { | |
| 438 | + | panic(err) | |
| 439 | + | } | |
| 440 | + | libs = append(libs, lib) | |
| 441 | + | } | |
| 442 | + | ||
| 443 | + | core.PuregoSafeRegister(&xWindowTitleGLibType, libs, "adw_window_title_get_type") | |
| 444 | + | ||
| 445 | + | core.PuregoSafeRegister(&xNewWindowTitle, libs, "adw_window_title_new") | |
| 446 | + | ||
| 447 | + | core.PuregoSafeRegister(&xWindowTitleGetSubtitle, libs, "adw_window_title_get_subtitle") | |
| 448 | + | core.PuregoSafeRegister(&xWindowTitleGetTitle, libs, "adw_window_title_get_title") | |
| 449 | + | core.PuregoSafeRegister(&xWindowTitleSetSubtitle, libs, "adw_window_title_set_subtitle") | |
| 450 | + | core.PuregoSafeRegister(&xWindowTitleSetTitle, libs, "adw_window_title_set_title") | |
| 443 | 451 | } | |
| @@ -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" | 10 | "github.com/bnema/puregotk/v4/gobject" | ||
| 10 | "github.com/bnema/puregotk/v4/gobject/types" | 11 | "github.com/bnema/puregotk/v4/gobject/types" | ||
| @@ -51,7 +52,6 @@ type WindowTitle struct { | |||||
| 51 | var xWindowTitleGLibType func() types.GType | 52 | var xWindowTitleGLibType func() types.GType | ||
| 52 | 53 | ||||
| 53 | func WindowTitleGLibType() types.GType { | 54 | func WindowTitleGLibType() types.GType { | ||
| 54 | - | core.LazyRegister(&xWindowTitleGLibType, "ADW", "adw_window_title_get_type", false) | |||
| 55 | return xWindowTitleGLibType() | 55 | return xWindowTitleGLibType() | ||
| 56 | } | 56 | } | ||
| 57 | 57 | ||||
| @@ -65,7 +65,6 @@ var xNewWindowTitle func(string, string) uintptr | |||||
| 65 | 65 | ||||
| 66 | // Creates a new `AdwWindowTitle`. | 66 | // Creates a new `AdwWindowTitle`. | ||
| 67 | func NewWindowTitle(TitleVar string, SubtitleVar string) *WindowTitle { | 67 | func NewWindowTitle(TitleVar string, SubtitleVar string) *WindowTitle { | ||
| 68 | - | core.LazyRegister(&xNewWindowTitle, "ADW", "adw_window_title_new", false) | |||
| 69 | var cls *WindowTitle | 68 | var cls *WindowTitle | ||
| 70 | 69 | ||||
| 71 | cret := xNewWindowTitle(TitleVar, SubtitleVar) | 70 | cret := xNewWindowTitle(TitleVar, SubtitleVar) | ||
| @@ -83,8 +82,6 @@ var xWindowTitleGetSubtitle func(uintptr) string | |||||
| 83 | 82 | ||||
| 84 | // Gets the subtitle of @self. | 83 | // Gets the subtitle of @self. | ||
| 85 | func (x *WindowTitle) GetSubtitle() string { | 84 | func (x *WindowTitle) GetSubtitle() string { | ||
| 86 | - | core.LazyRegister(&xWindowTitleGetSubtitle, "ADW", "adw_window_title_get_subtitle", false) | |||
| 87 | - | ||||
| 88 | cret := xWindowTitleGetSubtitle(x.GoPointer()) | 85 | cret := xWindowTitleGetSubtitle(x.GoPointer()) | ||
| 89 | return cret | 86 | return cret | ||
| 90 | } | 87 | } | ||
| @@ -93,8 +90,6 @@ var xWindowTitleGetTitle func(uintptr) string | |||||
| 93 | 90 | ||||
| 94 | // Gets the title of @self. | 91 | // Gets the title of @self. | ||
| 95 | func (x *WindowTitle) GetTitle() string { | 92 | func (x *WindowTitle) GetTitle() string { | ||
| 96 | - | core.LazyRegister(&xWindowTitleGetTitle, "ADW", "adw_window_title_get_title", false) | |||
| 97 | - | ||||
| 98 | cret := xWindowTitleGetTitle(x.GoPointer()) | 93 | cret := xWindowTitleGetTitle(x.GoPointer()) | ||
| 99 | return cret | 94 | return cret | ||
| 100 | } | 95 | } | ||
| @@ -105,8 +100,6 @@ var xWindowTitleSetSubtitle func(uintptr, string) | |||||
| 105 | // | 100 | // | ||
| 106 | // The subtitle should give the user additional details. | 101 | // The subtitle should give the user additional details. | ||
| 107 | func (x *WindowTitle) SetSubtitle(SubtitleVar string) { | 102 | func (x *WindowTitle) SetSubtitle(SubtitleVar string) { | ||
| 108 | - | core.LazyRegister(&xWindowTitleSetSubtitle, "ADW", "adw_window_title_set_subtitle", false) | |||
| 109 | - | ||||
| 110 | xWindowTitleSetSubtitle(x.GoPointer(), SubtitleVar) | 103 | xWindowTitleSetSubtitle(x.GoPointer(), SubtitleVar) | ||
| 111 | } | 104 | } | ||
| 112 | 105 | ||||
| @@ -117,8 +110,6 @@ var xWindowTitleSetTitle func(uintptr, string) | |||||
| 117 | // The title typically identifies the current view or content item, and | 110 | // The title typically identifies the current view or content item, and | ||
| 118 | // generally does not use the application name. | 111 | // generally does not use the application name. | ||
| 119 | func (x *WindowTitle) SetTitle(TitleVar string) { | 112 | func (x *WindowTitle) SetTitle(TitleVar string) { | ||
| 120 | - | core.LazyRegister(&xWindowTitleSetTitle, "ADW", "adw_window_title_set_title", false) | |||
| 121 | - | ||||
| 122 | xWindowTitleSetTitle(x.GoPointer(), TitleVar) | 113 | xWindowTitleSetTitle(x.GoPointer(), TitleVar) | ||
| 123 | } | 114 | } | ||
| 124 | 115 | ||||
| @@ -440,4 +431,21 @@ func (x *WindowTitle) GetBuildableId() string { | |||||
| 440 | func init() { | 431 | func init() { | ||
| 441 | core.SetPackageName("ADW", "libadwaita-1") | 432 | core.SetPackageName("ADW", "libadwaita-1") | ||
| 442 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | 433 | core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0", "libadwaita-1.0.dylib"}) | ||
| 434 | + | var libs []uintptr | |||
| 435 | + | for _, libPath := range core.GetPaths("ADW") { | |||
| 436 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 437 | + | if err != nil { | |||
| 438 | + | panic(err) | |||
| 439 | + | } | |||
| 440 | + | libs = append(libs, lib) | |||
| 441 | + | } | |||
| 442 | + | ||||
| 443 | + | core.PuregoSafeRegister(&xWindowTitleGLibType, libs, "adw_window_title_get_type") | |||
| 444 | + | ||||
| 445 | + | core.PuregoSafeRegister(&xNewWindowTitle, libs, "adw_window_title_new") | |||
| 446 | + | ||||
| 447 | + | core.PuregoSafeRegister(&xWindowTitleGetSubtitle, libs, "adw_window_title_get_subtitle") | |||
| 448 | + | core.PuregoSafeRegister(&xWindowTitleGetTitle, libs, "adw_window_title_get_title") | |||
| 449 | + | core.PuregoSafeRegister(&xWindowTitleSetSubtitle, libs, "adw_window_title_set_subtitle") | |||
| 450 | + | core.PuregoSafeRegister(&xWindowTitleSetTitle, libs, "adw_window_title_set_title") | |||
| 443 | } | 451 | } | ||