diff --git a/net-im/dissent/Makefile b/net-im/dissent/Makefile index 239698935254..35771cdbdc03 100644 --- a/net-im/dissent/Makefile +++ b/net-im/dissent/Makefile @@ -1,79 +1,79 @@ PORTNAME= dissent DISTVERSIONPREFIX= v DISTVERSION= 0.0.30 CATEGORIES= net-im MAINTAINER= ports@FreeBSD.org COMMENT= Tiny native Discord app WWW= https://github.com/diamondburned/dissent LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE.md LIB_DEPENDS= libgraphene-1.0.so:graphics/graphene \ libspelling-1.so:x11-toolkits/libspelling USES= gnome go:1.22,modules pkgconfig USE_GITHUB= yes USE_GNOME= cairo gdkpixbuf2 gtk40 gtksourceview5 libadwaita GH_ACCOUNT= diamondburned GH_TUPLE= KarpelesLab:weak:v0.1.1:karpeleslab_weak/vendor/github.com/KarpelesLab/weak \ alecthomas:chroma:v0.10.0:alecthomas_chroma/vendor/github.com/alecthomas/chroma \ alessio:shellescape:v1.4.2:alessio_shellescape/vendor/github.com/alessio/shellescape \ danieljoos:wincred:v1.2.1:danieljoos_wincred/vendor/github.com/danieljoos/wincred \ diamondburned:adaptive:fa139be203a8:diamondburned_adaptive/vendor/github.com/diamondburned/adaptive \ diamondburned:arikawa:v3.4.0:diamondburned_arikawa_v3/vendor/github.com/diamondburned/arikawa/v3 \ diamondburned:chatkit:5788b19145bc:diamondburned_chatkit/vendor/github.com/diamondburned/chatkit \ diamondburned:ctxt:2db38a5d3c12:diamondburned_ctxt/vendor/libdb.so/ctxt \ diamondburned:go-emoji:39776eee41ac:diamondburned_go_emoji/vendor/libdb.so/go-emoji \ diamondburned:gotk4-adwaita:824c3ce8a5f4:diamondburned_gotk4_adwaita_pkg/vendor/github.com/diamondburned/gotk4-adwaita \ - diamondburned:gotk4-sourceview:98263515a466:diamondburned_gotk4_sourceview/vendor/libdb.so/gotk4-sourceview/pkg \ - diamondburned:gotk4-spelling:ee26db878626:diamondburned_gotk4_spelling/vendor/libdb.so/gotk4-spelling/pkg \ + diamondburned:gotk4-sourceview:98263515a466:diamondburned_gotk4_sourceview/vendor/libdb.so/gotk4-sourceview \ + diamondburned:gotk4-spelling:ee26db878626:diamondburned_gotk4_spelling/vendor/libdb.so/gotk4-spelling \ diamondburned:gotk4:v0.3.1:diamondburned_gotk4_pkg/vendor/github.com/diamondburned/gotk4 \ diamondburned:gotkit:aa2fb5bc486d:diamondburned_gotkit/vendor/github.com/diamondburned/gotkit \ diamondburned:ningen:f1a24c0da3d8:diamondburned_ningen_v3/vendor/github.com/diamondburned/ningen/v3 \ dlclark:regexp2:v1.11.0:dlclark_regexp2/vendor/github.com/dlclark/regexp2 \ dustin:go-humanize:v1.0.1:dustin_go_humanize/vendor/github.com/dustin/go-humanize \ enescakir:emoji:v1.0.0:enescakir_emoji/vendor/github.com/enescakir/emoji \ go4org:go4:214862532bf5:go4org_go4/vendor/go4.org \ go4org:unsafe-assume-no-moving-gc:b99613f794b6:go4org_unsafe_assume_no_moving_gc/vendor/go4.org/unsafe/assume-no-moving-gc \ godbus:dbus:v5.1.0:godbus_dbus_v5/vendor/github.com/godbus/dbus/v5 \ gofrs:flock:v0.12.1:gofrs_flock/vendor/github.com/gofrs/flock \ golang:crypto:v0.25.0:golang_crypto/vendor/golang.org/x/crypto \ golang:sync:v0.7.0:golang_sync/vendor/golang.org/x/sync \ golang:sys:v0.22.0:golang_sys/vendor/golang.org/x/sys \ golang:text:v0.16.0:golang_text/vendor/golang.org/x/text \ golang:time:v0.6.0:golang_time/vendor/golang.org/x/time \ gorilla:schema:v1.4.1:gorilla_schema/vendor/github.com/gorilla/schema \ gorilla:websocket:v1.5.3:gorilla_websocket/vendor/github.com/gorilla/websocket \ ianlancetaylor:cgosymbolizer:581a3f7c677f:ianlancetaylor_cgosymbolizer/vendor/github.com/ianlancetaylor/cgosymbolizer \ leonelquinteros:gotext:v1.6.0:leonelquinteros_gotext/vendor/github.com/leonelquinteros/gotext \ lmittmann:tint:v1.0.4:lmittmann_tint/vendor/github.com/lmittmann/tint \ mattn:go-isatty:v0.0.20:mattn_go_isatty/vendor/github.com/mattn/go-isatty \ pkg:errors:v0.9.1:pkg_errors/vendor/github.com/pkg/errors \ puzpuzpuz:xsync:v3.1.0:puzpuzpuz_xsync_v3/vendor/github.com/puzpuzpuz/xsync/v3 \ sahilm:fuzzy:v0.1.1:sahilm_fuzzy/vendor/github.com/sahilm/fuzzy \ twmb:murmur3:v1.1.8:twmb_murmur3/vendor/github.com/twmb/murmur3 \ yalue:merged_fs:v1.3.0:yalue_merged_fs/vendor/github.com/yalue/merged_fs \ yuin:goldmark:v1.7.1:yuin_goldmark/vendor/github.com/yuin/goldmark \ zalando:go-keyring:v0.2.4:zalando_go_keyring/vendor/github.com/zalando/go-keyring CGO_LDFLAGS+= -Wl,--as-needed # gtk4 deps PLIST_FILES= bin/${PORTNAME} \ share/applications/so.libdb.dissent.desktop \ share/dbus-1/services/so.libdb.dissent.service \ share/icons/hicolor/scalable/apps/so.libdb.dissent.svg \ share/metainfo/so.libdb.dissent.metainfo.xml post-patch: @${REINPLACE_CMD} 's,/usr/bin,${PREFIX}/bin,' ${WRKSRC}/nix/*.service post-install: # Install extras similar to Nix flake .for f in nix/*.desktop nix/*.service *.metainfo.xml \ internal/icons/hicolor/scalable/apps/so.libdb.dissent.svg ${MKDIR} ${STAGEDIR}${PREFIX}/${PLIST_FILES:M*.${f:E}:H} ${INSTALL_DATA} ${WRKSRC}/${f} \ ${STAGEDIR}${PREFIX}/${PLIST_FILES:M*.${f:E}} .endfor .include diff --git a/net-im/dissent/files/patch-gtksourceview-5.4 b/net-im/dissent/files/patch-gtksourceview-5.4 index 915c229df499..c7874c74bcf9 100644 --- a/net-im/dissent/files/patch-gtksourceview-5.4 +++ b/net-im/dissent/files/patch-gtksourceview-5.4 @@ -1,393 +1,393 @@ Drop after x11-toolkits/gtksourceview5 >= 5.6 update -vendor/libdb.so/gotk4-sourceview/pkg/pkg/gtksource/v5/gtksourcebuffer.go:500:10: could not determine kind of name for C.gtk_source_buffer_get_loading -vendor/libdb.so/gotk4-sourceview/pkg/pkg/gtksource/v5/gtksourcecompletioncontext.go:301:10: could not determine kind of name for C.gtk_source_completion_context_get_proposals_for_provider -vendor/libdb.so/gotk4-sourceview/pkg/pkg/gtksource/v5/gtksourcecompletioncontext.go:376:10: could not determine kind of name for C.gtk_source_completion_context_list_providers -vendor/libdb.so/gotk4-sourceview/pkg/pkg/gtksource/v5/gtksourcecompletionproposal.go:88:10: could not determine kind of name for C.gtk_source_completion_proposal_get_typed_text -vendor/libdb.so/gotk4-sourceview/pkg/pkg/gtksource/v5/gtksourcegutterlines.go:341:10: could not determine kind of name for C.gtk_source_gutter_lines_has_any_class -vendor/libdb.so/gotk4-sourceview/pkg/pkg/gtksource/v5/gtksourcesearchsettings.go:192:10: could not determine kind of name for C.gtk_source_search_settings_get_visible_only -vendor/libdb.so/gotk4-sourceview/pkg/pkg/gtksource/v5/gtksourcesearchsettings.go:340:2: could not determine kind of name for C.gtk_source_search_settings_set_visible_only -vendor/libdb.so/gotk4-sourceview/pkg/pkg/gtksource/v5/gtksourcesnippet.go:138:10: could not determine kind of name for C.gtk_source_snippet_new_parsed -vendor/libdb.so/gotk4-sourceview/pkg/pkg/gtksource/v5/gtksourcesnippetmanager.go:178:10: could not determine kind of name for C.gtk_source_snippet_manager_list_all +vendor/libdb.so/gotk4-sourceview/pkg/gtksource/v5/gtksourcebuffer.go:500:10: could not determine kind of name for C.gtk_source_buffer_get_loading +vendor/libdb.so/gotk4-sourceview/pkg/gtksource/v5/gtksourcecompletioncontext.go:301:10: could not determine kind of name for C.gtk_source_completion_context_get_proposals_for_provider +vendor/libdb.so/gotk4-sourceview/pkg/gtksource/v5/gtksourcecompletioncontext.go:376:10: could not determine kind of name for C.gtk_source_completion_context_list_providers +vendor/libdb.so/gotk4-sourceview/pkg/gtksource/v5/gtksourcecompletionproposal.go:88:10: could not determine kind of name for C.gtk_source_completion_proposal_get_typed_text +vendor/libdb.so/gotk4-sourceview/pkg/gtksource/v5/gtksourcegutterlines.go:341:10: could not determine kind of name for C.gtk_source_gutter_lines_has_any_class +vendor/libdb.so/gotk4-sourceview/pkg/gtksource/v5/gtksourcesearchsettings.go:192:10: could not determine kind of name for C.gtk_source_search_settings_get_visible_only +vendor/libdb.so/gotk4-sourceview/pkg/gtksource/v5/gtksourcesearchsettings.go:340:2: could not determine kind of name for C.gtk_source_search_settings_set_visible_only +vendor/libdb.so/gotk4-sourceview/pkg/gtksource/v5/gtksourcesnippet.go:138:10: could not determine kind of name for C.gtk_source_snippet_new_parsed +vendor/libdb.so/gotk4-sourceview/pkg/gtksource/v5/gtksourcesnippetmanager.go:178:10: could not determine kind of name for C.gtk_source_snippet_manager_list_all ---- vendor/libdb.so/gotk4-sourceview/pkg/pkg/gtksource/v5/gtksourcebuffer.go.orig 2024-08-18 07:05:27 UTC -+++ vendor/libdb.so/gotk4-sourceview/pkg/pkg/gtksource/v5/gtksourcebuffer.go +--- vendor/libdb.so/gotk4-sourceview/pkg/gtksource/v5/gtksourcebuffer.go.orig 2024-08-18 07:05:27 UTC ++++ vendor/libdb.so/gotk4-sourceview/pkg/gtksource/v5/gtksourcebuffer.go @@ -491,24 +491,6 @@ func (buffer *Buffer) Language() *Language { return _language } -func (buffer *Buffer) Loading() bool { - var _arg0 *C.GtkSourceBuffer // out - var _cret C.gboolean // in - - _arg0 = (*C.GtkSourceBuffer)(unsafe.Pointer(coreglib.InternObject(buffer).Native())) - - _cret = C.gtk_source_buffer_get_loading(_arg0) - runtime.KeepAlive(buffer) - - var _ok bool // out - - if _cret != 0 { - _ok = true - } - - return _ok -} - // SourceMarksAtIter returns the list of marks of the given category at iter. // // If category is NULL it returns all marks at iter. ---- vendor/libdb.so/gotk4-sourceview/pkg/pkg/gtksource/v5/gtksourcecompletioncontext.go.orig 2024-08-18 07:05:27 UTC -+++ vendor/libdb.so/gotk4-sourceview/pkg/pkg/gtksource/v5/gtksourcecompletioncontext.go +--- vendor/libdb.so/gotk4-sourceview/pkg/gtksource/v5/gtksourcecompletioncontext.go.orig 2024-08-18 07:05:27 UTC ++++ vendor/libdb.so/gotk4-sourceview/pkg/gtksource/v5/gtksourcecompletioncontext.go @@ -278,44 +278,6 @@ func (self *CompletionContext) Language() *Language { return _language } -// ProposalsForProvider gets the Model associated with the provider. -// -// You can connect to SourceCompletionContext::model-changed to receive -// notifications about when the model has been replaced by a new model. -// -// The function takes the following parameters: -// -// - provider: SourceCompletionProvider. -// -// The function returns the following values: -// -// - listModel (optional) or NULL. -func (self *CompletionContext) ProposalsForProvider(provider CompletionProviderer) *gio.ListModel { - var _arg0 *C.GtkSourceCompletionContext // out - var _arg1 *C.GtkSourceCompletionProvider // out - var _cret *C.GListModel // in - - _arg0 = (*C.GtkSourceCompletionContext)(unsafe.Pointer(coreglib.InternObject(self).Native())) - _arg1 = (*C.GtkSourceCompletionProvider)(unsafe.Pointer(coreglib.InternObject(provider).Native())) - - _cret = C.gtk_source_completion_context_get_proposals_for_provider(_arg0, _arg1) - runtime.KeepAlive(self) - runtime.KeepAlive(provider) - - var _listModel *gio.ListModel // out - - if _cret != nil { - { - obj := coreglib.Take(unsafe.Pointer(_cret)) - _listModel = &gio.ListModel{ - Object: obj, - } - } - } - - return _listModel -} - // View gets the text view for the context. // // The function returns the following values: @@ -360,32 +322,6 @@ func (self *CompletionContext) Word() string { defer C.free(unsafe.Pointer(_cret)) return _utf8 -} - -// ListProviders gets the providers that are associated with the context. -// -// The function returns the following values: -// -// - listModel of SourceCompletionProvider. -func (self *CompletionContext) ListProviders() *gio.ListModel { - var _arg0 *C.GtkSourceCompletionContext // out - var _cret *C.GListModel // in - - _arg0 = (*C.GtkSourceCompletionContext)(unsafe.Pointer(coreglib.InternObject(self).Native())) - - _cret = C.gtk_source_completion_context_list_providers(_arg0) - runtime.KeepAlive(self) - - var _listModel *gio.ListModel // out - - { - obj := coreglib.AssumeOwnership(unsafe.Pointer(_cret)) - _listModel = &gio.ListModel{ - Object: obj, - } - } - - return _listModel } // SetProposalsForProvider: this function allows providers to update their ---- vendor/libdb.so/gotk4-sourceview/pkg/pkg/gtksource/v5/gtksourcecompletionproposal.go.orig 2024-08-18 07:05:27 UTC -+++ vendor/libdb.so/gotk4-sourceview/pkg/pkg/gtksource/v5/gtksourcecompletionproposal.go +--- vendor/libdb.so/gotk4-sourceview/pkg/gtksource/v5/gtksourcecompletionproposal.go.orig 2024-08-18 07:05:27 UTC ++++ vendor/libdb.so/gotk4-sourceview/pkg/gtksource/v5/gtksourcecompletionproposal.go @@ -3,7 +3,6 @@ import ( package gtksource import ( - "runtime" "unsafe" coreglib "github.com/diamondburned/gotk4/pkg/core/glib" @@ -58,8 +57,6 @@ type CompletionProposaller interface { TypedText() string } -var _ CompletionProposaller = (*CompletionProposal)(nil) - func wrapCompletionProposal(obj *coreglib.Object) *CompletionProposal { return &CompletionProposal{ Object: obj, @@ -68,65 +65,6 @@ func marshalCompletionProposal(p uintptr) (interface{} func marshalCompletionProposal(p uintptr) (interface{}, error) { return wrapCompletionProposal(coreglib.ValueFromNative(unsafe.Pointer(p)).Object()), nil -} - -// TypedText gets the typed-text for the proposal, if supported by the -// implementation. -// -// Implementing this virtual-function is optional, but can be useful to allow -// external tooling to compare results. -// -// The function returns the following values: -// -// - utf8 (optional): newly allocated string, or NULL. -func (proposal *CompletionProposal) TypedText() string { - var _arg0 *C.GtkSourceCompletionProposal // out - var _cret *C.char // in - - _arg0 = (*C.GtkSourceCompletionProposal)(unsafe.Pointer(coreglib.InternObject(proposal).Native())) - - _cret = C.gtk_source_completion_proposal_get_typed_text(_arg0) - runtime.KeepAlive(proposal) - - var _utf8 string // out - - if _cret != nil { - _utf8 = C.GoString((*C.gchar)(unsafe.Pointer(_cret))) - defer C.free(unsafe.Pointer(_cret)) - } - - return _utf8 -} - -// typedText gets the typed-text for the proposal, if supported by the -// implementation. -// -// Implementing this virtual-function is optional, but can be useful to allow -// external tooling to compare results. -// -// The function returns the following values: -// -// - utf8 (optional): newly allocated string, or NULL. -func (proposal *CompletionProposal) typedText() string { - gclass := (*C.GtkSourceCompletionProposalInterface)(coreglib.PeekParentClass(proposal)) - fnarg := gclass.get_typed_text - - var _arg0 *C.GtkSourceCompletionProposal // out - var _cret *C.char // in - - _arg0 = (*C.GtkSourceCompletionProposal)(unsafe.Pointer(coreglib.InternObject(proposal).Native())) - - _cret = C._gotk4_gtksource5_CompletionProposal_virtual_get_typed_text(unsafe.Pointer(fnarg), _arg0) - runtime.KeepAlive(proposal) - - var _utf8 string // out - - if _cret != nil { - _utf8 = C.GoString((*C.gchar)(unsafe.Pointer(_cret))) - defer C.free(unsafe.Pointer(_cret)) - } - - return _utf8 } // CompletionProposalInterface: instance of this type is always passed by ---- vendor/libdb.so/gotk4-sourceview/pkg/pkg/gtksource/v5/gtksourcegutterlines.go.orig 2024-08-18 07:05:27 UTC -+++ vendor/libdb.so/gotk4-sourceview/pkg/pkg/gtksource/v5/gtksourcegutterlines.go +--- vendor/libdb.so/gotk4-sourceview/pkg/gtksource/v5/gtksourcegutterlines.go.orig 2024-08-18 07:05:27 UTC ++++ vendor/libdb.so/gotk4-sourceview/pkg/gtksource/v5/gtksourcegutterlines.go @@ -319,38 +319,6 @@ func (lines *GutterLines) View() *gtk.TextView { return _textView } -// HasAnyClass checks to see if the line has any GQuark classes set. This can be -// used to help renderer implementations avoid work if nothing has been set on -// the class. -// -// The function takes the following parameters: -// -// - line contained within lines. -// -// The function returns the following values: -// -// - ok: TRUE if any quark was set for the line. -func (lines *GutterLines) HasAnyClass(line uint) bool { - var _arg0 *C.GtkSourceGutterLines // out - var _arg1 C.guint // out - var _cret C.gboolean // in - - _arg0 = (*C.GtkSourceGutterLines)(unsafe.Pointer(coreglib.InternObject(lines).Native())) - _arg1 = C.guint(line) - - _cret = C.gtk_source_gutter_lines_has_any_class(_arg0, _arg1) - runtime.KeepAlive(lines) - runtime.KeepAlive(line) - - var _ok bool // out - - if _cret != 0 { - _ok = true - } - - return _ok -} - // HasClass checks to see if gutterlines.AddClass was called with the name for // line. // ---- vendor/libdb.so/gotk4-sourceview/pkg/pkg/gtksource/v5/gtksourcesearchsettings.go.orig 2024-08-18 07:05:27 UTC -+++ vendor/libdb.so/gotk4-sourceview/pkg/pkg/gtksource/v5/gtksourcesearchsettings.go +--- vendor/libdb.so/gotk4-sourceview/pkg/gtksource/v5/gtksourcesearchsettings.go.orig 2024-08-18 07:05:27 UTC ++++ vendor/libdb.so/gotk4-sourceview/pkg/gtksource/v5/gtksourcesearchsettings.go @@ -182,27 +182,6 @@ func (settings *SearchSettings) SearchText() string { // The function returns the following values: // -// - ok: whether to exclude invisible text from the search. -func (settings *SearchSettings) VisibleOnly() bool { - var _arg0 *C.GtkSourceSearchSettings // out - var _cret C.gboolean // in - - _arg0 = (*C.GtkSourceSearchSettings)(unsafe.Pointer(coreglib.InternObject(settings).Native())) - - _cret = C.gtk_source_search_settings_get_visible_only(_arg0) - runtime.KeepAlive(settings) - - var _ok bool // out - - if _cret != 0 { - _ok = true - } - - return _ok -} - -// The function returns the following values: -// // - ok: whether to wrap around the search. func (settings *SearchSettings) WrapAround() bool { var _arg0 *C.GtkSourceSearchSettings // out @@ -317,29 +296,6 @@ func (settings *SearchSettings) SetSearchText(searchTe C.gtk_source_search_settings_set_search_text(_arg0, _arg1) runtime.KeepAlive(settings) runtime.KeepAlive(searchText) -} - -// SetVisibleOnly enables or disables whether to exclude invisible text from the -// search. -// -// If enabled, only visible text will be searched. A search match may have -// invisible text interspersed. -// -// The function takes the following parameters: -// -// - visibleOnly: setting. -func (settings *SearchSettings) SetVisibleOnly(visibleOnly bool) { - var _arg0 *C.GtkSourceSearchSettings // out - var _arg1 C.gboolean // out - - _arg0 = (*C.GtkSourceSearchSettings)(unsafe.Pointer(coreglib.InternObject(settings).Native())) - if visibleOnly { - _arg1 = C.TRUE - } - - C.gtk_source_search_settings_set_visible_only(_arg0, _arg1) - runtime.KeepAlive(settings) - runtime.KeepAlive(visibleOnly) } // SetWrapAround enables or disables the wrap around search. ---- vendor/libdb.so/gotk4-sourceview/pkg/pkg/gtksource/v5/gtksourcesnippet.go.orig 2024-08-18 07:05:27 UTC -+++ vendor/libdb.so/gotk4-sourceview/pkg/pkg/gtksource/v5/gtksourcesnippet.go +--- vendor/libdb.so/gotk4-sourceview/pkg/gtksource/v5/gtksourcesnippet.go.orig 2024-08-18 07:05:27 UTC ++++ vendor/libdb.so/gotk4-sourceview/pkg/gtksource/v5/gtksourcesnippet.go @@ -6,7 +6,6 @@ import ( "runtime" "unsafe" - "github.com/diamondburned/gotk4/pkg/core/gerror" "github.com/diamondburned/gotk4/pkg/core/gextras" coreglib "github.com/diamondburned/gotk4/pkg/core/glib" ) @@ -114,39 +113,6 @@ func NewSnippet(trigger, languageId string) *Snippet { _snippet = wrapSnippet(coreglib.AssumeOwnership(unsafe.Pointer(_cret))) return _snippet -} - -// NewSnippetParsed parses the snippet formatted text into a series of chunks -// and adds them to a new SourceSnippet. -// -// The function takes the following parameters: -// -// - text: formatted snippet text to parse. -// -// The function returns the following values: -// -// - snippet: newly parsed SourceSnippet, or NULL upon failure and error is -// set. -func NewSnippetParsed(text string) (*Snippet, error) { - var _arg1 *C.char // out - var _cret *C.GtkSourceSnippet // in - var _cerr *C.GError // in - - _arg1 = (*C.char)(unsafe.Pointer(C.CString(text))) - defer C.free(unsafe.Pointer(_arg1)) - - _cret = C.gtk_source_snippet_new_parsed(_arg1, &_cerr) - runtime.KeepAlive(text) - - var _snippet *Snippet // out - var _goerr error // out - - _snippet = wrapSnippet(coreglib.AssumeOwnership(unsafe.Pointer(_cret))) - if _cerr != nil { - _goerr = gerror.Take(unsafe.Pointer(_cerr)) - } - - return _snippet, _goerr } // AddChunk appends chunk to the snippet. ---- vendor/libdb.so/gotk4-sourceview/pkg/pkg/gtksource/v5/gtksourcesnippetmanager.go.orig 2024-08-18 07:05:27 UTC -+++ vendor/libdb.so/gotk4-sourceview/pkg/pkg/gtksource/v5/gtksourcesnippetmanager.go +--- vendor/libdb.so/gotk4-sourceview/pkg/gtksource/v5/gtksourcesnippetmanager.go.orig 2024-08-18 07:05:27 UTC ++++ vendor/libdb.so/gotk4-sourceview/pkg/gtksource/v5/gtksourcesnippetmanager.go @@ -161,35 +161,6 @@ func (self *SnippetManager) Snippet(group, languageId, return _snippet } -// ListAll gets a gio.ListModel of all snippets. -// -// This can be used to get an unfiltered list of all of the snippets known to -// the snippet manager. -// -// The function returns the following values: -// -// - listModel: gio.ListModel of gtksource.Snippet. -func (self *SnippetManager) ListAll() *gio.ListModel { - var _arg0 *C.GtkSourceSnippetManager // out - var _cret *C.GListModel // in - - _arg0 = (*C.GtkSourceSnippetManager)(unsafe.Pointer(coreglib.InternObject(self).Native())) - - _cret = C.gtk_source_snippet_manager_list_all(_arg0) - runtime.KeepAlive(self) - - var _listModel *gio.ListModel // out - - { - obj := coreglib.Take(unsafe.Pointer(_cret)) - _listModel = &gio.ListModel{ - Object: obj, - } - } - - return _listModel -} - // ListGroups: list all the known groups within the snippet manager. // // The result should be freed with g_free(), and the individual strings are diff --git a/net-im/dissent/files/patch-vendor b/net-im/dissent/files/patch-vendor deleted file mode 100644 index d6b5a47fd160..000000000000 --- a/net-im/dissent/files/patch-vendor +++ /dev/null @@ -1,28 +0,0 @@ -internal/messages/composer/input_good_os.go:11:2: cannot find module providing package libdb.so/gotk4-sourceview/pkg/gtksource/v5: import lookup disabled by -mod=vendor -internal/messages/composer/input_good_os.go:12:2: cannot find module providing package libdb.so/gotk4-spelling/pkg/spelling: import lookup disabled by -mod=vendor -vendor/libdb.so/gotk4-spelling/pkg/pkg/spelling/spelling-text-buffer-adapter.go:13:2: cannot find module providing package libdb.so/gotk4-sourceview/pkg/gtksource/v5: import lookup disabled by -mod=vendor - ---- internal/messages/composer/input_good_os.go.orig 2024-08-27 09:35:53 UTC -+++ internal/messages/composer/input_good_os.go -@@ -8,8 +8,8 @@ import ( - "github.com/diamondburned/gotk4/pkg/gtk/v4" - "github.com/diamondburned/gotkit/app" - "github.com/diamondburned/gotkit/app/prefs" -- "libdb.so/gotk4-sourceview/pkg/gtksource/v5" -- "libdb.so/gotk4-spelling/pkg/spelling" -+ "libdb.so/gotk4-sourceview/pkg/pkg/gtksource/v5" -+ "libdb.so/gotk4-spelling/pkg/pkg/spelling" - ) - - var spellCheck = prefs.NewBool(true, prefs.PropMeta{ ---- vendor/libdb.so/gotk4-spelling/pkg/pkg/spelling/spelling-text-buffer-adapter.go.orig 2024-08-18 08:25:54 UTC -+++ vendor/libdb.so/gotk4-spelling/pkg/pkg/spelling/spelling-text-buffer-adapter.go -@@ -10,7 +10,7 @@ import ( - coreglib "github.com/diamondburned/gotk4/pkg/core/glib" - "github.com/diamondburned/gotk4/pkg/gio/v2" - "github.com/diamondburned/gotk4/pkg/gtk/v4" -- "libdb.so/gotk4-sourceview/pkg/gtksource/v5" -+ "libdb.so/gotk4-sourceview/pkg/pkg/gtksource/v5" - ) - - // #include