remove entry hexpand

This commit is contained in:
yggverse 2024-12-18 07:00:58 +02:00
parent 7e70bfd87a
commit a9e2e4431f
3 changed files with 5 additions and 2 deletions

View File

@ -33,6 +33,7 @@ impl Search {
// Init main container
let g_box = Box::builder()
.homogeneous(true)
.orientation(Orientation::Horizontal)
.valign(Align::Center)
.vexpand(false)

View File

@ -4,11 +4,12 @@ const MARGIN: i32 = 6;
pub fn new() -> Button {
Button::builder()
.halign(Align::End)
.icon_name("window-close-symbolic")
.margin_end(MARGIN)
.margin_start(MARGIN)
.tooltip_text("Close find bar")
.valign(Align::Center)
.vexpand(false)
.tooltip_text("Close find bar")
.build()
}

View File

@ -4,6 +4,7 @@ use gtk::{
};
const MARGIN: i32 = 6;
const WIDTH_REQUEST: i32 = 280;
pub struct Input {
pub entry: Entry,
@ -16,7 +17,6 @@ impl Input {
pub fn new() -> Self {
// Init widget
let entry = Entry::builder()
.hexpand(true)
.margin_bottom(MARGIN)
.margin_end(MARGIN)
.margin_start(MARGIN)
@ -27,6 +27,7 @@ impl Input {
.primary_icon_sensitive(false)
.valign(Align::Center)
.vexpand(false)
.width_request(WIDTH_REQUEST) // | .hexpand(true)
.build();
// Connect events