fix setting option in ACE

This commit is contained in:
Denis Fomin 2013-01-08 15:54:20 +04:00
parent eb68d8efaf
commit 3d18ca4e6b
2 changed files with 3 additions and 2 deletions

View File

@ -202,7 +202,8 @@ class AdvancedConfigurationWindow(object):
if len(modelpath.get_indices()) > 1: if len(modelpath.get_indices()) > 1:
optnamerow = self.model[modelpath.get_indices()[0]] optnamerow = self.model[modelpath.get_indices()[0]]
optname = optnamerow[0] optname = optnamerow[0]
keyrow = self.model[modelpath.get_indices()[:2]] modelpath.up()
keyrow = self.model[modelpath]
key = keyrow[0] key = keyrow[0]
self.remember_option(option + '\n' + key + '\n' + optname, self.remember_option(option + '\n' + key + '\n' + optname,
modelrow[1], newval) modelrow[1], newval)

View File

@ -338,7 +338,7 @@ class StatusIcon:
newitem = Gtk.SeparatorMenuItem.new() # separator newitem = Gtk.SeparatorMenuItem.new() # separator
gc_sub_menu.append(newitem) gc_sub_menu.append(newitem)
newitem = Gtk.ImageMenuItem(_('_Manage Bookmarks...')) newitem = Gtk.ImageMenuItem.new_with_mnemonic(_('_Manage Bookmarks...'))
img = Gtk.Image.new_from_stock(Gtk.STOCK_PREFERENCES, Gtk.IconSize.MENU) img = Gtk.Image.new_from_stock(Gtk.STOCK_PREFERENCES, Gtk.IconSize.MENU)
newitem.set_image(img) newitem.set_image(img)
newitem.connect('activate', newitem.connect('activate',