Skip to content

Commit 61eda4e

Browse files
committed
fmt
1 parent fd72295 commit 61eda4e

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

src/window.rs

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ use glib_macros::Properties;
77
use gtk::gdk;
88
use gtk::gio;
99
use gtk::glib;
10+
use gtk::prelude::*;
1011
use gtk::subclass::prelude::*;
12+
use gtk::CompositeTemplate;
13+
use gtk::TemplateChild;
1114
use log::{error, info, warn};
1215
use std::cell::RefCell;
1316
use std::hash::{Hash, Hasher};
1417
use std::marker::PhantomData;
1518
use url::Url;
16-
use gtk::prelude::*;
17-
use gtk::CompositeTemplate;
18-
use gtk::TemplateChild;
1919

2020
use crate::common::{bookmarks_url, glibctx, BOOKMARK_FILE_PATH};
2121
use 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

Comments
 (0)