This commit is contained in:
2026-01-30 19:08:18 +00:00
parent 63ad9247bc
commit 69bee8766e
6 changed files with 55 additions and 17 deletions

12
main.go
View File

@@ -20,6 +20,8 @@ import (
_ "embed"
"encoding/xml"
"runtime"
"github.com/kr/pretty"
)
var loadedConfig lambdaConfig
@@ -170,6 +172,8 @@ func main() {
return
}
pretty.Println(presence)
var mu MucUser
var ocu OccupantID
@@ -252,7 +256,7 @@ func activate(app *gtk.Application) {
app.SetMenubar(gio.NewMenu())
window.SetTitle("Lambda")
window.AddCSSClass("ssd")
window.Window.AddCSSClass("ssd")
menu := gtk.NewBox(gtk.OrientationHorizontal, 0)
/*
f_menu := gtk.NewMenuButton()
@@ -333,16 +337,20 @@ func activate(app *gtk.Application) {
en.SetHExpand(true)
m_entry := gtk.NewEntry()
entry_box.Append(en)
entry_box.Append(b)
entry_box.Append(m_entry)
debug_btn := gtk.NewButtonWithLabel("Join muc")
debug_btn.ConnectClicked(func() {
t := en.Text()
_, ok := tabs[t]
if !ok {
err := joinMuc(client, clientroot.Session.BindJid, t, loadedConfig.Nick)
err := joinMuc(client, clientroot.Session.BindJid, t, m_entry.Text())
if err != nil {
panic(err)
}