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/tasks_group.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/ui/tasks_group.rs') diff --git a/src/ui/tasks_group.rs b/src/ui/tasks_group.rs index f53b13f..4ba93d2 100644 --- a/src/ui/tasks_group.rs +++ b/src/ui/tasks_group.rs @@ -15,7 +15,6 @@ // along with this program. If not, see . use adw::subclass::prelude::*; -use gtk::subclass::prelude::*; use gtk::{glib, prelude::*}; use crate::database; @@ -67,11 +66,11 @@ glib::wrapper! { impl FurTasksGroup { pub fn new() -> Self { - glib::Object::new(&[]).expect("Failed to create `FurTaskGroup`.") + glib::Object::new::() } pub fn add_task_model(&self, tasks: Vec) { - let imp = imp::FurTasksGroup::from_instance(&self); + let imp = imp::FurTasksGroup::from_obj(&self); let listbox = gtk::ListBox::new(); listbox.add_css_class("content"); @@ -115,7 +114,7 @@ impl FurTasksGroup { } pub fn get_total_day_time(&self) -> i64 { - let imp = imp::FurTasksGroup::from_instance(&self); + let imp = imp::FurTasksGroup::from_obj(&self); *imp.day_total_time.borrow() } } -- cgit 1.4.1