about summary refs log tree commit diff
path: root/src/ui/history_box.rs
diff options
context:
space:
mode:
authorRicky Kresslein <rk@lakoliu.com>2023-03-23 09:34:44 +0100
committerRicky Kresslein <rk@lakoliu.com>2023-03-23 09:34:44 +0100
commitdff62a9e31ff85305eb2d70b036ee25c90e4feeb (patch)
treef23dbd9fd581772a447b87daea9440cd76941624 /src/ui/history_box.rs
parent458d6b3f2934e72c5ed49b452730d2d9f4232812 (diff)
downloadFurtherance-dff62a9e31ff85305eb2d70b036ee25c90e4feeb.tar.zst
Use gtk-rs 0.6.4
Diffstat (limited to 'src/ui/history_box.rs')
-rw-r--r--src/ui/history_box.rs10
1 files changed, 5 insertions, 5 deletions
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 <https://www.gnu.org/licenses/>.
 
 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() {