示例#1
0
文件: window.go 项目: hwch/go-gtk
func (win *Window) GetTitle() string {
	ret := C.gtk_window_get_title(win.c)
	if ret == nil {
		return ""
	}
	s := C.GoString((*C.char)(ret))

	return s
}
示例#2
0
func gtk_window_get_title(window *C.GtkWidget) string {
	return fromgstr(C.gtk_window_get_title(togtkwindow(window)))
}
示例#3
0
文件: window.go 项目: twstrike/gotk3
// GetTitle is a wrapper around gtk_window_get_title().
func (v *Window) GetTitle() (string, error) {
	return stringReturn(C.gtk_window_get_title(v.native()))
}
示例#4
0
func (w *window) Title() string {
	return fromgstr(C.gtk_window_get_title(w.window))
}