Skip to content

Commit

Permalink
Escape markup in default version number.
Browse files Browse the repository at this point in the history
See: #456

Fixes: Gtk-WARNING **: Failed to set text '<UNSET>' from markup due to error parsing markup: Error on line 1 char 24: Element 'markup' was closed, but the currently open element is 'UNSET'
  • Loading branch information
Reinaldo de Souza Junior committed Oct 23, 2017
1 parent 5a646f9 commit 3c494df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions gui/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,8 @@ func (u *gtkUI) shouldViewAccounts() bool {
}

func (u *gtkUI) aboutDialog() {
//TODO: This dialog automatically parses HTML and display clickable links.
//We may need to use g_markup_escape_text().
dialog, _ := g.gtk.AboutDialogNew()
dialog.SetName(i18n.Local("CoyIM!"))
dialog.SetProgramName(programName)
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/coyim/coyim/config"
)

var coyimVersion = "<UNSET>"
var coyimVersion = "&lt;UNSET&gt;"

func initLog() {
if !*config.DebugFlag {
Expand Down

0 comments on commit 3c494df

Please sign in to comment.