From d7099a4d98744481e8f7ecce4e9233e66af1fd44 Mon Sep 17 00:00:00 2001 From: Ricky Kresslein Date: Wed, 8 Jun 2022 14:52:17 +0300 Subject: Fix formatting --- src/ui/history_box.rs | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'src/ui/history_box.rs') diff --git a/src/ui/history_box.rs b/src/ui/history_box.rs index 73ca077..9d2f59f 100755 --- a/src/ui/history_box.rs +++ b/src/ui/history_box.rs @@ -14,15 +14,15 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . +use glib::subclass; use gtk::prelude::*; use gtk::subclass::prelude::*; use gtk::{glib, CompositeTemplate}; -use glib::subclass; -use crate::ui::{FurtheranceWindow, FurTasksPage}; -use crate::FurtheranceApplication; -use crate::database; use crate::config; +use crate::database; +use crate::ui::{FurTasksPage, FurtheranceWindow}; +use crate::FurtheranceApplication; enum View { Loading, @@ -60,7 +60,6 @@ mod imp { fn instance_init(obj: &subclass::InitializingObject) { obj.init_template(); } - } impl ObjectImpl for FurHistoryBox { @@ -68,7 +67,6 @@ mod imp { obj.setup_widgets(); self.parent_constructed(obj); } - } impl WidgetImpl for FurHistoryBox {} impl BoxImpl for FurHistoryBox {} @@ -80,7 +78,6 @@ glib::wrapper! { @extends gtk::Widget, gtk::Box; } - impl FurHistoryBox { fn setup_widgets(&self) { self.set_view(View::Loading); @@ -97,9 +94,9 @@ impl FurHistoryBox { // Change "empty" page icon for development mode let imp = imp::FurHistoryBox::from_instance(self); if config::PROFILE == "development" { - imp.welcome_page.set_icon_name(Some("com.lakoliu.Furtherance.Devel")); + imp.welcome_page + .set_icon_name(Some("com.lakoliu.Furtherance.Devel")); } - } fn set_view(&self, view: View) { @@ -147,5 +144,4 @@ impl FurHistoryBox { let window = FurtheranceWindow::default(); window.set_height_request(390); } - } -- cgit 1.4.1