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
Regenerate with latest gir and trust upstream nullable annotations for return values
f53054c8d392d22dba55ac122dddfe9fc9b191ef authored about 4 years ago by Sebastian Dröge <[email protected]>
There are 4 left that are wrong upstream and have an MR submitted, all
others are correct and th...
Panic if ObjectSubclass::get_instance() is called on a finalizing object
cade25c91192ce580e9d4df3fba526d95eced5ea authored about 4 years ago by Sebastian Dröge <[email protected]>a008e87f43bf07e0bf08b9181819631cbe9cfbac authored about 4 years ago by Sebastian Dröge <[email protected]>
This would be unsafe and hints at a bug somewhere else.
f9b5858f90904bfa9528d9ccdf7f62e45aacab60 authored about 4 years ago by Sebastian Dröge <[email protected]>
The object might just be finalized, and in that case it's unsafe to access
it and use any API on...
Not providing them is deprecated.
0cc001f5c09ce6910810087b268e3c093b7d4ff3 authored about 4 years ago by Sebastian Dröge <[email protected]>Don't derive PartialOrd/PartialEq implementations in glib_wrapper!
f9ffe67f82a7b36b699f91caca3565744e34b1cf authored about 4 years ago by Sebastian Dröge <[email protected]>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]>Use repr(transparent) instead of repr(C) where this is more correct
81d04db375e52f18ca8be91aeb5d8890c0be704f authored about 4 years ago by Sebastian Dröge <[email protected]>1e4b137febfb268dd2e039a84852c733cd44fd36 authored about 4 years ago by Sebastian Dröge <[email protected]>
f8e9979aa20e75e99677beafdb565ce0ab1a0385 authored about 4 years ago by Sebastian Dröge <[email protected]>
Don't define a MemoryManager type for boxed/shared wrappers
ecdbb5b3166e8f20358f558c4f0606f5ac822607 authored about 4 years ago by Sebastian Dröge <[email protected]>d076b839dca708a7807a6df55d818c04bcc64bbb authored about 4 years ago by Sebastian Dröge <[email protected]>
This is not needed anymore now that it's possible to define multiple
shared/boxed wrappers in th...
These will conflict with other types if multiple wrappers are defined in
the same module. Instea...
9d4bc89d56f00be33f21cd19bd98192fe554afe7 authored about 4 years ago by Sebastian Dröge <[email protected]>
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]>Remove PhantomData from struct created in glib_object_wrapper!
6dac8d435b0d8f643c05df5128eff069497d3f69 authored about 4 years ago by Sebastian Dröge <[email protected]>5750de3d1e072afc9c93146d4bee0281a49e3f93 authored about 4 years ago by Ian Douglas Scott <[email protected]>
I believe the derived `Ord` and `Eq` implementations should behave
correctly based on how the wr...
I don't believe these any reason to use `PhantomData` in a struct like
this that isn't generic.
...
Remove ToValue impl for Value, and various other related cleanups
0654a555aa8eb02e29c6f1c34a8bf9f4da9f2ed8 authored about 4 years ago by Sebastian Dröge <[email protected]>Remove glib::TimeVal
a973770961652439564083d930980de4a1063f73 authored about 4 years ago by Sebastian Dröge <[email protected]>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]>060f8c3cc9b1293d83e80e03d1156a4d772eda07 authored about 4 years ago by Sebastian Dröge <[email protected]>
3ca6320d8e3b3551852ca26c4258369179300da8 authored about 4 years ago by Sebastian Dröge <[email protected]>
Also handle subclassing of GObjects correctly when checking the types.
111b47eb9386c68685f62a5e1889d8ad8bba5263 authored about 4 years ago by Sebastian Dröge <[email protected]>
This behaves different to the other implementations as it does not wrap
the argument in a new Va...
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]>d51d51ad4c7d0b6d0f37e27971c83c77824a84cc authored about 4 years ago by Marco Mastropaolo <[email protected]>
groovy update: regenerate
e515eb89429ccaf8e00eda2193092e8c9ae96606 authored about 4 years ago by Sebastian Dröge <[email protected]>53a8ed72684d5fd28ed7d4d34e189472407e7c4e authored about 4 years ago by Bilal Elmoussaoui <[email protected]>
should be reverted after the update to new gir file & glib release
see https://gitlab.gnome.org/...
this should be fixed in https://github.com/gtk-rs/gir/issues/969
a877cea8fb25bd48f36a25227aed1d35eb4a1828 authored about 4 years ago by Bilal Elmoussaoui <[email protected]>Add a ObjectSubclass version of glib_wrapper!
7532f23fa0376b1a5a1eb078e2cf6d631353507d authored about 4 years ago by Sebastian Dröge <[email protected]>
Matches the convention used in
https://github.com/gtk-rs/examples/blob/pending/src/bin/listbox_m...
This makes it easier to define a wrapper for a type defined in Rust
using `ObjectSubclass`. It a...
This is already done in other parts of the macro, but not on these two
lines.
Use :ty rather than :path for ffi_name and ffi_class_name
6f4d8e00b30a9c7e971c1ac2b8029048202cb60f authored about 4 years ago by Sebastian Dröge <[email protected]>f3f72347e9962b0324ec16116990d075b7ac42a2 authored about 4 years ago by Ian Douglas Scott <[email protected]>
I believe this is more correct, and should allow more things to work
without breaking anything. ...
Fix .get_instance() assert failure with zero-sized type
24ddb747be096261901199f16e23e80375ead15d authored about 4 years ago by Sebastian Dröge <[email protected]>
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]>Add missing ToGlibPtr implementation
0cc0a46c6da1cd7c853cef8f6851d80d4a0de202 authored about 4 years ago by Sebastian Dröge <[email protected]>3c90543159e089f26e4e356e8981ce489a6d0cf9 authored about 4 years ago by Guillaume Gomez <[email protected]>
Use Pin<Box<GWeakRef>> for storing weak references
8b4ca199ecd5caf87a3b741114d527920e3da66f authored about 4 years ago by Sebastian Dröge <[email protected]>
This makes it clearer that the memory is actually pinned and must not be
moved, and especially m...
e75a3a64ac520e807eafa46bfecb6103f03f6263 authored about 4 years ago by Bilal Elmoussaoui <[email protected]>
this also generates glib::Uri as a replacement of the removed functions
2deeeda3915a352e29efa9595b9d6634071b804e authored about 4 years ago by Bilal Elmoussaoui <[email protected]>Use https for all links
039e7698972fc2b0f77701152d3ed97a795a53f3 authored about 4 years ago by Guillaume Gomez <[email protected]>047fedebfea22cfa07d932980c8e39dea83fe785 authored about 4 years ago by Stefan Schindler <[email protected]>
Hi all
This is a followup to https://github.com/gtk-rs/gtk/pull/1054
Cheers,
Stefan
Fix for g_param_spec_types symbol linking error with MSVC
0c2767b9251d736566c81ea0c276552c2536202d authored about 4 years ago by Sebastian Dröge <[email protected]>
For MSVC to ba able to link a symbol properly, corresponding
import library should be specified ...
Proposal: support for logging through the log crate
922be7c14ce6b10e17042933085fae83d51ef7ad authored over 4 years ago by Sebastian Dröge <[email protected]>460632d8392a998fe84366dcbb8b1d1dcc008877 authored over 4 years ago by Marco Mastropaolo <[email protected]>
8f25f7612462011ad5ab04c5960bfda75ba7416d authored over 4 years ago by Marco Mastropaolo <[email protected]>
Use Duration instead of u32 when representing milliseconds
7e9eee494fd0076f94b3f024ffbb7474824c4958 authored over 4 years ago by Guillaume Gomez <[email protected]>3f685804fcaa378be67ebe9801fff7dc1f8efa9e authored over 4 years ago by Guillaume Gomez <[email protected]>
Remove GArray FFI translation impls
667635dc8bea1ed6fb30e973339e7437c970f24e authored over 4 years ago by Sebastian Dröge <[email protected]>b5b10cad7b2ba1358fe311ab9ab41df937fad96d authored over 4 years ago by Guillaume Gomez <[email protected]>
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]>Improve ParamSpec bindings
ea407a57e32b18086346d320691b66d51de7bdc8 authored over 4 years ago by Sebastian Dröge <[email protected]>82bedf2b134d2fe6b69cfb66c74071a700479d90 authored over 4 years ago by Sebastian Dröge <[email protected]>
7d136ebfdb33a1e4ad9c4bb83a55861b7259cf05 authored over 4 years ago by Sebastian Dröge <[email protected]>
We get floating references returned and need to sink them here
immediately.
It's not a proper boxed type but another fundamental type with its own
value functions.
Define a Variant::is_container(), use it for checks
2431931b523f7a0570fb69ba525a1bd9e5d2780f authored over 4 years ago by Sebastian Dröge <[email protected]>a257fac1d4ad743a536670df542c6b6c84bcf33a authored over 4 years ago by Ian Douglas Scott <[email protected]>
Borrow some values from ParamSpec instead of copying
e3f1f9f0b5babf58962eb8fb5e26c86d0c977313 authored over 4 years ago by Sebastian Dröge <[email protected]>Implement FromVariant for Variant
c9ee583cea07830c099cdcccd33eda9ef705ea93 authored over 4 years ago by Sebastian Dröge <[email protected]>Add a VariantIter type, and Variant::iter() method
b02fb435a59750c70ba9a491a9c4716a38ffbace authored over 4 years ago by Sebastian Dröge <[email protected]>They're immutable and only assigned during construction.
8ac5534e14ff0434dc24ff6bd38a8f89d6a841e1 authored over 4 years ago by Sebastian Dröge <[email protected]>Also it's not Optional, it always exists.
c04bb61169ab334ac09d3b354edb80b2a4976904 authored over 4 years ago by Sebastian Dröge <[email protected]>6174bbec2e65c2420011e2201b0bb558696efa92 authored over 4 years ago by Ian Douglas Scott <[email protected]>
This is useful when combined with the container variant functions and
trait implementations from...
Drop "new_" prefix from Variant constructor methods
197c23857cce49783c59547f0db8342e6a569e58 authored over 4 years ago by Sebastian Dröge <[email protected]>b0f4819af85014a30a16fd5cc524578e582814b7 authored over 4 years ago by Zeeshan Ali <[email protected]>
For consistency with rest of the API and Rust conventions.
80e7b2061ab51aee06540d773288e506b7b434c2 authored over 4 years ago by Zeeshan Ali <[email protected]>fix: Do not transfer ownership in Variant::new_variant()
a8b5db0013949621548ed79c081ce2d8e39f08f5 authored over 4 years ago by Sebastian Dröge <[email protected]>
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]>Add container Variant API
4516a7590ac4864d0549ad9a050bc155001f4da1 authored over 4 years ago by Sebastian Dröge <[email protected]>1deff1a88562f8c458d1aef2dde9e03e2c4e59f4 authored over 4 years ago by Zeeshan Ali <[email protected]>
4a9a20318331ba03561127f82f6ff8078c1d2a85 authored over 4 years ago by Zeeshan Ali <[email protected]>
12300198d0167848051976cbc9632fae818bbae8 authored over 4 years ago by Zeeshan Ali <[email protected]>
3ee231337b3ee4ffbb6d12c4aac87057b910af2b authored over 4 years ago by Zeeshan Ali <[email protected]>
fe257e4c7bcf819301e909b0370a6e01be31534d authored over 4 years ago by Zeeshan Ali <[email protected]>
733f152c106af93a2d26dd700a6abd37b93c9e7b authored over 4 years ago by Zeeshan Ali <[email protected]>
df1b340235d5e66df6fadab7278c21b823a77497 authored over 4 years ago by Zeeshan Ali <[email protected]>
300ef3565d5fde6cdb55e9ef941f7c6ec2de58db authored over 4 years ago by Zeeshan Ali <[email protected]>
So that `new_from_bytes` can be used with Variant type.
86c7395a61e520e077b63b86e44bfea05ea65f64 authored over 4 years ago by Zeeshan Ali <[email protected]>2d616d68799553a8c081aebf389a69457a680bd5 authored over 4 years ago by Zeeshan Ali <[email protected]>
This will allow us to create Variant instances from encoded data for
container types. The API to...
Use $crate when invoking glib_object_wrapper! in a macro
8df2d20508962f269255a0aaef90300ac6e37e47 authored over 4 years ago by Sebastian Dröge <[email protected]>This was done elsewhere in #522.
5a4f9078cfbe4680046b53305e0ef22ae1a79d86 authored over 4 years ago by Ian Douglas Scott <[email protected]>doc: fix documentation for usage of Error::kind<T>() with match expression
200d34eab3421b53d0688f02093932e14540f411 authored over 4 years ago by Sebastian Dröge <[email protected]>
Although glib::Error cannot be converted into Option::<T> directly,
its documentation describe i...
Get rid of ObjectImpl::get_type_data() and glib_object_impl!() macro
e5f7c8c6683fae7a624be21332138a5c75dcb974 authored over 4 years ago by Guillaume Gomez <[email protected]>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]>