add hostname entry row with clipboard button

This commit is contained in:
Ferdinand Schober
2024-04-13 00:14:44 +02:00
parent 81f65dcd3d
commit 5b76c3bcda
8 changed files with 98 additions and 7 deletions

View File

@@ -14,6 +14,8 @@ pub struct ClientRow {
#[template_child]
pub enable_switch: TemplateChild<gtk::Switch>,
#[template_child]
pub dns_button: TemplateChild<gtk::Button>,
#[template_child]
pub hostname: TemplateChild<gtk::Entry>,
#[template_child]
pub port: TemplateChild<gtk::Entry>,
@@ -76,6 +78,11 @@ impl ClientRow {
true // dont run default handler
}
#[template_callback]
fn handle_request_dns(&self) -> bool {
false
}
#[template_callback]
fn handle_client_delete(&self, _button: &Button) {
log::debug!("delete button pressed -> requesting delete");