Ecosyste.ms: OpenCollective

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

github.com/gtk-rs/glib

DEPRECATED, use https://github.com/gtk-rs/gtk-rs-core repository instead!
https://github.com/gtk-rs/glib

Merge pull request #708 from sdroege/regen

Regenerate with latest gir and trust upstream nullable annotations for return values

f53054c8d392d22dba55ac122dddfe9fc9b191ef authored about 4 years ago by Sebastian Dröge <[email protected]>
Trust upstream nullable annotations for return values

There are 4 left that are wrong upstream and have an MR submitted, all
others are correct and th...

292c14966d8666396b932848d927ef58a44dedb9 authored about 4 years ago by Sebastian Dröge <[email protected]>
Merge pull request #719 from sdroege/safer-get-instance

Panic if ObjectSubclass::get_instance() is called on a finalizing object

cade25c91192ce580e9d4df3fba526d95eced5ea authored about 4 years ago by Sebastian Dröge <[email protected]>
Update gir

a008e87f43bf07e0bf08b9181819631cbe9cfbac authored about 4 years ago by Sebastian Dröge <[email protected]>
Add assertions to prevent creating glib::Object wrappers around finalizing or finalized objects

This would be unsafe and hints at a bug somewhere else.

f9b5858f90904bfa9528d9ccdf7f62e45aacab60 authored about 4 years ago by Sebastian Dröge <[email protected]>
Panic if ObjectSubclass::get_instance() is called on a finalizing object

The object might just be finalized, and in that case it's unsafe to access
it and use any API on...

3175c14e10099ea8a907b32b56a925bcf53112f2 authored about 4 years ago by Sebastian Dröge <[email protected]>
Add parameter names to glib::Value trait functions

Not providing them is deprecated.

0cc001f5c09ce6910810087b268e3c093b7d4ff3 authored about 4 years ago by Sebastian Dröge <[email protected]>
Merge pull request #717 from ids1024/ord_eq

Don't derive PartialOrd/PartialEq implementations in glib_wrapper!

f9ffe67f82a7b36b699f91caca3565744e34b1cf authored about 4 years ago by Sebastian Dröge <[email protected]>
Don't derive PartialOrd/PartialEq implementations in glib_wrapper!

Should fix https://github.com/gtk-rs/glib/pull/713/files#r511494658

By implementing it to invok...

01daff20f02725d21c730c7baadb0a036da61d14 authored about 4 years ago by Ian Douglas Scott <[email protected]>
Merge pull request #716 from sdroege/repr-transparent

Use repr(transparent) instead of repr(C) where this is more correct

81d04db375e52f18ca8be91aeb5d8890c0be704f authored about 4 years ago by Sebastian Dröge <[email protected]>
Use repr(transparent) instead of repr(C) where this is more correct

1e4b137febfb268dd2e039a84852c733cd44fd36 authored about 4 years ago by Sebastian Dröge <[email protected]>
Remove unneeded #[allow(clippy::type_complexity)]

f8e9979aa20e75e99677beafdb565ce0ab1a0385 authored about 4 years ago by Sebastian Dröge <[email protected]>
Merge pull request #715 from sdroege/shared-boxed

Don't define a MemoryManager type for boxed/shared wrappers

ecdbb5b3166e8f20358f558c4f0606f5ac822607 authored about 4 years ago by Sebastian Dröge <[email protected]>
Fix/silence various clippy warnings

d076b839dca708a7807a6df55d818c04bcc64bbb authored about 4 years ago by Sebastian Dröge <[email protected]>
Don't use lots of internal modules in param specs bindings

This is not needed anymore now that it's possible to define multiple
shared/boxed wrappers in th...

91edc9ca34d0ecb0788dbcf497df637d3cd0103b authored about 4 years ago by Sebastian Dröge <[email protected]>
Don't define a MemoryManager type for boxed/shared wrappers

These will conflict with other types if multiple wrappers are defined in
the same module. Instea...

6fc558c547dd9c651e0bc8a5415a307a0b14a59a authored about 4 years ago by Sebastian Dröge <[email protected]>
Fix src/auto/versions.txt

9d4bc89d56f00be33f21cd19bd98192fe554afe7 authored about 4 years ago by Sebastian Dröge <[email protected]>
Fix PhantomData of InitializingType

We don't own a value of type T but just reference the type information.

See https://doc.rust-la...

da496e9133b8483fb328512da8db0a498d9d6818 authored about 4 years ago by Sebastian Dröge <[email protected]>
Merge pull request #713 from ids1024/exorcism

Remove PhantomData from struct created in glib_object_wrapper!

6dac8d435b0d8f643c05df5128eff069497d3f69 authored about 4 years ago by Sebastian Dröge <[email protected]>
Remove PhantomData from Value, and make it #[repr(transparent)]

5750de3d1e072afc9c93146d4bee0281a49e3f93 authored about 4 years ago by Ian Douglas Scott <[email protected]>
Derive PartialOrd, PartialEq, Eq, and Debug in glib_object_wrapper!

I believe the derived `Ord` and `Eq` implementations should behave
correctly based on how the wr...

d07766a90f024f313b33bc246d02d95e19f26ae6 authored about 4 years ago by Ian Douglas Scott <[email protected]>
Remove PhantomData from struct created in glib_object_wrapper!

I don't believe these any reason to use `PhantomData` in a struct like
this that isn't generic.
...

456d1f9f79f89db7ce3ab33934fcea37eb538ed5 authored about 4 years ago by Ian Douglas Scott <[email protected]>
Merge pull request #709 from sdroege/value-in-value

Remove ToValue impl for Value, and various other related cleanups

0654a555aa8eb02e29c6f1c34a8bf9f4da9f2ed8 authored about 4 years ago by Sebastian Dröge <[email protected]>
Merge pull request #710 from sdroege/remove-timeval

Remove glib::TimeVal

a973770961652439564083d930980de4a1063f73 authored about 4 years ago by Sebastian Dröge <[email protected]>
Remove glib::TimeVal

It's equivalent to std::time::SystemTime except that it's not year-2038-safe

fde84999417554155042fb7bfc869afdd2852ad0 authored about 4 years ago by Sebastian Dröge <[email protected]>
Add generic glib::Value variants for Closure::emit() and various Object APIs

060f8c3cc9b1293d83e80e03d1156a4d772eda07 authored about 4 years ago by Sebastian Dröge <[email protected]>
Use SmallVec for heap allocations in Closure::emit() and Object::emit()

3ca6320d8e3b3551852ca26c4258369179300da8 authored about 4 years ago by Sebastian Dröge <[email protected]>
Refactor Object::emit() and move argument validation into a separate function

Also handle subclassing of GObjects correctly when checking the types.

111b47eb9386c68685f62a5e1889d8ad8bba5263 authored about 4 years ago by Sebastian Dröge <[email protected]>
Don't implement ToValue for Value

This behaves different to the other implementations as it does not wrap
the argument in a new Va...

390ca3a200ddb67947e698527387f23b4b395545 authored about 4 years ago by Sebastian Dröge <[email protected]>
Merge pull request #699 from xanathar/wip/revlog

Added register_glib_to_logcrate_logger function to do glib-to-rust logging

5e0222f066550e08b7933ce0d7b8b6e7e9580c00 authored about 4 years ago by Sebastian Dröge <[email protected]>
Added rust_log_handler function to do glib-to-rust logging

d51d51ad4c7d0b6d0f37e27971c83c77824a84cc authored about 4 years ago by Marco Mastropaolo <[email protected]>
Merge pull request #697 from bilelmoussaoui/bilelmoussaoui/update

groovy update: regenerate

e515eb89429ccaf8e00eda2193092e8c9ae96606 authored about 4 years ago by Sebastian Dröge <[email protected]>
cargo: add missing feature

53a8ed72684d5fd28ed7d4d34e189472407e7c4e authored about 4 years ago by Bilal Elmoussaoui <[email protected]>
uri: properly mark non nullable returns

should be reverted after the update to new gir file & glib release
see https://gitlab.gnome.org/...

82e69d5108e78b728f1ffbc1b602e5b962a22014 authored about 4 years ago by Bilal Elmoussaoui <[email protected]>
uri: ignore error-quark method

this should be fixed in https://github.com/gtk-rs/gir/issues/969

a877cea8fb25bd48f36a25227aed1d35eb4a1828 authored about 4 years ago by Bilal Elmoussaoui <[email protected]>
Merge pull request #705 from ids1024/glib-wrapper-object-subclass

Add a ObjectSubclass version of glib_wrapper!

7532f23fa0376b1a5a1eb078e2cf6d631353507d authored about 4 years ago by Sebastian Dröge <[email protected]>
Update glib::subclass example to use an `imp` module

Matches the convention used in
https://github.com/gtk-rs/examples/blob/pending/src/bin/listbox_m...

86e04ebdda27e07c66c280a20ff14c022428e432 authored about 4 years ago by Ian Douglas Scott <[email protected]>
Add a ObjectSubclass version of glib_wrapper!

This makes it easier to define a wrapper for a type defined in Rust
using `ObjectSubclass`. It a...

48b6c79702df5db6e787a1c91f58251cc8f772b0 authored about 4 years ago by Ian Douglas Scott <[email protected]>
Use traits explicitly with $crate in glib_object_wrapper!

This is already done in other parts of the macro, but not on these two
lines.

dd07d1feb03f00da703d795c4ff9fb13332c9187 authored about 4 years ago by Ian Douglas Scott <[email protected]>
Merge pull request #704 from ids1024/ty

Use :ty rather than :path for ffi_name and ffi_class_name

6f4d8e00b30a9c7e971c1ac2b8029048202cb60f authored about 4 years ago by Sebastian Dröge <[email protected]>
Remove wrapper::Void

f3f72347e9962b0324ec16116990d075b7ac42a2 authored about 4 years ago by Ian Douglas Scott <[email protected]>
Use :ty rather than :path for ffi_name and ffi_class_name

I believe this is more correct, and should allow more things to work
without breaking anything. ...

443559b4b3e692d25f5df105407addd456c18511 authored about 4 years ago by Ian Douglas Scott <[email protected]>
Merge pull request #702 from ids1024/zst

Fix .get_instance() assert failure with zero-sized type

24ddb747be096261901199f16e23e80375ead15d authored about 4 years ago by Sebastian Dröge <[email protected]>
Fix .get_instance() assert failure with zero-sized type

Also adds a call to `.get_instance()` to a test (which fails without the
other change).

Fixes #701

adab6f975cbd6d568cd7a5cebfec7192bed2f399 authored about 4 years ago by Ian Douglas Scott <[email protected]>
Merge pull request #700 from GuillaumeGomez/timeval

Add missing ToGlibPtr implementation

0cc0a46c6da1cd7c853cef8f6851d80d4a0de202 authored about 4 years ago by Sebastian Dröge <[email protected]>
Add missing ToGlibPtr implementation

3c90543159e089f26e4e356e8981ce489a6d0cf9 authored about 4 years ago by Guillaume Gomez <[email protected]>
Merge pull request #698 from sdroege/weak-ref-pinned

Use Pin<Box<GWeakRef>> for storing weak references

8b4ca199ecd5caf87a3b741114d527920e3da66f authored about 4 years ago by Sebastian Dröge <[email protected]>
Use Pin<Box<GWeakRef>> for storing weak references

This makes it clearer that the memory is actually pinned and must not be
moved, and especially m...

b2e60311ed532d92c76fec59f25a544cbbe9c41f authored about 4 years ago by Sebastian Dröge <[email protected]>
regen with fixed UriError

e75a3a64ac520e807eafa46bfecb6103f03f6263 authored about 4 years ago by Bilal Elmoussaoui <[email protected]>
groovy update: regenerate

this also generates glib::Uri as a replacement of the removed functions

2deeeda3915a352e29efa9595b9d6634071b804e authored about 4 years ago by Bilal Elmoussaoui <[email protected]>
Merge pull request #696 from dns2utf8/https

Use https for all links

039e7698972fc2b0f77701152d3ed97a795a53f3 authored about 4 years ago by Guillaume Gomez <[email protected]>
new docs url

047fedebfea22cfa07d932980c8e39dea83fe785 authored about 4 years ago by Stefan Schindler <[email protected]>
Use https for all links

Hi all

This is a followup to https://github.com/gtk-rs/gtk/pull/1054

Cheers,
Stefan

78ff8fd650e589ffd0e755ff1bcb93a4bbd39a11 authored about 4 years ago by Stefan Schindler <[email protected]>
Merge pull request #695 from seungha-yang/msvc-linking-error

Fix for g_param_spec_types symbol linking error with MSVC

0c2767b9251d736566c81ea0c276552c2536202d authored about 4 years ago by Sebastian Dröge <[email protected]>
Fix for g_param_spec_types symbol linking error with MSVC

For MSVC to ba able to link a symbol properly, corresponding
import library should be specified ...

dd6ca6484bc0b9d47599d6091fbf923b5fb250b6 authored about 4 years ago by Seungha Yang <[email protected]>
Merge pull request #694 from xanathar/master

Proposal: support for logging through the log crate

922be7c14ce6b10e17042933085fae83d51ef7ad authored over 4 years ago by Sebastian Dröge <[email protected]>
Added 'log-like' macros to bridged logging in bridged_logging_domain_macros feature

460632d8392a998fe84366dcbb8b1d1dcc008877 authored over 4 years ago by Marco Mastropaolo <[email protected]>
Added a logging adapter from log crate logging to glib's

8f25f7612462011ad5ab04c5960bfda75ba7416d authored over 4 years ago by Marco Mastropaolo <[email protected]>
Merge pull request #693 from GuillaumeGomez/duration-for-milliseconds

Use Duration instead of u32 when representing milliseconds

7e9eee494fd0076f94b3f024ffbb7474824c4958 authored over 4 years ago by Guillaume Gomez <[email protected]>
Update tests

3f685804fcaa378be67ebe9801fff7dc1f8efa9e authored over 4 years ago by Guillaume Gomez <[email protected]>
Merge pull request #692 from sdroege/remove-garray-ffi

Remove GArray FFI translation impls

667635dc8bea1ed6fb30e973339e7437c970f24e authored over 4 years ago by Sebastian Dröge <[email protected]>
Use Duration instead of u32 when representing milliseconds

b5b10cad7b2ba1358fe311ab9ab41df937fad96d authored over 4 years ago by Guillaume Gomez <[email protected]>
Remove GArray FFI translation impls

They can't possibly work right now and would just crash with a NULL
pointer dereference.

Fixes ...

76d7fc0327b8d6c0a78aafcd2e2200bfee13787b authored over 4 years ago by Sebastian Dröge <[email protected]>
Merge pull request #688 from sdroege/paramspecs

Improve ParamSpec bindings

ea407a57e32b18086346d320691b66d51de7bdc8 authored over 4 years ago by Sebastian Dröge <[email protected]>
Add bindings for ParamSpec subclasses with corresponding casting infrastructure

82bedf2b134d2fe6b69cfb66c74071a700479d90 authored over 4 years ago by Sebastian Dröge <[email protected]>
Fix memory leak in ObjectClass::list_properties()

7d136ebfdb33a1e4ad9c4bb83a55861b7259cf05 authored over 4 years ago by Sebastian Dröge <[email protected]>
Use from_glib_none() for ParamSpec constructors

We get floating references returned and need to sink them here
immediately.

71b42b07b8eae2691f6bf124e495be212b0b3b2b authored over 4 years ago by Sebastian Dröge <[email protected]>
Implement Value traits manually for ParamSpec

It's not a proper boxed type but another fundamental type with its own
value functions.

31ad0231722df774c74ccc7126affc98fcea5581 authored over 4 years ago by Sebastian Dröge <[email protected]>
Merge pull request #686 from ids1024/is_container

Define a Variant::is_container(), use it for checks

2431931b523f7a0570fb69ba525a1bd9e5d2780f authored over 4 years ago by Sebastian Dröge <[email protected]>
Define a Variant::is_container(), use it for checks

a257fac1d4ad743a536670df542c6b6c84bcf33a authored over 4 years ago by Ian Douglas Scott <[email protected]>
Merge pull request #684 from sdroege/pspec-borrowing

Borrow some values from ParamSpec instead of copying

e3f1f9f0b5babf58962eb8fb5e26c86d0c977313 authored over 4 years ago by Sebastian Dröge <[email protected]>
Merge pull request #679 from ids1024/from_variant

Implement FromVariant for Variant

c9ee583cea07830c099cdcccd33eda9ef705ea93 authored over 4 years ago by Sebastian Dröge <[email protected]>
Merge pull request #683 from ids1024/iter

Add a VariantIter type, and Variant::iter() method

b02fb435a59750c70ba9a491a9c4716a38ffbace authored over 4 years ago by Sebastian Dröge <[email protected]>
Borrow name/nick/blurb strings of ParamSpecs instead of creating copies

They're immutable and only assigned during construction.

8ac5534e14ff0434dc24ff6bd38a8f89d6a841e1 authored over 4 years ago by Sebastian Dröge <[email protected]>
Borrow default value of ParamSpecs instead of copying

Also it's not Optional, it always exists.

c04bb61169ab334ac09d3b354edb80b2a4976904 authored over 4 years ago by Sebastian Dröge <[email protected]>
Add a VariantIter type, and Variant::iter() method

6174bbec2e65c2420011e2201b0bb558696efa92 authored over 4 years ago by Ian Douglas Scott <[email protected]>
Implement ToVariant and FromVariant for Variant

This is useful when combined with the container variant functions and
trait implementations from...

f6b61f398646ab80d7a3daa7b0a49ea8b5564a9d authored over 4 years ago by Ian Douglas Scott <[email protected]>
Merge pull request #681 from zeenix/variant-constructors

Drop "new_" prefix from Variant constructor methods

197c23857cce49783c59547f0db8342e6a569e58 authored over 4 years ago by Sebastian Dröge <[email protected]>
Complete a check for container variant types

b0f4819af85014a30a16fd5cc524578e582814b7 authored over 4 years ago by Zeeshan Ali <[email protected]>
Drop "new_" prefix from Variant constructor methods

For consistency with rest of the API and Rust conventions.

80e7b2061ab51aee06540d773288e506b7b434c2 authored over 4 years ago by Zeeshan Ali <[email protected]>
Merge pull request #677 from ids1024/new_variant

fix: Do not transfer ownership in Variant::new_variant()

a8b5db0013949621548ed79c081ce2d8e39f08f5 authored over 4 years ago by Sebastian Dröge <[email protected]>
fix: Do not transfer ownership in Variant::new_variant()

Trying to port some code to the new variant API, this was causing
errors.

I believe this is cor...

f9c500e7eb4505fcfe4fcd4a1a6f232ded44f21c authored over 4 years ago by Ian Douglas Scott <[email protected]>
Merge pull request #651 from zeenix/complete-variant

Add container Variant API

4516a7590ac4864d0549ad9a050bc155001f4da1 authored over 4 years ago by Sebastian Dröge <[email protected]>
API to create tuple Variant & convert it to/from tuples

1deff1a88562f8c458d1aef2dde9e03e2c4e59f4 authored over 4 years ago by Zeeshan Ali <[email protected]>
Variant support for Option (Maybe type of GVariant)

4a9a20318331ba03561127f82f6ff8078c1d2a85 authored over 4 years ago by Zeeshan Ali <[email protected]>
Add conversion between Variant and HashMap

12300198d0167848051976cbc9632fae818bbae8 authored over 4 years ago by Zeeshan Ali <[email protected]>
API for creating dictionary entries

3ee231337b3ee4ffbb6d12c4aac87057b910af2b authored over 4 years ago by Zeeshan Ali <[email protected]>
Add conversion between Vec<T> and Variant

fe257e4c7bcf819301e909b0370a6e01be31534d authored over 4 years ago by Zeeshan Ali <[email protected]>
Export FromVariant in public API

733f152c106af93a2d26dd700a6abd37b93c9e7b authored over 4 years ago by Zeeshan Ali <[email protected]>
Allow creating Array type Variant

df1b340235d5e66df6fadab7278c21b823a77497 authored over 4 years ago by Zeeshan Ali <[email protected]>
Basic API for container-type Variant

300ef3565d5fde6cdb55e9ef941f7c6ec2de58db authored over 4 years ago by Zeeshan Ali <[email protected]>
impl StaticVariantType for Variant

So that `new_from_bytes` can be used with Variant type.

86c7395a61e520e077b63b86e44bfea05ea65f64 authored over 4 years ago by Zeeshan Ali <[email protected]>
Bindings for Variant boxing/unboxing API

2d616d68799553a8c081aebf389a69457a680bd5 authored over 4 years ago by Zeeshan Ali <[email protected]>
Implement StaticVariantType for common Rust container types

This will allow us to create Variant instances from encoded data for
container types. The API to...

8a475660f17ff28d627ea4a552783bc79d09b28f authored over 4 years ago by Zeeshan Ali <[email protected]>
Merge pull request #675 from ids1024/glib_object_wrapper

Use $crate when invoking glib_object_wrapper! in a macro

8df2d20508962f269255a0aaef90300ac6e37e47 authored over 4 years ago by Sebastian Dröge <[email protected]>
Use $crate when invoking glib_object_wrapper! in a macro

This was done elsewhere in #522.

5a4f9078cfbe4680046b53305e0ef22ae1a79d86 authored over 4 years ago by Ian Douglas Scott <[email protected]>
Merge pull request #673 from takaswie/topic/fix-gerror-doc

doc: fix documentation for usage of Error::kind<T>() with match expression

200d34eab3421b53d0688f02093932e14540f411 authored over 4 years ago by Sebastian Dröge <[email protected]>
doc: fix documentation for usage of Error::kind<T>() with match expression

Although glib::Error cannot be converted into Option::<T> directly,
its documentation describe i...

8113476fe60211972bcf80bdf07b7fdfcd2a8e73 authored over 4 years ago by Takashi Sakamoto <[email protected]>
Merge pull request #669 from sdroege/no-more-get-type-data

Get rid of ObjectImpl::get_type_data() and glib_object_impl!() macro

e5f7c8c6683fae7a624be21332138a5c75dcb974 authored over 4 years ago by Guillaume Gomez <[email protected]>
Get rid of ObjectImpl::get_type_data() and glib_object_impl!() macro

And as a side-effect clean up trait bounds in various places.

Fixes https://github.com/gtk-rs/g...

f531062a13c071c0ff70d128ee08f85158546ef3 authored over 4 years ago by Sebastian Dröge <[email protected]>