This repository was archived by the owner on Mar 4, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +6
-8
lines changed
basic_subclass/simple_application Expand file tree Collapse file tree 5 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 1
1
mod imp;
2
2
3
- use gio:: ApplicationFlags ;
4
3
use gtk:: { gio, glib} ;
5
4
6
5
glib:: wrapper! {
@@ -12,8 +11,7 @@ impl SimpleApplication {
12
11
#[ allow( clippy:: new_without_default) ]
13
12
pub fn new ( ) -> Self {
14
13
glib:: Object :: builder ( )
15
- . property ( "application-id" , & "org.gtk-rs.SimpleApplication" )
16
- . property ( "flags" , & ApplicationFlags :: empty ( ) )
14
+ . property ( "application-id" , "org.gtk-rs.SimpleApplication" )
17
15
. build ( )
18
16
}
19
17
}
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ glib::wrapper! {
19
19
impl RowData {
20
20
pub fn new ( name : & str , count : u32 ) -> RowData {
21
21
glib:: Object :: builder ( )
22
- . property ( "name" , & name)
23
- . property ( "count" , & count)
22
+ . property ( "name" , name)
23
+ . property ( "count" , count)
24
24
. build ( )
25
25
}
26
26
}
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ impl<O: IsA<Image>> ImageExtManual for O {
29
29
30
30
fn set_icon_size ( & self , icon_size : IconSize ) {
31
31
self . as_ref ( )
32
- . set_property ( "icon-size" , & icon_size. into_glib ( ) ) ;
32
+ . set_property ( "icon-size" , icon_size. into_glib ( ) ) ;
33
33
}
34
34
35
35
fn connect_icon_size_notify < F : Fn ( & Self ) + ' static > ( & self , f : F ) -> SignalHandlerId {
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ impl RadioToolButton {
28
28
}
29
29
30
30
pub fn join_group ( & self , group : Option < & RadioToolButton > ) {
31
- self . set_property ( "group" , & group) ;
31
+ self . set_property ( "group" , group) ;
32
32
}
33
33
}
34
34
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ impl<O: IsA<StackSwitcher>> StackSwitcherExtManual for O {
35
35
36
36
fn set_icon_size ( & self , icon_size : IconSize ) {
37
37
self . as_ref ( )
38
- . set_property ( "icon-size" , & icon_size. into_glib ( ) ) ;
38
+ . set_property ( "icon-size" , icon_size. into_glib ( ) ) ;
39
39
}
40
40
41
41
fn connect_icon_size_notify < F : Fn ( & Self ) + ' static > ( & self , f : F ) -> SignalHandlerId {
You can’t perform that action at this time.
0 commit comments