GTK ui dialogs now have deluge's icon set.

This commit is contained in:
Pedro Algarvio 2011-05-28 18:59:04 +01:00
parent 67b5cde128
commit dc514d308c

View File

@ -36,6 +36,7 @@ import gtk
from twisted.internet import defer
from deluge.ui.gtkui import common
import deluge.component as component
@ -58,6 +59,8 @@ class BaseDialog(gtk.Dialog):
flags=gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT | gtk.DIALOG_NO_SEPARATOR,
buttons=buttons)
self.set_icon(common.get_deluge_icon())
self.connect("delete-event", self._on_delete_event)
self.connect("response", self._on_response)