Attempt to fix right-click user windows
This commit is contained in:
8
main.go
8
main.go
@@ -45,6 +45,8 @@ var clientroot *xmpp.Client
|
||||
|
||||
var uiQueue = make(chan func(), 100)
|
||||
|
||||
var window *gtk.ApplicationWindow
|
||||
|
||||
// stores members of mucs
|
||||
var mucmembers sync.Map
|
||||
|
||||
@@ -243,7 +245,7 @@ func main() {
|
||||
b := gtk.NewButtonWithLabel(user)
|
||||
b.ConnectClicked(func() {
|
||||
b.AddCSSClass("accent")
|
||||
switchToTab(user)
|
||||
switchToTab(user, &window.Window)
|
||||
})
|
||||
menu.Append(b)
|
||||
}
|
||||
@@ -308,7 +310,7 @@ func activate(app *gtk.Application) {
|
||||
gtk.STYLE_PROVIDER_PRIORITY_APPLICATION,
|
||||
)
|
||||
|
||||
window := gtk.NewApplicationWindow(app)
|
||||
window = gtk.NewApplicationWindow(app)
|
||||
app.SetMenubar(gio.NewMenu())
|
||||
|
||||
window.SetTitle("Lambda")
|
||||
@@ -436,7 +438,7 @@ func activate(app *gtk.Application) {
|
||||
b := gtk.NewButtonWithLabel(t)
|
||||
b.ConnectClicked(func() {
|
||||
b.AddCSSClass("accent")
|
||||
switchToTab(t)
|
||||
switchToTab(t, &window.Window)
|
||||
})
|
||||
menu.Append(b)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user