Commit a35ee7c7 authored by Bilal Elmoussaoui's avatar Bilal Elmoussaoui

more fixes

parent da9af423
......@@ -186,7 +186,7 @@ class AccountRow(Thread, Gtk.ListBoxRow):
self.checkbox.set_visible(False)
self.checkbox.set_no_show_all(True)
self.checkbox.connect("toggled", self.parent.select_account)
h_box.pack_start(self.checkbox, False, True, 0)
h_box.pack_start(self.checkbox, False, True, 6)
# account logo
auth_icon = get_icon(self.logo)
......@@ -335,6 +335,7 @@ class AccountRow(Thread, Gtk.ListBoxRow):
new_name = self.name_entry.get_text()
self.application_name.set_text(new_name)
self.window.app.db.update_name_by_id(self.get_id(), new_name)
self.name = new_name
self.toggle_edit_mode(False)
def remove(self, *args):
......
......@@ -73,12 +73,13 @@ class SearchBar(Gtk.Revealer):
if keyname == 'escape' and self.search_button.get_active():
if self.search_entry.is_focus():
self.search_button.set_active(False)
self.search_entry.set_text("")
else:
self.focus()
if not "is_locked" in dir(self.window) or not self.window.is_locked():
if keyname == "backspace":
if self.is_empty():
if self.is_empty() and self.is_visible():
self.search_button.set_active(False)
return True
......
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-06-21 21:16+0200\n"
"POT-Creation-Date: 2016-06-22 15:55+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -88,6 +88,10 @@ msgid ""
"later</a> for details."
msgstr ""
#: data/about.ui:20
msgid "Github"
msgstr ""
#: TwoFactorAuth/widgets/headerbar.py:64
msgid "Remove selected accounts"
msgstr ""
......@@ -179,29 +183,33 @@ msgstr ""
msgid "Unlock"
msgstr ""
#: TwoFactorAuth/widgets/account_row.py:183
msgid "Copy the generated code"
#: TwoFactorAuth/widgets/account_row.py:216
msgid "Remove the account"
msgstr ""
#: TwoFactorAuth/widgets/account_row.py:193
msgid "Remove the account"
#: TwoFactorAuth/widgets/account_row.py:226
msgid "Edit the account"
msgstr ""
#: TwoFactorAuth/widgets/account_row.py:235
msgid "Copy the generated code"
msgstr ""
#: TwoFactorAuth/widgets/account_row.py:198
#: TwoFactorAuth/widgets/account_row.py:286
#: TwoFactorAuth/widgets/account_row.py:240
#: TwoFactorAuth/widgets/account_row.py:356
#, python-format
msgid "Expires in %s seconds"
msgstr ""
#: TwoFactorAuth/widgets/account_row.py:204
#: TwoFactorAuth/widgets/account_row.py:246
msgid "Error during the generation of code"
msgstr ""
#: TwoFactorAuth/widgets/account_row.py:249
#: TwoFactorAuth/widgets/account_row.py:287
msgid "Couldn't generate the secret code"
msgstr ""
#: TwoFactorAuth/widgets/account_row.py:275
#: TwoFactorAuth/widgets/account_row.py:345
#, python-format
msgid "Do you really want to remove \"%s\"?"
msgstr ""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment