mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 01:00:02 +00:00
remove entry hexpand
This commit is contained in:
parent
7e70bfd87a
commit
a9e2e4431f
@ -33,6 +33,7 @@ impl Search {
|
||||
|
||||
// Init main container
|
||||
let g_box = Box::builder()
|
||||
.homogeneous(true)
|
||||
.orientation(Orientation::Horizontal)
|
||||
.valign(Align::Center)
|
||||
.vexpand(false)
|
||||
|
@ -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()
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user