mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 15:08:40 +00:00
-
This commit is contained in:
parent
7d22ef4f28
commit
888afe8ccd
1 changed files with 10 additions and 1 deletions
|
@ -37,6 +37,15 @@ class StupidTray:
|
||||||
def set_tooltip(self, value):
|
def set_tooltip(self, value):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
# Show a popup message dialog
|
||||||
|
def show_popup_warning(window, message):
|
||||||
|
warner = gtk.MessageDialog(parent = window,
|
||||||
|
flags = gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT,
|
||||||
|
buttons= gtk.BUTTONS_OK,
|
||||||
|
message_format=message,
|
||||||
|
type = gtk.MESSAGE_WARNING)
|
||||||
|
warner.run()
|
||||||
|
warner.destroy()
|
||||||
|
|
||||||
## Browse for .torrent files
|
## Browse for .torrent files
|
||||||
def show_file_open_dialog(parent=None):
|
def show_file_open_dialog(parent=None):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue