svn: r11964
This commit is contained in:
parent
a34cf168f3
commit
41515d57cf
@ -195,8 +195,9 @@ class MyLesserEqualGreater(gtk.ComboBox):
|
||||
cell = gtk.CellRendererText()
|
||||
self.pack_start(cell, True)
|
||||
self.add_attribute(cell, 'text', 0)
|
||||
self.clist = [_('lesser than'), _('equal to'), _('greater than')]
|
||||
for name in self.clist:
|
||||
self.clist = ['lesser than', 'equal to', 'greater than']
|
||||
self.clist_trans = [_('lesser than'), _('equal to'), _('greater than')]
|
||||
for name in self.clist_trans:
|
||||
store.append(row=[name])
|
||||
self.set_active(default)
|
||||
self.show()
|
||||
@ -204,14 +205,14 @@ class MyLesserEqualGreater(gtk.ComboBox):
|
||||
def get_text(self):
|
||||
active = self.get_active()
|
||||
if active < 0:
|
||||
return _('equal to')
|
||||
return 'equal to'
|
||||
return self.clist[active]
|
||||
|
||||
def set_text(self, val):
|
||||
if val in self.clist:
|
||||
self.set_active(self.clist.index(val))
|
||||
else:
|
||||
self.set_active(self.clist.index(_('equal to')))
|
||||
self.set_active(self.clist.index('equal to'))
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -47,9 +47,9 @@ class HasGalleryBase(Rule):
|
||||
|
||||
def prepare(self, db):
|
||||
# things we want to do just once, not for every handle
|
||||
if self.list[1] == _('lesser than'):
|
||||
if self.list[1] == 'lesser than':
|
||||
self.count_type = 0
|
||||
elif self.list[1] == _('greater than'):
|
||||
elif self.list[1] == 'greater than':
|
||||
self.count_type = 2
|
||||
else:
|
||||
self.count_type = 1 # "equal to"
|
||||
|
@ -50,9 +50,9 @@ class HasLDSBase(Rule):
|
||||
|
||||
def prepare(self, db):
|
||||
# things we want to do just once, not for every handle
|
||||
if self.list[1] == _('lesser than'):
|
||||
if self.list[1] == 'lesser than':
|
||||
self.count_type = 0
|
||||
elif self.list[1] == _('greater than'):
|
||||
elif self.list[1] == 'greater than':
|
||||
self.count_type = 2
|
||||
else:
|
||||
self.count_type = 1 # "equal to"
|
||||
|
@ -56,9 +56,9 @@ class HasNoteBase(Rule):
|
||||
|
||||
def prepare(self, db):
|
||||
# things we want to do just once, not for every handle
|
||||
if self.list[1] == _('lesser than'):
|
||||
if self.list[1] == 'lesser than':
|
||||
self.count_type = 0
|
||||
elif self.list[1] == _('greater than'):
|
||||
elif self.list[1] == 'greater than':
|
||||
self.count_type = 2
|
||||
else:
|
||||
self.count_type = 1 # "equal to"
|
||||
|
@ -48,9 +48,9 @@ class HasSourceBase(Rule):
|
||||
|
||||
def prepare(self, db):
|
||||
# things we want to do just once, not for every handle
|
||||
if self.list[1] == _('lesser than'):
|
||||
if self.list[1] == 'lesser than':
|
||||
self.count_type = 0
|
||||
elif self.list[1] == _('greater than'):
|
||||
elif self.list[1] == 'greater than':
|
||||
self.count_type = 2
|
||||
else:
|
||||
self.count_type = 1 # "equal to"
|
||||
|
Loading…
Reference in New Issue
Block a user