diff --git a/keyring.png b/keyring.png deleted file mode 100644 index 9bb9d66..0000000 Binary files a/keyring.png and /dev/null differ diff --git a/keyring.py b/keyring.py index c8d98cc..af89137 100644 --- a/keyring.py +++ b/keyring.py @@ -169,7 +169,7 @@ class Keyring: self.was_locked = True builder = Gtk.Builder() builder.set_translation_domain('mailnag') - builder.add_from_file("mailnag_keyring.glade") + builder.add_from_file("keyring_dialog.ui") builder.connect_signals({"gtk_main_quit" : self.exit_keyring_dialog, \ "on_button_cancel_clicked" : self.exit_keyring_dialog, \ "on_button_ok_clicked" : self.ok_keyring_dialog, \ @@ -192,7 +192,7 @@ class Keyring: def show_message(self, message): # dialog to show keyring messages builder = Gtk.Builder() builder.set_translation_domain('mailnag') - builder.add_from_file("mailnag_message.glade") + builder.add_from_file("message_dialog.ui") builder.connect_signals({"gtk_main_quit" : self.exit_message, \ "on_button_cancel_clicked" : self.exit_message, \ "on_button_ok_clicked" : self.ok_message}) diff --git a/mailnag_keyring.glade b/keyring_dialog.ui similarity index 56% rename from mailnag_keyring.glade rename to keyring_dialog.ui index 68a65b7..de6c6c8 100644 --- a/mailnag_keyring.glade +++ b/keyring_dialog.ui @@ -1,103 +1,105 @@ - - + + False 5 Mailnag + False True center - 250 - 150 True - mailnag.svg dialog True - - True + + False + vertical 2 - - - True - - - True - keyring.png - - - 0 - - - - - True - Keyring is locked, -please enter password: - - - 1 - - - - - 1 - - - - - True - True - False - - True - - - - 2 - - - - True - center + + False + end - Cancel + gtk-cancel True True True - + False + True + False - False + True 0 - Ok + gtk-ok True True - True - True True - + False + True + False - False + True 1 False + True end 0 + + + True + False + vertical + 6 + + + True + False + Mailnag can't access the keyring because it is locked. +Please enter the password: + + + False + True + 0 + + + + + True + True + False + + + + + False + True + 1 + + + + + False + True + 1 + + diff --git a/mailnag_message.glade b/message_dialog.ui similarity index 65% rename from mailnag_message.glade rename to message_dialog.ui index 877ea33..88c5fa8 100644 --- a/mailnag_message.glade +++ b/message_dialog.ui @@ -1,67 +1,74 @@ - - + + False 5 Mailnag Message False center - normal + dialog - - True + + False + vertical 2 - - - True - label - - - 1 - - - - True - center + + False + end - Cancel + gtk-cancel True True True - + False + True + False - False + True 0 - Ok + gtk-ok True True - True - True True - + False + True + False - False + True 1 False + True end 0 + + + True + False + label + + + False + True + 1 + +