File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
composite_template/ex_application_window
custom_buildable/custom_buildable
gif_paintable/gif_paintable_window
video_player/video_player_window Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
mod imp;
2
2
3
- use gtk:: { gio, glib, subclass:: prelude:: * } ;
3
+ use gtk:: { gio, glib, prelude :: * , subclass:: prelude:: * } ;
4
4
5
5
glib:: wrapper! {
6
6
pub struct ExApplicationWindow ( ObjectSubclass <imp:: ExApplicationWindow >)
@@ -9,7 +9,7 @@ glib::wrapper! {
9
9
}
10
10
11
11
impl ExApplicationWindow {
12
- pub fn new < P : glib :: IsA < gtk:: Application > > ( app : & P ) -> Self {
12
+ pub fn new < P : IsA < gtk:: Application > > ( app : & P ) -> Self {
13
13
glib:: Object :: builder ( ) . property ( "application" , app) . build ( )
14
14
}
15
15
Original file line number Diff line number Diff line change @@ -9,13 +9,13 @@ glib::wrapper! {
9
9
}
10
10
11
11
impl CustomBuildable {
12
- pub fn add_suffix < T : glib :: IsA < gtk:: Widget > > ( & self , widget : & T ) {
12
+ pub fn add_suffix < T : IsA < gtk:: Widget > > ( & self , widget : & T ) {
13
13
let imp = self . imp ( ) ;
14
14
imp. suffixes . append ( widget) ;
15
15
imp. suffixes . set_visible ( true ) ;
16
16
}
17
17
18
- pub fn add_prefix < T : glib :: IsA < gtk:: Widget > > ( & self , widget : & T ) {
18
+ pub fn add_prefix < T : IsA < gtk:: Widget > > ( & self , widget : & T ) {
19
19
let imp = self . imp ( ) ;
20
20
imp. prefixes . append ( widget) ;
21
21
imp. prefixes . set_visible ( true ) ;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ glib::wrapper! {
11
11
}
12
12
13
13
impl GifPaintableWindow {
14
- pub fn new < P : glib :: IsA < gtk:: Application > > ( app : & P ) -> Self {
14
+ pub fn new < P : IsA < gtk:: Application > > ( app : & P ) -> Self {
15
15
glib:: Object :: builder ( ) . property ( "application" , app) . build ( )
16
16
}
17
17
Original file line number Diff line number Diff line change 1
1
mod imp;
2
2
3
- use gtk:: { gio, glib, subclass:: prelude:: * } ;
3
+ use gtk:: { gio, glib, prelude :: * , subclass:: prelude:: * } ;
4
4
5
5
glib:: wrapper! {
6
6
pub struct VideoPlayerWindow ( ObjectSubclass <imp:: VideoPlayerWindow >)
@@ -9,7 +9,7 @@ glib::wrapper! {
9
9
}
10
10
11
11
impl VideoPlayerWindow {
12
- pub fn new < P : glib :: IsA < gtk:: Application > > ( app : & P ) -> Self {
12
+ pub fn new < P : IsA < gtk:: Application > > ( app : & P ) -> Self {
13
13
glib:: Object :: builder ( ) . property ( "application" , app) . build ( )
14
14
}
15
15
You can’t perform that action at this time.
0 commit comments