forked from jshiffer/go-xmpp
fix gui.
This commit is contained in:
parent
53846d1e34
commit
26e35d5504
@ -54,8 +54,8 @@ func main() {
|
||||
password.SetVisibility(false)
|
||||
hbox.Add(password)
|
||||
|
||||
dialog.AddButton(gtk.STOCK_OK, int(gtk.RESPONSE_OK))
|
||||
dialog.AddButton(gtk.STOCK_CANCEL, int(gtk.RESPONSE_CANCEL))
|
||||
dialog.AddButton(gtk.STOCK_OK, gtk.RESPONSE_OK)
|
||||
dialog.AddButton(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL)
|
||||
dialog.SetDefaultResponse(int(gtk.RESPONSE_OK))
|
||||
dialog.SetTransientFor(window)
|
||||
dialog.ShowAll()
|
||||
@ -95,7 +95,9 @@ func main() {
|
||||
|
||||
var iter gtk.TextIter
|
||||
buffer.GetStartIter(&iter)
|
||||
buffer.Insert(&iter, chat.Remote+": "+chat.Text+"\n")
|
||||
if msg, ok := chat.(xmpp.Chat); ok {
|
||||
buffer.Insert(&iter, msg.Remote+": "+msg.Text+"\n")
|
||||
}
|
||||
}()
|
||||
}
|
||||
}()
|
||||
|
Loading…
Reference in New Issue
Block a user