aboutsummaryrefslogtreecommitdiff
path: root/ayatanawebmail/dialog.py
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2020-08-19 20:28:48 +0200
committerRobert Tari <robert@tari.in>2020-08-19 20:28:48 +0200
commit5d48084eea23372948b0d768eeffdb83891c2d54 (patch)
tree2e6ea437c28feb95c1cc3567aff00802da40b7a9 /ayatanawebmail/dialog.py
parent32dc97fbd076eec12671ec6266d3c4ca68dd0dcd (diff)
downloadayatana-webmail-5d48084eea23372948b0d768eeffdb83891c2d54.tar.gz
ayatana-webmail-5d48084eea23372948b0d768eeffdb83891c2d54.tar.bz2
ayatana-webmail-5d48084eea23372948b0d768eeffdb83891c2d54.zip
Allow at most max-item-count fetches per connection
Diffstat (limited to 'ayatanawebmail/dialog.py')
-rwxr-xr-xayatanawebmail/dialog.py3
1 files changed, 1 insertions, 2 deletions
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())