mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-05 14:31:29 +03:00
add hostname entry row with clipboard button
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user