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>
26 lines
601 B
Go
26 lines
601 B
Go
// Same copyright and license as the rest of the files in this project
|
|
|
|
// +build !gtk_3_6,!gtk_3_8
|
|
// not use this: go build -tags gtk_3_8'. Otherwise, if no build tags are used, GTK 3.10
|
|
|
|
package gtk
|
|
|
|
// #include <stdlib.h>
|
|
// #include <gtk/gtk.h>
|
|
// #include "gtk_since_3_10.go.h"
|
|
import "C"
|
|
|
|
/*
|
|
* GtkWindow
|
|
*/
|
|
|
|
// SetTitlebar is a wrapper around gtk_window_set_titlebar().
|
|
func (v *Window) SetTitlebar(titlebar IWidget) {
|
|
C.gtk_window_set_titlebar(v.native(), titlebar.toWidget())
|
|
}
|
|
|
|
// Close is a wrapper around gtk_window_close().
|
|
func (v *Window) Close() {
|
|
C.gtk_window_close(v.native())
|
|
}
|