VideoTools/third_party/gotk3/gtk/window_since_3_16.go
Stu d4efa91ce1 Add vendored gotk3 GTK3 bindings for Go
Vendor gotk3 library to ensure consistent GTK3 bindings across
environments and simplify dependency management.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-15 05:40:43 -05:00

18 lines
396 B
Go

// Same copyright and license as the rest of the files in this project
// +build !gtk_3_6,!gtk_3_8,!gtk_3_10,!gtk_3_12,!gtk_3_14
package gtk
// #include <gtk/gtk.h>
import "C"
// GetTitlebar is a wrapper around gtk_window_get_titlebar().
func (v *Window) GetTitlebar() (IWidget, error) {
c := C.gtk_window_get_titlebar(v.native())
if c == nil {
return nil, nil
}
return castWidget(c)
}