mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
add tooltips
This commit is contained in:
parent
f3a4727a27
commit
5723d753c3
2 changed files with 6 additions and 2 deletions
|
|
@ -6,11 +6,13 @@ pub trait Mime {
|
|||
impl Mime for gtk::Entry {
|
||||
fn mime(text: &str) -> Self {
|
||||
use gtk::prelude::EditableExt;
|
||||
const TEXT: &str = "Content type (MIME)";
|
||||
|
||||
let mime = gtk::Entry::builder()
|
||||
.margin_bottom(8)
|
||||
.placeholder_text("Content type (MIME)")
|
||||
.placeholder_text(TEXT)
|
||||
.text(text)
|
||||
//.tooltip_text(TEXT)
|
||||
.build();
|
||||
|
||||
mime.connect_changed(|this| {
|
||||
|
|
|
|||
|
|
@ -6,9 +6,11 @@ pub trait Token {
|
|||
|
||||
impl Token for Entry {
|
||||
fn token(text: &str) -> Self {
|
||||
const TEXT: &str = "Token";
|
||||
Entry::builder()
|
||||
.placeholder_text("Token")
|
||||
.placeholder_text(TEXT)
|
||||
.text(text)
|
||||
//.tooltip_text(TEXT)
|
||||
.build()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue