aboutsummaryrefslogtreecommitdiff
path: root/ayatanawebmail
diff options
context:
space:
mode:
Diffstat (limited to 'ayatanawebmail')
-rwxr-xr-xayatanawebmail/application.py3
-rwxr-xr-xayatanawebmail/dialog.py3
2 files changed, 3 insertions, 3 deletions
diff --git a/ayatanawebmail/application.py b/ayatanawebmail/application.py
index a4f4f49..f8c41a6 100755
--- a/ayatanawebmail/application.py
+++ b/ayatanawebmail/application.py
@@ -893,7 +893,7 @@ class AyatanaWebmail(object):
if search[1][0] is not None:
lstMessages = search[1][0].split()
- for m in lstMessages[-self.nMaxCount:]:
+ for m in lstMessages[-1 * (self.nMaxCount // len(self.lstConnections)) : ]:
typ = None
msg_data = None
@@ -1067,6 +1067,7 @@ class AyatanaWebmail(object):
if lstNewMessages:
for cMessage in lstNewMessages:
+
self.appendToIndicator(cMessage)
try:
diff --git a/ayatanawebmail/dialog.py b/ayatanawebmail/dialog.py
index 453592a..ad4861f 100755
--- a/ayatanawebmail/dialog.py
+++ b/ayatanawebmail/dialog.py
@@ -241,7 +241,6 @@ class PreferencesDialog(Gtk.Dialog):
def initConfig(self):
- self.nMaxCount = g_oSettings.get_int('max-item-count')
self.bEnableNotifications = g_oSettings.get_boolean('enable-notifications')
self.bPlaySound = g_oSettings.get_boolean('enable-sound')
self.bHideCount = g_oSettings.get_boolean('hide-messages-count')
@@ -280,6 +279,7 @@ class PreferencesDialog(Gtk.Dialog):
infolabel.set_markup('<b>'+_('Account data')+'</b>')
self.oListStore = Gtk.ListStore(str, str, bool)
oTreeView = Gtk.TreeView(self.oListStore, headers_visible=False, activate_on_single_click=True, margin_left=5, margin_top=5, margin_right=5, margin_bottom=5)
+ oTreeView.set_property('height-request', 200)
oTreeView.connect('row-activated', self.onFolderActivated)
oTreeViewColumnBool = Gtk.TreeViewColumn('bool', Gtk.CellRendererToggle(), active=2)
oTreeViewColumnBool.get_cells()[0].set_property('xalign', 1.0)
@@ -478,7 +478,6 @@ class PreferencesDialog(Gtk.Dialog):
def saveAllSettings(self):
- g_oSettings.set_int('max-item-count', self.nMaxCount)
g_oSettings.set_boolean('enable-notifications', self.notifyswitch.get_active())
g_oSettings.set_boolean('enable-sound', self.sndswitch.get_active())
g_oSettings.set_boolean('hide-messages-count', self.hcswitch.get_active())