mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
[linux/cgo] hide/show implementation
This commit is contained in:
parent
9da5cea88d
commit
17647e2c2f
1 changed files with 18 additions and 2 deletions
|
|
@ -76,11 +76,27 @@ func getNativeApplication() *linuxApp {
|
|||
}
|
||||
|
||||
func (m *linuxApp) hide() {
|
||||
// C.hide()
|
||||
windows := C.gtk_application_get_windows((*C.GtkApplication)(m.application))
|
||||
for {
|
||||
fmt.Println("hiding", windows.data)
|
||||
C.gtk_widget_hide((*C.GtkWidget)(windows.data))
|
||||
windows = windows.next
|
||||
if windows == nil {
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (m *linuxApp) show() {
|
||||
// C.show()
|
||||
windows := C.gtk_application_get_windows((*C.GtkApplication)(m.application))
|
||||
for {
|
||||
fmt.Println("hiding", windows.data)
|
||||
C.gtk_widget_show_all((*C.GtkWidget)(windows.data))
|
||||
windows = windows.next
|
||||
if windows == nil {
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (m *linuxApp) on(eventID uint) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue