@@ -7,15 +7,15 @@ use glib_macros::Properties;
77use gtk:: gdk;
88use gtk:: gio;
99use gtk:: glib;
10+ use gtk:: prelude:: * ;
1011use gtk:: subclass:: prelude:: * ;
12+ use gtk:: CompositeTemplate ;
13+ use gtk:: TemplateChild ;
1114use log:: { error, info, warn} ;
1215use std:: cell:: RefCell ;
1316use std:: hash:: { Hash , Hasher } ;
1417use std:: marker:: PhantomData ;
1518use url:: Url ;
16- use gtk:: prelude:: * ;
17- use gtk:: CompositeTemplate ;
18- use gtk:: TemplateChild ;
1919
2020use crate :: common:: { bookmarks_url, glibctx, BOOKMARK_FILE_PATH } ;
2121use crate :: config;
@@ -96,11 +96,9 @@ pub mod imp {
9696 Self :: bind_template ( klass) ;
9797 }
9898
99-
10099 fn instance_init ( obj : & glib:: subclass:: InitializingObject < Self > ) {
101100 obj. init_template ( ) ;
102101 }
103-
104102 }
105103
106104 impl ObjectImpl for Window {
@@ -146,12 +144,16 @@ impl Window {
146144 this
147145 }
148146 fn bind_signals ( & self ) {
149- self . imp ( ) . tab_view . connect_selected_page_notify ( clone ! ( @weak self as this => @default -panic, move |tab_view| {
150- this. page_switched( tab_view) ;
151- } ) ) ;
152- self . imp ( ) . squeezer . connect_visible_child_notify ( clone ! ( @weak self as this => @default -panic, move |_sq| {
153- this. squeezer_changed( ) ;
154- } ) ) ;
147+ self . imp ( ) . tab_view . connect_selected_page_notify (
148+ clone ! ( @weak self as this => @default -panic, move |tab_view| {
149+ this. page_switched( tab_view) ;
150+ } ) ,
151+ ) ;
152+ self . imp ( ) . squeezer . connect_visible_child_notify (
153+ clone ! ( @weak self as this => @default -panic, move |_sq| {
154+ this. squeezer_changed( ) ;
155+ } ) ,
156+ ) ;
155157 }
156158 fn setup_actions_signals ( & self ) {
157159 let imp = self . imp ( ) ;
0 commit comments