Skip to content

Commit

Permalink
wallet: remove default clipboard copy
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Jul 21, 2023
1 parent ab801c7 commit e90703b
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/view/wallet/widget.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,6 @@ impl Widgets {
menu.popup(None::<&Menu>, None::<&MenuItem>, |_, _, _| false, 0, 0);
true
});
self.history_list.connect_row_activated(|me, path, _| {
let model = me.model().unwrap();
let iter = model.iter(path).unwrap();
let val: String = model.value(&iter, 1).get().unwrap();
gtk::Clipboard::get(&gdk::SELECTION_CLIPBOARD).set_text(&val);
});

let menu = self.coin_menu.clone();
self.utxo_list
Expand All @@ -204,12 +198,6 @@ impl Widgets {
menu.popup(None::<&Menu>, None::<&MenuItem>, |_, _, _| false, 0, 0);
true
});
self.utxo_list.connect_row_activated(|me, path, _| {
let model = me.model().unwrap();
let iter = model.iter(path).unwrap();
let val: String = model.value(&iter, 1).get().unwrap();
gtk::Clipboard::get(&gdk::SELECTION_CLIPBOARD).set_text(&val);
});

let menu = self.address_menu.clone();
self.address_list
Expand All @@ -225,12 +213,6 @@ impl Widgets {
menu.popup(None::<&Menu>, None::<&MenuItem>, |_, _, _| false, 0, 0);
true
});
self.address_list.connect_row_activated(|me, path, _| {
let model = me.model().unwrap();
let iter = model.iter(path).unwrap();
let val: String = model.value(&iter, 0).get().unwrap();
gtk::Clipboard::get(&gdk::SELECTION_CLIPBOARD).set_text(&val);
});

let list = self.history_list.clone();
self.hist_copy_txid_mi.connect_activate(move |_| {
Expand Down

0 comments on commit e90703b

Please sign in to comment.