From 03fac376a13843e6a72a70e699dc43684fd7fa14 Mon Sep 17 00:00:00 2001 From: Michael Wozniak Date: Sun, 10 Nov 2013 21:36:54 -0500 Subject: [PATCH] prioritize button to match freeze button in gtk gui --- gui/gtk.py | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/gui/gtk.py b/gui/gtk.py index 79a54a3..8e10348 100644 --- a/gui/gtk.py +++ b/gui/gtk.py @@ -1080,6 +1080,20 @@ class ElectrumWindow: button.show() hbox.pack_start(button,False) + button = gtk.Button("Prioritize") + def prioritize_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.prioritized_addresses: + wallet.unprioritize(address) + else: + wallet.prioritize(address) + self.update_receiving_tab() + button.connect("clicked", prioritize_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): -- 1.7.1