Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/gtk-rs/gtk-rs-core

Rust bindings for GNOME libraries
https://github.com/gtk-rs/gtk-rs-core

Merge pull request #965 from ranfdev/props_clean

Refactor properties macro, improve errors

dcf23b2e89893673652db676860cdc5d6c097724 authored almost 2 years ago by Sebastian Dröge <[email protected]>
improve errors of missing properties, refactor

2d0a4908bd8f6e55c48801f3216fd3721d7059c5 authored almost 2 years ago by ranfdev <[email protected]>
impl Parse for ReceivedAttrs

465b648c67217d5ebeeef18d1c25689f72e6232e authored almost 2 years ago by ranfdev <[email protected]>
Merge pull request #964 from gtk-rs/bilelmoussaoui/clippy-cleanup

clippy cleanup

3db3e10c123b0b99754dd9050d95cb4125611684 authored almost 2 years ago by Sebastian Dröge <[email protected]>
clippy: Drop/move certain lints guards

939f0975dee18a74f45375cecb9feff0788db96a authored almost 2 years ago by Bilal Elmoussaoui <[email protected]>
Merge pull request #963 from GuillaumeGomez/clone-proc-macro

Greatly improve `clone!` proc macro error output

602ce5b775eb3f2cd39132adac5ab611dcf59f8d authored almost 2 years ago by Sebastian Dröge <[email protected]>
Add span info into UI test checks

a826b355aa63c6a9e516c92554b3093e295fa1f9 authored almost 2 years ago by Guillaume Gomez <[email protected]>
Greatly improve compiler errors in clone proc macro

e1bc3b750e9921ece908635a2b4543b26fdef7cd authored almost 2 years ago by Guillaume Gomez <[email protected]>
Regenerate with latest gir/gir-files

5162d9fb19017bcfeb6e9af439b0a9279b8277a0 authored almost 2 years ago by Bilal Elmoussaoui <[email protected]>
Update gir/gir-files

b74e44d1c66cc0cbc578335c4eeea36ea0182eb7 authored almost 2 years ago by Bilal Elmoussaoui <[email protected]>
Merge pull request #962 from pbor/list-model-iter

gio: make ListModel::iter() infallible

9060294792fa2433c31c3c4dc8b97da6c0efd74b authored almost 2 years ago by Sebastian Dröge <[email protected]>
gio: make ListModel::iter() infallible

Panic if the wrong type is requested, this is more ergonomic and
asking for the wrong type is a ...

69b8fcdba4dac456eebc1734ac40dca3ca4f31f3 authored almost 2 years ago by Paolo Borelli <[email protected]>
Merge pull request #959 from pbor/prop-override

macros: support overrides in the properties macro

8c9d1a40b95503d832ebb6e5d08b39a5c9bd3788 authored almost 2 years ago by Sebastian Dröge <[email protected]>
Merge pull request #958 from pbor/prop-default

Support `default = ...` in the properties macro

aa525e271a891e77153f6c721d210a7026a98c0c authored almost 2 years ago by Sebastian Dröge <[email protected]>
Merge pull request #955 from jf2048/gstringptr-perf

Use strcmp for GStringPtr comparisons

c6cb449de9f53a21c13e5eac2d804a870ed7ec14 authored almost 2 years ago by Sebastian Dröge <[email protected]>
macros: support overrides in the properties macro

b918bee93828cd06a12b2d255a52d75862a9556c authored almost 2 years ago by Paolo Borelli <[email protected]>
properties: accept `default = value` attribute

5119b61916e36160d08c99b7a9039cb79a4d1508 authored almost 2 years ago by Paolo Borelli <[email protected]>
macros: move the test foo object out of the unit test function

This avoids one level of indentation

1bb181f9b8d773d70e02929dddf49b677f59d008 authored almost 2 years ago by Paolo Borelli <[email protected]>
glib: use strcmp for GStringPtr comparisons

8e031e2fd6cdccace91f3f19f9f9e080cb68b4a6 authored almost 2 years ago by Jason Francis <[email protected]>
glib: add GStr::from_ptr_checked()

For performing utf-8 checks on a pointer.

fe8cab73467251dc1c0e638743e17555b478608d authored almost 2 years ago by Jason Francis <[email protected]>
Merge pull request #961 from ranfdev/props_infer

properties: correctly type check value returned by the getter fn

0d38c9a72540336665663bea73243a30f2592e68 authored almost 2 years ago by Sebastian Dröge <[email protected]>
properties: infer inline get type

c8fb2a3daf9b27c4148490ea48cb14846b7b993d authored almost 2 years ago by ranfdev <[email protected]>
Merge pull request #954 from pbor/list_store

gio: implement FromIterator for ListStore

c5b05d7926c1fe2ab6fcf6fbbf05780fa6ca1f90 authored almost 2 years ago by Sebastian Dröge <[email protected]>
properties: Update syntax for custom flags and other builder fields

4e4054f144a6d475f30e06691c9bad0a37f669f3 authored almost 2 years ago by ranfdev <[email protected]>
gio: implement FromIterator for ListStore

Fixes https://github.com/gtk-rs/gtk-rs-core/issues/951

5d37089882c7d8765e0d6b16445954f99dd4bcc7 authored almost 2 years ago by Paolo Borelli <[email protected]>
Merge pull request #950 from pbor/stringptr

Rename GStrPtr to GStringPtr

fbfffb50e2a94688f29a3a0541854ceadba81207 authored almost 2 years ago by Sebastian Dröge <[email protected]>
strv: make as_slice const

3aaff7eef7cc0ce9085e6145cbd7780a0ee1c1ab authored almost 2 years ago by Paolo Borelli <[email protected]>
GStringPtr: remove impl AsRef, provide explicit to_gstr and to_str

The conversion requires calculating the length so it is expensive and
should be explicit.

1554d0169c53e728e070c1b7de3f96e6a5e490c1 authored almost 2 years ago by Paolo Borelli <[email protected]>
Rename GStrPtr to GStringPtr

Since this is an owned type this is more consistent.

01b6d66fac36877c73ea9da36ee6ed69c0450e4d authored almost 2 years ago by Paolo Borelli <[email protected]>
Merge pull request #953 from sdroege/object-from-glib-null-assert

glib: Add `NULL` debug assertion to `from_glib_full()` and others for…

e8420543f89afe9dba13c711a1408b25cdf6fa79 authored almost 2 years ago by Sebastian Dröge <[email protected]>
glib: Add `NULL` debug assertion to `from_glib_full()` and others for GObjects

This improves the assertion failure as otherwise it would just assert on
the wrong type if a `NU...

1bc624492d823f3359fd8fff17a06a468ec9cf49 authored almost 2 years ago by Sebastian Dröge <[email protected]>
Merge pull request #948 from pbor/docs

macros: further tweak docs

dee1d23afbe66f707bee09f8ada26c1e0a0a14e8 authored almost 2 years ago by Sebastian Dröge <[email protected]>
macros: further tweak docs

- have both the nullable and the not nullable case in the examples, otherwise
user may assume ...

f4e98fc93ae6ae92a529b58e9ab46a59690ebd7c authored almost 2 years ago by Paolo Borelli <[email protected]>
Merge pull request #940 from ranfdev/nullable_doc

Add doc for ConstructCell, improve doc Boxed, Enum

60aaf3dee5d7c7ef9df69ad1d81e98afcf7f595b authored almost 2 years ago by Sebastian Dröge <[email protected]>
Improve doc about Boxed

1631547a28c488057151fdf7d98f687f16308b1a authored almost 2 years ago by ranfdev <[email protected]>
Merge pull request #933 from sdroege/pixbuf-iter-duration

gdk-pixbuf: Fix time related types

0cb5f20bf70b108e8531442fa6a84d25cad8c6d3 authored almost 2 years ago by Sebastian Dröge <[email protected]>
Merge pull request #934 from sdroege/pixbuf-transfer-none-subclass-returns

gdk-pixbuf: Ensure that transfer-none return values in subclassing ar…

0b7cc690b89112f9d89a8c06ad1668f8c5ef2bea authored almost 2 years ago by Sebastian Dröge <[email protected]>
Merge pull request #944 from sdroege/enumerate-children-non-static-str

gio: Don't require a `'static` `&str` in `File::enumerate_children_as…

a99f6ad129af4beaded8e5d07d25f7e0b173cdd1 authored almost 2 years ago by Sebastian Dröge <[email protected]>
Merge pull request #926 from pbor/key_file

Use `PtrSlice<GStrPtr>` for `KeyFile` methods

a88d2ed274db91940f1f06c9570d77a1dcfcf977 authored almost 2 years ago by Sebastian Dröge <[email protected]>
Merge pull request #941 from ranfdev/rm_construct_cell

Remove construct_cell, too experimental

6341060d5e041207eaddc55dc3ae068f1c1d092f authored almost 2 years ago by Sebastian Dröge <[email protected]>
gio: Don't require a `'static` `&str` in `File::enumerate_children_async()` and `enumerate_children_future()`

Fixes https://github.com/gtk-rs/gtk-rs-core/issues/942

7cc03ee83c2f7976f222670abb65ff91f57b8f40 authored almost 2 years ago by Sebastian Dröge <[email protected]>
Remove construct_cell, too experimental

The API hasn't received enough thought. It's isn't
ready for release. If useful this can be adde...

3eb25427d146255a9d3a4c1f43eabd4cbc69ff08 authored almost 2 years ago by ranfdev <[email protected]>
key_file: return PtrSlice<GStrPtr>

These methods return an owned StrV, but also provide the length,
so we can return a PtrSlice to ...

1918b66c5175256c9c2a1f4506608a50f9eada7f authored almost 2 years ago by Paolo Borelli <[email protected]>
Merge pull request #938 from pbor/gstrptr

Rename StrVItem to GStrPtr and make it clonable and transparent

cc1f50bb37d567f2fda464d4f782037b5ee2351b authored almost 2 years ago by Sebastian Dröge <[email protected]>
Merge pull request #936 from pbor/transparent

Add TransparentPtr marker trait to List, SList and StrVItem

db30fae8306c0ea8aa909fc13cc140a3e3b2766e authored almost 2 years ago by Sebastian Dröge <[email protected]>
Rename StrVItem to GStrPtr and make it clonable and transparent

It is useful to have also in cases different from StrV, for instance
for some API we want to ret...

94ff27255ac2cc90b84cd6dbe656d1ed719a554f authored almost 2 years ago by Paolo Borelli <[email protected]>
Merge pull request #937 from sdroege/update-gir-files

Update gir files

29340f52846b6ed9939dbb358288da0ef8154e2f authored almost 2 years ago by Sebastian Dröge <[email protected]>
Regenerate with latest gir-files

b716d952506991e497661a72b908c069513d0125 authored almost 2 years ago by Sebastian Dröge <[email protected]>
Update gir-files

925e16f2e7b7da33b240acf5803684f3d3a9964f authored almost 2 years ago by Sebastian Dröge <[email protected]>
Merge pull request #931 from sdroege/object-new

glib: Rename `Object::new_default()` to `Object::new()` and remove de…

29e9ee0f4af1ed186d6fb3732b8bff9aa0d9a363 authored almost 2 years ago by Sebastian Dröge <[email protected]>
list: mark as transparent and impl TransparentPtr

List and SList are wrappers around C pointers

d68decffe60f36f7f7271685117827c45419052a authored almost 2 years ago by Paolo Borelli <[email protected]>
gdk-pixbuf: Ensure that transfer-none return values in subclassing are staying alive long enough

Fixes https://github.com/gtk-rs/gtk-rs-core/issues/922

e7aa384483a830c2c56b83dea87fe29b0ed8747c authored almost 2 years ago by Sebastian Dröge <[email protected]>
gdk-pixbuf: Use `SystemTime` instead of `Duration` for `PixbufAnimation::iter()` and `PixbufAnimationIter::advance()`

They're `GTimeVal` relative to the UNIX epoch in C and not a plain
duration.

Fixes https://gith...

b4ddd838b68b1b82d069ebf41c1bb94e802e26db authored almost 2 years ago by Sebastian Dröge <[email protected]>
gdk-pixbuf: Return a `Option<Duration>` from `AnimationIter::delay_time()`

It's a duration in milliseconds or -1 and the `Impl` trait already used
an `Option<Duration>` here.

6e7c2009f0077a054b1935aa303fe309ff611df4 authored almost 2 years ago by Sebastian Dröge <[email protected]>
glib: Rename `Object::new_default()` to `Object::new()` and remove deprecated API

Fixes https://github.com/gtk-rs/gtk-rs-core/issues/913

f2ea6e22878a0c3a2b435dd5396163deaceab420 authored almost 2 years ago by Sebastian Dröge <[email protected]>
Update gir

4dd96c9047c273ad440e9eb9660af1e5aaa64fee authored almost 2 years ago by Sebastian Dröge <[email protected]>
Regenerate with latest gir

608459ffbcac1e2ca08ae6163bc788a9bbb64c7a authored almost 2 years ago by Sebastian Dröge <[email protected]>
Merge pull request #928 from aruiz/master

gdk-pixbuf: check if either width/height is null before assignment in animation_get_size()

22a91c1059f10f139b2a7755dde64d9c14a86747 authored almost 2 years ago by Sebastian Dröge <[email protected]>
gdk-pixbuf: check if either width/height is null before assignment in animation_get_size()

0456e1ff6d7e6771169bbf8d9175b0a9e51e9498 authored almost 2 years ago by Alberto Ruiz <[email protected]>
glib: Add a Properties derive macro

The macro would simplify the creation of properties and generate
traits that can be used in Obje...

bd0db79f02a22359541733b5b53af0983d978d4a authored almost 2 years ago by ranfdev <[email protected]>
Regenerate with latest gir

3974526f15173af5f6f33012d0690b7043023cc4 authored almost 2 years ago by Bilal Elmoussaoui <[email protected]>
Update gir

d42a3a7f5cf6b786db12c0677fc36a58073ce4e2 authored almost 2 years ago by Bilal Elmoussaoui <[email protected]>
Merge pull request #880 from A6GibKm/exit-code

application: Return ExitCode

3999fc5e7281fa371fe92f7cc8856663fc01536b authored almost 2 years ago by Sebastian Dröge <[email protected]>
application: Return ExitCode

Allows writing

```rust
fn main() -> glib::ExitCode {
let app = gio::Application::ne...

41dfd34fc616bc305fc4b60145d9190f2aec669e authored almost 2 years ago by Maximiliano Sandoval R <[email protected]>
Merge pull request #925 from sdroege/clippy-warnings

ci: Only deny clippy warnings with stable clippy

f3374edd43f1c8d05e79c3f63613ac1227de6ed2 authored almost 2 years ago by Sebastian Dröge <[email protected]>
ci: Only deny clippy warnings with stable clippy

a2b99e7482cf14d5a375549b7b28d89ae5dd6277 authored almost 2 years ago by Sebastian Dröge <[email protected]>
Merge pull request #924 from sdroege/timezone-adjust-time

glib: Manually implement `TimeZone::adjust_time()` instead of ignorin…

0a7ba977b0d25bb7959e53e21e28f7d96a8174b9 authored almost 2 years ago by Guillaume Gomez <[email protected]>
glib: Manually implement `TimeZone::adjust_time()` instead of ignoring it

eac2b694eb40d678ae3abdddd7bb0991a0c34296 authored almost 2 years ago by Sebastian Dröge <[email protected]>
Merge pull request #923 from sdroege/update-dependencies

Update dependencies

e69aa51ae22613b39c83dc83d34284adcf452e09 authored almost 2 years ago by Sebastian Dröge <[email protected]>
Update dependencies

ba7a033360f2e0a3bc84881b82b62cafb65ca927 authored almost 2 years ago by Sebastian Dröge <[email protected]>
gio: Make sure to have `IntoStrV` in scope for `v2_60` too

7bee6e8cc7d3ac4b60e271df3896e3640741c18e authored almost 2 years ago by Sebastian Dröge <[email protected]>
Merge pull request #915 from jf2048/file-descriptor-based

gio: bind GFileDescriptorBased

c96b56cc87bbca335d3e65faa5a7365b6a3a17ac authored almost 2 years ago by Sebastian Dröge <[email protected]>
gio: bind GFileDescriptorBased

Remove `fd` methods on UnixInputStream and UnixOutputStream since they
conflict with the new met...

e4a7232c4ab830017c3e7e7da56fba99f3cf1409 authored almost 2 years ago by Jason Francis <[email protected]>
Merge pull request #921 from sdroege/gstr-manual-trait-impls

glib: Implement various traits on `GStr` manually

66237a7b70b952c4ae417927cfbf224c1ecc3820 authored almost 2 years ago by Sebastian Dröge <[email protected]>
glib: Implement various traits on `GStr` manually

Deriving the impls would consider the trailing NUL-terminator but this
is inconsistent with the ...

bf90afe774f7c195f4ca0a3d9530e06a406baae9 authored almost 2 years ago by Sebastian Dröge <[email protected]>
Merge pull request #920 from pbor/ext-point

gio: use GStr for the manual extension point implenentation

c38b0539d889b03920b6490e8c90e281896ff78b authored almost 2 years ago by Sebastian Dröge <[email protected]>
gio: use GStr for the manual extension point implenentation

323d0fe777719d269a76b0d6573add37af8950fb authored almost 2 years ago by Paolo Borelli <[email protected]>
Merge pull request #917 from RealKC/build-tools-patch

build-tools: Allow passing multiple source dirs to `compile_resources`

efeb57f458026ac2457f45a1cda8da37501bae22 authored almost 2 years ago by Sebastian Dröge <[email protected]>
build-tools: Allow passing multiple source dirs to `compile_resources`

You can pass the command line tool multiple source dirs, so we should
allow it too.

a39f982b186e47514f9aa0251ca22dc845d75271 authored almost 2 years ago by Mițca Dumitru <[email protected]>
glib: Implement more From traits for StrV

65a32e4cc2f69c57ad17c5087de6058de57f988f authored almost 2 years ago by Bilal Elmoussaoui <[email protected]>
Merge pull request #914 from sdroege/regen

Regenerate with latest gir and mark suboptimal `Object` constructors as deprecated

65a06b01b61d4e786875cee44e320515326c1947 authored almost 2 years ago by Sebastian Dröge <[email protected]>
Regenerate with latest gir

44f6737d04665038f8082bf8dacb5dcee10673b1 authored almost 2 years ago by Sebastian Dröge <[email protected]>
Update gir

fc6a222c4fa18ac02451a51a88794c0ee060c216 authored almost 2 years ago by Sebastian Dröge <[email protected]>
gio: Make (Async)InitableBuilder public

482de036817c9d6806cc6fdeb3849e30a3fb64fd authored almost 2 years ago by Sebastian Dröge <[email protected]>
Stop usage of deprecated constructor functions

9c206dddbf166b496ffd2ec06ccfcac07bf1e62a authored almost 2 years ago by Sebastian Dröge <[email protected]>
Merge pull request #901 from sdroege/main-context-spawn-within

glib: Add `MainContext::spawn_from_within()` for spawning non-`Send` …

bb0879e258e3eba6ad7faac6d023807d586ad97d authored almost 2 years ago by Sebastian Dröge <[email protected]>
glib: Deprecate suboptimal `Object` constructors

8a983b0694fa0e49dc8aba46a789226e5421edea authored almost 2 years ago by Sebastian Dröge <[email protected]>
glib: Implement `From<&String> for GString`

e44e65b1307785f9b47a75956fe74aaa05fd43ae authored almost 2 years ago by Sebastian Dröge <[email protected]>
Merge pull request #910 from sdroege/simpler-object-construction

glib: Add new object constructor for constructing an object with default property values

b67a499496622164afb7594fb8204a62ff37e592 authored almost 2 years ago by Sebastian Dröge <[email protected]>
Merge pull request #908 from sdroege/param-spec-new-deprecated

glib: Deprecate paramspec `new()` functions in favour of the builder

83db468432492786ad48403d8ee298ce05ddbb50 authored almost 2 years ago by Sebastian Dröge <[email protected]>
glib: Add new object constructor for constructing an object with default property values

And also keep the `gio::Initable` / `gio::AsyncInitable` API in sync,
i.e. add a builder and the...

52d39ab86ca2e8dd7f8ac4cc0c31631e78d22e3b authored almost 2 years ago by Sebastian Dröge <[email protected]>
Merge pull request #909 from sdroege/param-spec-enum-default

glib: Implement enum paramspec builder variant that builds the defaul…

a359bb3a5e1c6e63e5103ad3cf3fb9c49389cb9a authored almost 2 years ago by Sebastian Dröge <[email protected]>
glib: Implement enum paramspec builder variant that builds the default value automatically

Fixes https://github.com/gtk-rs/gtk-rs-core/issues/831

1d8fea6877b130671e934608b06b52cfe98c2f2a authored almost 2 years ago by Sebastian Dröge <[email protected]>
Merge pull request #904 from AaronErhardt/master

build-tools: Fix reporting of errors

59292d27d70241afddae53a95a2509369f74fd1e authored almost 2 years ago by Sebastian Dröge <[email protected]>
Merge pull request #911 from andy128k/patch-1

Do not hard-code path separator

b103fd781d6479acd06e8661afb6f8c842ab4a26 authored almost 2 years ago by Sebastian Dröge <[email protected]>
Do not hard-code path separator

bedef83cccbd618ec80d6ddb09cfec58e0d060f3 authored almost 2 years ago by Andrey Kutejko <[email protected]>
glib: Make `ObjectBuilder` a bit more efficient

Previously we were copying each parameter value potentially twice, now
it is only going to be co...

5ed62f5b30f32d1b7113855dc2def3cd81281032 authored almost 2 years ago by Sebastian Dröge <[email protected]>
Merge pull request #906 from sdroege/deprecate-obj

glib: Deprecate `ObjectSubclass::instance()` / `from_instance()` in f…

a75b75d2a531549b2813d692f58fd7a601d48cfe authored almost 2 years ago by Sebastian Dröge <[email protected]>
glib: Deprecate `ObjectSubclass::instance()` / `from_instance()` in favour of the shorter versions

Fixes https://github.com/gtk-rs/gtk-rs-core/issues/807

32ec9ca97d65a73dda12d1e3a9569bbc7c5a6bf3 authored almost 2 years ago by Sebastian Dröge <[email protected]>
glib: Deprecate paramspec `new()` functions in favour of the builder

ee55a9e822420528e02d9b86865b46a38df0577f authored almost 2 years ago by Sebastian Dröge <[email protected]>