|
@ -941,7 +941,7 @@ class ElectrumWindow: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def create_recv_tab(self): |
|
|
def create_recv_tab(self): |
|
|
self.recv_list = gtk.ListStore(str, str, str) |
|
|
self.recv_list = gtk.ListStore(str, str, str, str) |
|
|
self.add_tab( self.make_address_list(True), 'Receive') |
|
|
self.add_tab( self.make_address_list(True), 'Receive') |
|
|
self.update_receiving_tab() |
|
|
self.update_receiving_tab() |
|
|
|
|
|
|
|
@ -987,6 +987,13 @@ class ElectrumWindow: |
|
|
tvcolumn.pack_start(cell, True) |
|
|
tvcolumn.pack_start(cell, True) |
|
|
tvcolumn.add_attribute(cell, 'text', 2) |
|
|
tvcolumn.add_attribute(cell, 'text', 2) |
|
|
|
|
|
|
|
|
|
|
|
if is_recv: |
|
|
|
|
|
tvcolumn = gtk.TreeViewColumn('Type') |
|
|
|
|
|
treeview.append_column(tvcolumn) |
|
|
|
|
|
cell = gtk.CellRendererText() |
|
|
|
|
|
tvcolumn.pack_start(cell, True) |
|
|
|
|
|
tvcolumn.add_attribute(cell, 'text', 3) |
|
|
|
|
|
|
|
|
scroll = gtk.ScrolledWindow() |
|
|
scroll = gtk.ScrolledWindow() |
|
|
scroll.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC) |
|
|
scroll.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC) |
|
|
scroll.add(treeview) |
|
|
scroll.add(treeview) |
|
@ -1100,12 +1107,14 @@ class ElectrumWindow: |
|
|
def update_receiving_tab(self): |
|
|
def update_receiving_tab(self): |
|
|
self.recv_list.clear() |
|
|
self.recv_list.clear() |
|
|
for address in self.wallet.addresses(True): |
|
|
for address in self.wallet.addresses(True): |
|
|
if self.wallet.is_change(address):continue |
|
|
Type = "R" |
|
|
|
|
|
if self.wallet.is_change(address): Type = "C" |
|
|
|
|
|
if address in self.wallet.imported_keys.keys(): Type = "I" |
|
|
label = self.wallet.labels.get(address) |
|
|
label = self.wallet.labels.get(address) |
|
|
h = self.wallet.history.get(address,[]) |
|
|
h = self.wallet.history.get(address,[]) |
|
|
n = len(h) |
|
|
n = len(h) |
|
|
tx = "None" if n==0 else "%d"%n |
|
|
tx = "0" if n==0 else "%d"%n |
|
|
self.recv_list.append((address, label, tx )) |
|
|
self.recv_list.append((address, label, tx, Type )) |
|
|
|
|
|
|
|
|
def update_sending_tab(self): |
|
|
def update_sending_tab(self): |
|
|
# detect addresses that are not mine in history, add them here... |
|
|
# detect addresses that are not mine in history, add them here... |
|
|