commit 89849c7d52ac11ac83070bcecd9ab233e444fafd
parent a6d1eef54959479441effc7ad2ed4c6705ed3b74
Author: ThomasV <thomasv@gitorious>
Date: Wed, 7 May 2014 17:35:38 +0200
update parse_url in gtk gui
Diffstat:
1 file changed, 3 insertions(+), 9 deletions(-)
diff --git a/gui/gtk.py b/gui/gtk.py
@@ -33,7 +33,7 @@ APP_NAME = "Electrum"
import platform
MONOSPACE_FONT = 'Lucida Console' if platform.system() == 'Windows' else 'monospace'
-from electrum.util import format_satoshis
+from electrum.util import format_satoshis, parse_url
from electrum.network import DEFAULT_SERVERS
from electrum.bitcoin import MIN_RELAY_TX_FEE
@@ -730,18 +730,12 @@ class ElectrumWindow:
entry.modify_base(Gtk.StateType.NORMAL, Gdk.color_parse("#ffffff"))
def set_url(self, url):
- payto, amount, label, message, signature, identity, url = self.wallet.parse_url(url, self.show_message, self.question)
+ payto, amount, label, message, payment_request, url = parse_url(url)
self.notebook.set_current_page(1)
self.payto_entry.set_text(payto)
self.message_entry.set_text(message)
self.amount_entry.set_text(amount)
- if identity:
- self.set_frozen(self.payto_entry,True)
- self.set_frozen(self.amount_entry,True)
- self.set_frozen(self.message_entry,True)
- self.payto_sig_id.set_text( ' The bitcoin URI was signed by ' + identity )
- else:
- self.payto_sig.set_visible(False)
+ self.payto_sig.set_visible(False)
def create_about_tab(self):
from gi.repository import Pango