From dff62a9e31ff85305eb2d70b036ee25c90e4feeb Mon Sep 17 00:00:00 2001 From: Ricky Kresslein Date: Thu, 23 Mar 2023 09:34:44 +0100 Subject: Use gtk-rs 0.6.4 --- src/ui/history_box.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/ui/history_box.rs') diff --git a/src/ui/history_box.rs b/src/ui/history_box.rs index b36808e..8590bd0 100644 --- a/src/ui/history_box.rs +++ b/src/ui/history_box.rs @@ -15,7 +15,6 @@ // along with this program. If not, see . use glib::subclass; -use gtk::prelude::*; use gtk::subclass::prelude::*; use gtk::{glib, CompositeTemplate}; @@ -60,9 +59,10 @@ mod imp { } impl ObjectImpl for FurHistoryBox { - fn constructed(&self, obj: &Self::Type) { + fn constructed(&self) { + let obj = self.obj(); obj.setup_widgets(); - self.parent_constructed(obj); + self.parent_constructed(); } } impl WidgetImpl for FurHistoryBox {} @@ -90,7 +90,7 @@ impl FurHistoryBox { } fn set_view(&self, view: View) { - let imp = imp::FurHistoryBox::from_instance(self); + let imp = imp::FurHistoryBox::from_obj(self); let app = FurtheranceApplication::default(); app.delete_enabled(false); app.export_csv_enabled(false); @@ -115,7 +115,7 @@ impl FurHistoryBox { } pub fn create_tasks_page(&self) { - let imp = imp::FurHistoryBox::from_instance(self); + let imp = imp::FurHistoryBox::from_obj(self); let window = FurtheranceWindow::default(); imp.tasks_page.clear_task_list(); let is_saved_task: bool = match database::check_for_tasks() { -- cgit 1.4.1