aboutsummaryrefslogtreecommitdiff
path: root/ayatanawebmail
diff options
context:
space:
mode:
Diffstat (limited to 'ayatanawebmail')
-rwxr-xr-xayatanawebmail/appdata.py2
-rwxr-xr-xayatanawebmail/application.py18
2 files changed, 19 insertions, 1 deletions
diff --git a/ayatanawebmail/appdata.py b/ayatanawebmail/appdata.py
index 5172f58..e10add4 100755
--- a/ayatanawebmail/appdata.py
+++ b/ayatanawebmail/appdata.py
@@ -4,7 +4,7 @@
APPNAME = 'ayatanawebmail'
APPEXECUTABLE='/usr/bin/ayatana-webmail'
APPDEPENDENCIES = ['gir1.2-messagingmenu-1.0', 'python3-gi', 'gir1.2-gtk-3.0', 'gir1.2-notify-0.7', 'python3-secretstorage', 'gnome-session-canberra', 'python3-psutil', 'python3-babel', 'python3-urllib3']
-APPVERSION = '24.5.17'
+APPVERSION = '26.6.13'
APPSHOWSETTINGS = 180603
APPYEAR = '2016'
APPTITLE = 'Ayatana Webmail'
diff --git a/ayatanawebmail/application.py b/ayatanawebmail/application.py
index d9ee93d..a67532a 100755
--- a/ayatanawebmail/application.py
+++ b/ayatanawebmail/application.py
@@ -1109,6 +1109,12 @@ class AyatanaWebmail(object):
oNotification.set_property('body', _('Unable to connect to account "{accountName}", the application will now exit.').format(accountName=oConnection.strLogin))
oNotification.set_hint('desktop-entry', GLib.Variant.new_string(APPNAME))
oNotification.set_timeout(Notify.EXPIRES_NEVER)
+ bHasSetAppIcon = hasattr (oNotification, "set_app_icon")
+
+ if bHasSetAppIcon:
+
+ oNotification.set_app_icon (APPNAME)
+
oNotification.show()
self.close(1)
@@ -1168,6 +1174,12 @@ class AyatanaWebmail(object):
oNotification = Notify.Notification.new(basemessage.format(number_of_mails), message, APPNAME)
oNotification.set_hint('desktop-entry', GLib.Variant.new_string(APPNAME))
+ bHasSetAppIcon = hasattr (oNotification, "set_app_icon")
+
+ if bHasSetAppIcon:
+
+ oNotification.set_app_icon (APPNAME)
+
oNotification.show()
elif number_of_mails:
@@ -1181,4 +1193,10 @@ class AyatanaWebmail(object):
oNotification = Notify.Notification.new(message, lstNotification[1], APPNAME)
oNotification.set_hint('desktop-entry', GLib.Variant.new_string(APPNAME))
+ bHasSetAppIcon = hasattr (oNotification, "set_app_icon")
+
+ if bHasSetAppIcon:
+
+ oNotification.set_app_icon (APPNAME)
+
oNotification.show()