h
This commit is contained in:
+19
-3
@@ -201,6 +201,13 @@ func switchToTab(jid string, w *gtk.Window) {
|
||||
// medal.SetHExpand(true)
|
||||
userbox.Prepend(status)
|
||||
|
||||
if u.Status != "" {
|
||||
status_message := gtk.NewImageFromPaintable(clientAssets["comment"])
|
||||
status_message.SetTooltipText(u.Status)
|
||||
status_message.SetHAlign(gtk.AlignEnd)
|
||||
userbox.Append(status_message)
|
||||
}
|
||||
|
||||
medal := gtk.NewImageFromPaintable(clientAssets[mu.MucUserItem.Affiliation])
|
||||
medal.SetTooltipText(mu.MucUserItem.Affiliation)
|
||||
|
||||
@@ -208,6 +215,7 @@ 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
|
||||
@@ -560,9 +568,17 @@ func switchToTab(jid string, w *gtk.Window) {
|
||||
headerBox.Append(gtk.NewLabel(fmt.Sprintf("%d %s", i, loadedLocale["participants"])))
|
||||
gen.Prepend(headerBox)
|
||||
|
||||
muci := getAvatar(jid, jid)
|
||||
muci.SetPixelSize(80)
|
||||
gen.Prepend(muci)
|
||||
muc_presence := typed_tab.muc_presence
|
||||
if muc_presence != nil {
|
||||
vc := &VCardUpdate{}
|
||||
ok = muc_presence.Get(vc)
|
||||
if ok {
|
||||
muci := getAvatar(jid, vc.Photo)
|
||||
muci.SetPixelSize(80)
|
||||
gen.Prepend(muci)
|
||||
}
|
||||
}
|
||||
|
||||
muc_name := gtk.NewLabel(typed_tab.name)
|
||||
muc_name.AddCSSClass("author")
|
||||
muc_name.SetWrap(true)
|
||||
|
||||
Reference in New Issue
Block a user