mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
draft progress fraction feature
This commit is contained in:
parent
80afcf57ad
commit
4e0ec422ca
1 changed files with 5 additions and 2 deletions
|
|
@ -14,12 +14,13 @@ impl Request {
|
||||||
let widget = Entry::builder()
|
let widget = Entry::builder()
|
||||||
.placeholder_text("URL or search term...")
|
.placeholder_text("URL or search term...")
|
||||||
.hexpand(true)
|
.hexpand(true)
|
||||||
|
.progress_fraction(0.0)
|
||||||
.progress_pulse_step(0.1)
|
.progress_pulse_step(0.1)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
// Connect events
|
// Connect events
|
||||||
widget.connect_changed(|entry| {
|
widget.connect_changed(|entry| {
|
||||||
let _ = entry.activate_action("win.update", None); // @TODO
|
let _ = entry.activate_action("win.update", None);
|
||||||
});
|
});
|
||||||
|
|
||||||
widget.connect_activate(|entry| {
|
widget.connect_activate(|entry| {
|
||||||
|
|
@ -31,7 +32,9 @@ impl Request {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Actions
|
// Actions
|
||||||
pub fn update(&self) {}
|
pub fn update(&self) {
|
||||||
|
// @TODO animate progress fraction
|
||||||
|
}
|
||||||
|
|
||||||
// Getters
|
// Getters
|
||||||
pub fn widget(&self) -> &Entry {
|
pub fn widget(&self) -> &Entry {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue