imagePage: Move popover out of LpImage
It cause 'not measured' errors and we have enough things to handle in LpImage already. Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/146>
This commit is contained in:
parent
f33c4bd470
commit
0e24f347e6
3 changed files with 44 additions and 44 deletions
|
|
@ -46,7 +46,7 @@ mod imp {
|
|||
#[template_child]
|
||||
pub(super) error_page: TemplateChild<adw::StatusPage>,
|
||||
#[template_child]
|
||||
pub(super) scrolled_window: TemplateChild<gtk::ScrolledWindow>,
|
||||
pub(super) image_stack_page: TemplateChild<gtk::Widget>,
|
||||
#[template_child]
|
||||
pub(super) image: TemplateChild<LpImage>,
|
||||
#[template_child]
|
||||
|
|
@ -115,7 +115,7 @@ mod imp {
|
|||
if obj.image().is_loaded() {
|
||||
obj.imp()
|
||||
.stack
|
||||
.set_visible_child(&*obj.imp().scrolled_window);
|
||||
.set_visible_child(&*obj.imp().image_stack_page);
|
||||
}
|
||||
}),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue