Skip to content

Commit

Permalink
Add markups to labels
Browse files Browse the repository at this point in the history
  • Loading branch information
claucece committed Aug 7, 2017
1 parent 2ca78f5 commit bace5f3
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 17 deletions.
30 changes: 15 additions & 15 deletions Godeps/Godeps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion gui/master_password.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func (u *gtkUI) captureInitialMasterPassword(k func(), onCancel func()) {
passText1, _ := password.GetText()
passText2, _ := password2.GetText()
if len(passText1) == 0 {
messageObj.SetLabel(i18n.Local("Password can not be empty - please try again"))
messageObj.SetMarkup(i18n.Local("<b>Password can not be empty</b> - please try again"))
password.GrabFocus()
} else if passText1 != passText2 {
messageObj.SetLabel(i18n.Local("Passwords have to be the same - please try again"))
Expand Down
2 changes: 1 addition & 1 deletion gui/registration.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ func (w *serverSelectionWindow) formSubmittedPage() {
}

// doneImage.SetFromIconName("emblem-default", gtki.ICON_SIZE_DIALOG)
w.doneMessage.SetLabel(i18n.Localf("%s successfully created.", w.form.conf.Account))
w.doneMessage.SetMarkup(i18n.Localf("<b>%s</b> successfully created.", w.form.conf.Account))
}

func (w *serverSelectionWindow) onPageChange(_ gtki.Assistant, pg gtki.Widget) {
Expand Down
3 changes: 3 additions & 0 deletions vendor/github.com/twstrike/gotk3adapter/gtk_mock/label.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions vendor/github.com/twstrike/gotk3adapter/gtka/label.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions vendor/github.com/twstrike/gotk3adapter/gtki/label.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bace5f3

Please sign in to comment.