mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-29 20:44:25 +00:00
remove entry hexpand
This commit is contained in:
parent
7e70bfd87a
commit
a9e2e4431f
@ -33,6 +33,7 @@ impl Search {
|
|||||||
|
|
||||||
// Init main container
|
// Init main container
|
||||||
let g_box = Box::builder()
|
let g_box = Box::builder()
|
||||||
|
.homogeneous(true)
|
||||||
.orientation(Orientation::Horizontal)
|
.orientation(Orientation::Horizontal)
|
||||||
.valign(Align::Center)
|
.valign(Align::Center)
|
||||||
.vexpand(false)
|
.vexpand(false)
|
||||||
|
@ -4,11 +4,12 @@ const MARGIN: i32 = 6;
|
|||||||
|
|
||||||
pub fn new() -> Button {
|
pub fn new() -> Button {
|
||||||
Button::builder()
|
Button::builder()
|
||||||
|
.halign(Align::End)
|
||||||
.icon_name("window-close-symbolic")
|
.icon_name("window-close-symbolic")
|
||||||
.margin_end(MARGIN)
|
.margin_end(MARGIN)
|
||||||
.margin_start(MARGIN)
|
.margin_start(MARGIN)
|
||||||
|
.tooltip_text("Close find bar")
|
||||||
.valign(Align::Center)
|
.valign(Align::Center)
|
||||||
.vexpand(false)
|
.vexpand(false)
|
||||||
.tooltip_text("Close find bar")
|
|
||||||
.build()
|
.build()
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,7 @@ use gtk::{
|
|||||||
};
|
};
|
||||||
|
|
||||||
const MARGIN: i32 = 6;
|
const MARGIN: i32 = 6;
|
||||||
|
const WIDTH_REQUEST: i32 = 280;
|
||||||
|
|
||||||
pub struct Input {
|
pub struct Input {
|
||||||
pub entry: Entry,
|
pub entry: Entry,
|
||||||
@ -16,7 +17,6 @@ impl Input {
|
|||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
// Init widget
|
// Init widget
|
||||||
let entry = Entry::builder()
|
let entry = Entry::builder()
|
||||||
.hexpand(true)
|
|
||||||
.margin_bottom(MARGIN)
|
.margin_bottom(MARGIN)
|
||||||
.margin_end(MARGIN)
|
.margin_end(MARGIN)
|
||||||
.margin_start(MARGIN)
|
.margin_start(MARGIN)
|
||||||
@ -27,6 +27,7 @@ impl Input {
|
|||||||
.primary_icon_sensitive(false)
|
.primary_icon_sensitive(false)
|
||||||
.valign(Align::Center)
|
.valign(Align::Center)
|
||||||
.vexpand(false)
|
.vexpand(false)
|
||||||
|
.width_request(WIDTH_REQUEST) // | .hexpand(true)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
// Connect events
|
// Connect events
|
||||||
|
Loading…
x
Reference in New Issue
Block a user