From 7e5cad5452d4909aa7fbbc2f69190fa4a3fd31c5 Mon Sep 17 00:00:00 2001 From: Michael Wozniak Date: Sun, 10 Nov 2013 16:36:52 -0500 Subject: [PATCH] Freeze button in GTK receive tab. --- gui/gtk.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/gui/gtk.py b/gui/gtk.py index e7a3a0f53..fd0dd512a 100644 --- a/gui/gtk.py +++ b/gui/gtk.py @@ -1060,6 +1060,21 @@ class ElectrumWindow: button.show() hbox.pack_start(button,False) + if is_recv: + button = gtk.Button("Freeze") + def freeze_address(w, treeview, liststore, wallet): + path, col = treeview.get_cursor() + if path: + address = liststore.get_value( liststore.get_iter(path), 0) + if address in wallet.frozen_addresses: + wallet.unfreeze(address) + else: + wallet.freeze(address) + self.update_receiving_tab() + button.connect("clicked", freeze_address, treeview, liststore, self.wallet) + button.show() + hbox.pack_start(button,False) + if not is_recv: button = gtk.Button("Pay to") def payto(w, treeview, liststore):