GTK UI. Center the custom speed dialog on parent(statusbar).
This commit is contained in:
parent
4420aae092
commit
221dea1f1a
|
@ -156,6 +156,7 @@ def show_other_dialog(header, type_str, image_stockid=None, image_filename=None,
|
||||||
)
|
)
|
||||||
dialog = glade.get_widget("other_dialog")
|
dialog = glade.get_widget("other_dialog")
|
||||||
dialog.set_transient_for(component.get("MainWindow").window)
|
dialog.set_transient_for(component.get("MainWindow").window)
|
||||||
|
dialog.set_position(gtk.WIN_POS_CENTER_ON_PARENT)
|
||||||
dialog.set_title("")
|
dialog.set_title("")
|
||||||
glade.get_widget("label_header").set_markup("<b>" + header + "</b>")
|
glade.get_widget("label_header").set_markup("<b>" + header + "</b>")
|
||||||
glade.get_widget("label_type").set_text(type_str)
|
glade.get_widget("label_type").set_text(type_str)
|
||||||
|
|
|
@ -273,11 +273,7 @@ class StatusBar(component.Component):
|
||||||
def send_status_request(self):
|
def send_status_request(self):
|
||||||
# Sends an async request for data from the core
|
# Sends an async request for data from the core
|
||||||
client.core.get_num_connections().addCallback(self._on_get_num_connections)
|
client.core.get_num_connections().addCallback(self._on_get_num_connections)
|
||||||
keys = [
|
keys = ["upload_rate", "download_rate", "payload_upload_rate", "payload_download_rate"]
|
||||||
"upload_rate",
|
|
||||||
"download_rate",
|
|
||||||
"payload_upload_rate",
|
|
||||||
"payload_download_rate"]
|
|
||||||
|
|
||||||
if self.dht_status:
|
if self.dht_status:
|
||||||
keys.append("dht_nodes")
|
keys.append("dht_nodes")
|
||||||
|
|
Loading…
Reference in New Issue