uhh
This commit is contained in:
12
main.go
12
main.go
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user