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:
parent
7ebc902838
commit
446ae5063a
7 changed files with 93 additions and 109 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue