mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-08 09:28:41 +00:00
Only import gtk
inside the GtkUi notifications implementation. Like this one won't need have gtk
installed if only the daemon is running.
This commit is contained in:
parent
9bfa5f10b6
commit
a5e8a9dc69
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,6 @@
|
||||||
# statement from all source files in the program, then also delete it here.
|
# statement from all source files in the program, then also delete it here.
|
||||||
#
|
#
|
||||||
|
|
||||||
import gtk
|
|
||||||
import smtplib
|
import smtplib
|
||||||
from twisted.internet import defer, threads
|
from twisted.internet import defer, threads
|
||||||
from deluge import component
|
from deluge import component
|
||||||
|
@ -385,6 +384,7 @@ class GtkUiNotifications(CustomNotifications):
|
||||||
return defer.succeed(_("Notification Blink shown"))
|
return defer.succeed(_("Notification Blink shown"))
|
||||||
|
|
||||||
def __popup(self, title='', message=''):
|
def __popup(self, title='', message=''):
|
||||||
|
import gtk
|
||||||
if not self.config['popup_enabled']:
|
if not self.config['popup_enabled']:
|
||||||
return defer.succeed(_("Popup notification is not enabled."))
|
return defer.succeed(_("Popup notification is not enabled."))
|
||||||
if not POPUP_AVAILABLE:
|
if not POPUP_AVAILABLE:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue