Sebastian Dröge
0bc43ed053
Make gtk dependency optional in the examples
2017-08-17 18:07:48 +03:00
Sebastian Dröge
f751afc0fb
Add prelude modules to all cratest that only re-export the traits
...
And use those in the examples instead of blanket * imports
2017-08-17 18:02:25 +03:00
Sebastian Dröge
5cd94a279e
Minor simplification in gtksink example
2017-08-07 18:59:44 +03:00
Sebastian Dröge
8accac8d75
Clean up gtksink example imports a bit
2017-08-07 14:18:24 +03:00
Sebastian Dröge
be6f03a1af
Use SendCell from the newly created crate
2017-08-04 22:57:12 +03:00
Sebastian Dröge
43a014b6fa
Add into_inner() / try_into_inner() functions for SendCell
2017-08-04 20:23:51 +03:00
Sebastian Dröge
5676aeb3ef
Add a borrow() function to SendCell
...
To allow doing the thread check only once for performance reasons.
2017-08-04 19:56:39 +03:00
Sebastian Dröge
c23498039d
Clean up SendCell implementation and implement some more traits
...
For moving it elsewhere later as public API.
2017-08-04 18:31:54 +03:00
Sebastian Dröge
0dcf9c2be7
Move gtksink example to GtkApplication
...
And have an example for using GTK objects from closures that require Send
2017-08-04 17:42:08 +03:00
Sebastian Dröge
e55c7d4088
Rename ObjectExt trait to GstObjectExt
...
This works around a bug in the compiler with multiple traits having the
same name, but being re-exported with a different one.
https://github.com/gtk-rs/glib/issues/211
2017-08-01 14:04:42 +01:00
Sebastian Dröge
03285a6311
Run everything through latest rustfmt-nightly
2017-07-31 12:16:42 +01:00
Sebastian Dröge
d0ac8b7fd3
Add gtksink example
2017-07-31 12:09:59 +01:00