upgrade gtkrs

This commit is contained in:
Ashley Wulber 2022-01-21 16:38:58 -05:00
parent 6b53c2cded
commit 57263e77c7
12 changed files with 159 additions and 254 deletions

View file

@ -43,7 +43,7 @@ impl ObjectImpl for TimeButtonInner {
gtk4::Label::new(None);
..set_attributes(Some(&cascade! {
pango::AttrList::new();
..insert(pango::Attribute::new_weight(pango::Weight::Bold));
..insert(pango::AttrInt::new_weight(pango::Weight::Bold));
}));
};
@ -120,7 +120,7 @@ impl TimeButton {
}
fn opening(&self) {
let date = glib::DateTime::new_now(&glib::TimeZone::new_local()).unwrap();
let date = glib::DateTime::now(&glib::TimeZone::local()).unwrap();
self.inner().calendar.clear_marks();
self.inner().calendar.select_day(&date);
}