window: Limit HeaderBar to min width as nat width

Before we were doing the same with just the title in the HeaderBar. This
gave problems with correctly measuring for ADW_CENTERING_POLICY_LOOSE.
This commit is contained in:
Sophie Herold 2024-01-09 15:56:23 +01:00
parent 7ebc902838
commit 446ae5063a
7 changed files with 93 additions and 109 deletions

View file

@ -29,6 +29,7 @@ use crate::{about, config};
mod imp {
use super::*;
use crate::widgets::LpShyBin;
// The basic struct that holds our
// state and widgets
@ -73,6 +74,11 @@ mod imp {
// Overrides GApplication vfuncs
impl ApplicationImpl for LpApplication {
fn startup(&self) {
self.parent_startup();
LpShyBin::ensure_type();
}
fn activate(&self) {
let application = self.obj();
let window = LpWindow::new(&*application);