add tooltips

This commit is contained in:
yggverse 2025-02-06 21:20:18 +02:00
parent f3a4727a27
commit 5723d753c3
2 changed files with 6 additions and 2 deletions

View file

@ -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| {

View file

@ -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()
}
}