File tree Expand file tree Collapse file tree 3 files changed +10
-11
lines changed Expand file tree Collapse file tree 3 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,9 @@ use glib::translate::*;
7
7
#[ cfg_attr( docsrs, doc( cfg( feature = "wayland_crate" ) ) ) ]
8
8
use wayland_client:: { backend:: ObjectId , protocol:: wl_surface:: WlSurface , Proxy } ;
9
9
10
- use crate :: { ffi, prelude:: * , WaylandSurface } ;
10
+ #[ cfg( feature = "wayland_crate" ) ]
11
+ use crate :: ffi;
12
+ use crate :: { prelude:: * , WaylandSurface } ;
11
13
12
14
mod sealed {
13
15
pub trait Sealed { }
Original file line number Diff line number Diff line change @@ -256,12 +256,10 @@ pub fn composite_template_derive(input: TokenStream) -> TokenStream {
256
256
/// exposed to the template scope. It can take the following options:
257
257
/// - `name` renames the callback. Defaults to the function name if not defined.
258
258
/// - `function` ignores the first value when calling the callback and disallows
259
- /// `self`. Useful
260
- /// for callbacks called from `<closure>` tags.
259
+ /// `self`. Useful for callbacks called from `<closure>` tags.
261
260
/// - `function = false` reverts the effects of `functions` used on the `impl`,
262
- /// so the callback
263
- /// gets the first value and can take `self` again. Mainly useful for callbacks
264
- /// that are invoked with `swapped="true"`.
261
+ /// so the callback gets the first value and can take `self` again. Mainly useful
262
+ /// for callbacks that are invoked with `swapped="true"`.
265
263
///
266
264
/// The `rest` attribute can be placed on the last argument of a template
267
265
/// callback. This attribute must be used on an argument of type
Original file line number Diff line number Diff line change @@ -119,16 +119,15 @@ The [`gtk`](mod@crate) and [`gdk`][`mod@gdk`] crates have some run-time safety a
119
119
checks.
120
120
121
121
- Any constructor or free function will panic if called before [ ` init ` ] [ `fn@init` ] or on
122
- a non-main thread.
122
+ a non-main thread.
123
123
124
- - Any [ ` &str ` ] or [ ` &Path ` ] ( std::path::Path ) parameter with an interior null (` \0 ` ) character will
125
- cause a panic.
124
+ - Any [ ` &str ` ] or [ ` &Path ` ] ( std::path::Path ) parameter with an interior null (` \0 ` ) character will cause a panic.
126
125
127
126
- Some functions will panic if supplied out-of-range integer parameters. All
128
- such cases will be documented individually but they are not yet.
127
+ such cases will be documented individually but they are not yet.
129
128
130
129
- A panic in a closure that handles signals or in any other closure passed
131
- to a [ ` gtk ` ] ( mod@crate ) function will abort the process.
130
+ to a [ ` gtk ` ] ( mod@crate ) function will abort the process.
132
131
133
132
## Features
134
133
You can’t perform that action at this time.
0 commit comments