Skip to content
Snippets Groups Projects
Commit 0c9ceace authored by dkirov's avatar dkirov
Browse files

nonmodla FT request dialog

parent 481c0856
No related branches found
No related tags found
No related merge requests found
......@@ -666,6 +666,15 @@ class ConfirmationDialog(HigDialog):
gtk.MESSAGE_QUESTION, gtk.BUTTONS_OK_CANCEL, pritext, sectext,
on_response_ok, on_response_cancel)
self.popup()
class NonModalConfirmationDialog(HigDialog):
'''HIG compliant non modal confirmation dialog.'''
def __init__(self, pritext, sectext='', on_response_ok = None,
on_response_cancel = None):
HigDialog.__init__(self, None,
gtk.MESSAGE_QUESTION, gtk.BUTTONS_OK_CANCEL, pritext, sectext,
on_response_ok, on_response_cancel)
self.set_modal(False)
class WarningDialog(HigDialog):
def __init__(self, pritext, sectext=''):
......
......@@ -374,10 +374,10 @@ _('Connection with peer cannot be established.'))
self.dialog.destroy()
gajim.connections[account].send_file_rejection(file_props)
self.dialog = dialogs.ConfirmationDialog(prim_text, sec_text,
self.dialog = dialogs.NonModalConfirmationDialog(prim_text, sec_text,
on_response_ok = (on_response_ok, account, contact, file_props),
on_response_cancel = (on_response_cancel, account, file_props))
self.dialog.run()
self.dialog.popup()
def set_images(self):
''' create pixbufs for status images in transfer rows'''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment