gtk/print.go
func PrintSettingsNewFromFile(name string) (*PrintSettings, error) {
	cstr := C.CString(name)
	defer C.free(unsafe.Pointer(cstr))
	var err *C.GError = nil
	c := C.gtk_print_settings_new_from_file((*C.gchar)(cstr), &err)
	if c == nil {
		defer C.g_error_free(err)
		return nil, errors.New(C.GoString((*C.char)(err.message)))
	}
	obj := glib.Take(unsafe.Pointer(c))
	return wrapPrintSettings(obj), nil
}
func PrintSettingsNewFromFile(name string) (*PrintSettings, error) {
	cstr := C.CString(name)
	defer C.free(unsafe.Pointer(cstr))
	var err *C.GError = nil
	c := C.gtk_print_settings_new_from_file((*C.gchar)(cstr), &err)
	if c == nil {
		defer C.g_error_free(err)
		return nil, errors.New(C.GoString((*C.char)(err.message)))
	}
	obj := glib.Take(unsafe.Pointer(c))
	return wrapPrintSettings(obj), nil
}
func PrintSettingsNewFromFile ( name string ) ( * PrintSettings , error ) { cstr := C . CString ( name ) defer C . free ( unsafe . Pointer ( cstr ) ) var err * C . GError = nil c := C . gtk_print_settings_new_from_file ( ( * C . gchar ) ( cstr ) , & err ) if c == nil { defer C . g_error_free ( err ) return nil , errors . New ( C . GoString ( ( * C . char ) ( err . message ) ) ) } obj := glib . Take ( unsafe . Pointer ( c ) ) return wrapPrintSettings ( obj ) , nil }
// PrintSettingsNewFromFile() is a wrapper around gtk_print_settings_new_from_file().
PrintSettingsNewFromFile () is a wrapper around gtk_print_settings_new_from_file () .