GTK UI. Center the custom speed dialog on parent(statusbar).

This commit is contained in:
Pedro Algarvio 2011-06-06 17:45:51 +01:00
parent 4420aae092
commit 221dea1f1a
2 changed files with 2 additions and 5 deletions

View File

@ -156,6 +156,7 @@ def show_other_dialog(header, type_str, image_stockid=None, image_filename=None,
)
dialog = glade.get_widget("other_dialog")
dialog.set_transient_for(component.get("MainWindow").window)
dialog.set_position(gtk.WIN_POS_CENTER_ON_PARENT)
dialog.set_title("")
glade.get_widget("label_header").set_markup("<b>" + header + "</b>")
glade.get_widget("label_type").set_text(type_str)

View File

@ -273,11 +273,7 @@ class StatusBar(component.Component):
def send_status_request(self):
# Sends an async request for data from the core
client.core.get_num_connections().addCallback(self._on_get_num_connections)
keys = [
"upload_rate",
"download_rate",
"payload_upload_rate",
"payload_download_rate"]
keys = ["upload_rate", "download_rate", "payload_upload_rate", "payload_download_rate"]
if self.dht_status:
keys.append("dht_nodes")