format code
This commit is contained in:
+5
-4
@@ -42,11 +42,13 @@ func createTab(jid string, isMuc bool, name string) bool {
|
||||
newTab := new(chatTab)
|
||||
newTab.isMuc = isMuc
|
||||
newTab.msgs = gtk.NewListBox()
|
||||
newTab.msgs.SetVExpand(true)
|
||||
newTab.msgs.SetShowSeparators(true)
|
||||
glib.IdleAdd(func() {
|
||||
newTab.msgs.SetVExpand(true)
|
||||
newTab.msgs.SetShowSeparators(true)
|
||||
newTab.msgs.Append(gtk.NewButtonWithLabel(loadedLocale["getPastMessages"]))
|
||||
})
|
||||
newTab.name = name
|
||||
|
||||
newTab.msgs.Append(gtk.NewButtonWithLabel(loadedLocale["getPastMessages"]))
|
||||
tabs.Store(jid, newTab)
|
||||
return true
|
||||
}
|
||||
@@ -215,7 +217,6 @@ func switchToTab(jid string, w *gtk.Window) {
|
||||
medal.SetHExpand(true)
|
||||
userbox.Append(medal)
|
||||
|
||||
|
||||
default_av := createIdenticon(u.From, false)
|
||||
userbox.Prepend(default_av)
|
||||
var vcu VCardUpdate
|
||||
|
||||
Reference in New Issue
Block a user