format code

This commit is contained in:
2026-05-19 14:07:21 +01:00
parent 5f95df147f
commit af0ec78eae
7 changed files with 12 additions and 12 deletions
+1
View File
@@ -204,4 +204,5 @@ func init() {
} {
loadAsset(key, data)
}
}
+3 -2
View File
@@ -42,11 +42,13 @@ func createTab(jid string, isMuc bool, name string) bool {
newTab := new(chatTab)
newTab.isMuc = isMuc
newTab.msgs = gtk.NewListBox()
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
+1 -2
View File
@@ -12,12 +12,12 @@ import (
"github.com/google/uuid"
"github.com/jasonlovesdoggo/gopen"
"gosrc.io/xmpp/stanza"
xmpp_color "mellium.im/xmpp/color"
"mellium.im/xmpp/jid"
"os"
"path/filepath"
"runtime"
"strings"
xmpp_color "mellium.im/xmpp/color"
)
func generatePresenceWidget(p stanza.Packet) gtk.Widgetter {
@@ -138,7 +138,6 @@ func generateMessageWidget(p stanza.Packet) gtk.Widgetter {
rc_box.Append(custom)
rc_box.Append(enter_custom)
quote := gtk.NewButtonWithLabel("Quote")
quote.ConnectClicked(func() {
lines := strings.Split(m.Body, "\n")
+1 -1
View File
@@ -2,9 +2,9 @@ package main
import (
"github.com/diamondburned/gotk4/pkg/gtk/v4"
"gosrc.io/xmpp/stanza"
"mellium.im/xmpp/color"
"sync"
"gosrc.io/xmpp/stanza"
)
type chatTab struct {
-1
View File
@@ -51,4 +51,3 @@ func init() {
stanza.TypeRegistry.MapExtension(stanza.PKTIQ, xml.Name{Space: "vcard-temp", Local: "vCard"}, VCard{})
stanza.TypeRegistry.MapExtension(stanza.PKTPresence, xml.Name{Space: "vcard-temp:x:update", Local: "x"}, VCardUpdate{})
}