image_view: Bind properties in UI file

This commit is contained in:
Christopher Davis 2021-01-23 23:57:55 -08:00
parent f621fedbba
commit b2a15242be
2 changed files with 1 additions and 6 deletions

View file

@ -130,12 +130,6 @@ mod imp {
fn constructed(&self, obj: &Self::Type) {
self.parent_constructed(obj);
obj.bind_property("header-visible", &*self.headerbar, "visible")
.flags(glib::BindingFlags::BIDIRECTIONAL)
.flags(glib::BindingFlags::SYNC_CREATE)
.build()
.unwrap();
self.click_gesture
.connect_pressed(clone!(@weak obj => move |_, _, x, y| {
obj.show_popover_at(x, y);